Skip to content

Commit

Permalink
refactor: move flake8 config (TheAlgorithms#7167)
Browse files Browse the repository at this point in the history
* refactor: move flake8 config

* Update .pre-commit-config.yaml

Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
dhruvmanila and cclauss authored Oct 14, 2022
1 parent 26fe4c6 commit e40c7b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[flake8]
max-line-length = 88
max-complexity = 25
extend-ignore =
A003 # Class attribute is shadowing a python builtin
# Formatting style for `black`
E203 # Whitespace before ':'
W503 # Line break occurred before a binary operator
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ repos:
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- --ignore=E203,W503
- --max-complexity=25
- --max-line-length=88
- id: flake8 # See .flake8 for args
additional_dependencies:
- flake8-bugbear
- flake8-builtins
Expand All @@ -51,7 +47,7 @@ repos:
- id: mypy
args:
- --ignore-missing-imports
- --install-types # See mirrors-mypy README.md
- --install-types # See mirrors-mypy README.md
- --non-interactive
additional_dependencies: [types-requests]

Expand Down

0 comments on commit e40c7b4

Please sign in to comment.