Skip to content

Commit

Permalink
Add custom flake8 configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
L1ghtn1ng committed Aug 13, 2023
1 parent 4d324a1 commit 38b705f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = E203, E501, F405, F403, F401, E402, W503
4 changes: 2 additions & 2 deletions .github/workflows/DNSrecon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 38b705f

Please sign in to comment.