From 38b705febfe37490cc9bbee10640d41553635fe6 Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Sun, 13 Aug 2023 03:01:06 +0100 Subject: [PATCH] Add custom flake8 configuration A custom .flake8 config file was added to ignore certain PEP 8 violations that are not applicable to this project. These are E203, E501, F405, F403, F401, E402, and W503. This configuration is now used when running flake8 in the GitHub workflow. This change makes linting more customized to the project's style guidelines. --- .flake8 | 2 ++ .github/workflows/DNSrecon.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..87241026 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +ignore = E203, E501, F405, F403, F401, E402, W503 \ No newline at end of file diff --git a/.github/workflows/DNSrecon.yml b/.github/workflows/DNSrecon.yml index eddd2c93..c0e8cbcc 100644 --- a/.github/workflows/DNSrecon.yml +++ b/.github/workflows/DNSrecon.yml @@ -31,9 +31,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --show-source --statistics + flake8 . --count --show-source --statistics --config .flake8 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-line-length=127 --statistics + flake8 . --count --exit-zero --max-line-length=127 --statistics --config .flake8 - name: Run pytest tests run: |