Skip to content

Commit

Permalink
refactor: Clean up mutable defaults and add CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillarAnand committed Oct 6, 2021
1 parent 35e30bd commit eaa0704
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/helper/.flake8_strict
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ ignore =
E713,
E712,

enable-extensions =
M90

select =
M511

max-line-length = 200
exclude=.github/helper/semgrep_rules,test_*.py
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ repos:
rev: 3.9.2
hooks:
- id: flake8
args: ['--config', '.github/helper/.flake8_strict']
additional_dependencies: [
'flake8-mutable',
]
args: ['--select=M511', '--config', '.github/helper/.flake8_strict']
exclude: ".*setup.py$"

- repo: https://github.com/timothycrosley/isort
Expand Down

0 comments on commit eaa0704

Please sign in to comment.