Browse Source

fix(CI): Use bugbear instead of flake8-mutable

develop
ChillarAnand 3 years ago
committed by Ankush Menat
parent
commit
4dc17a856e
  1. 7
      .github/helper/.flake8_strict
  2. 4
      .pre-commit-config.yaml

7
.github/helper/.flake8_strict

@ -1,6 +1,8 @@
[flake8] [flake8]
ignore = ignore =
B007, B007,
B009,
B010,
B950, B950,
E101, E101,
E111, E111,
@ -65,11 +67,6 @@ ignore =
E713, E713,
E712, E712,
enable-extensions =
M90
select =
M511
max-line-length = 200 max-line-length = 200
exclude=.github/helper/semgrep_rules,test_*.py exclude=.github/helper/semgrep_rules,test_*.py

4
.pre-commit-config.yaml

@ -21,9 +21,9 @@ repos:
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: [ additional_dependencies: [
'flake8-mutable', 'flake8-bugbear',
] ]
args: ['--select=M511', '--config', '.github/helper/.flake8_strict'] args: ['--config', '.github/helper/.flake8_strict']
exclude: ".*setup.py$" exclude: ".*setup.py$"
- repo: https://github.com/timothycrosley/isort - repo: https://github.com/timothycrosley/isort

Loading…
Cancel
Save