Modify configuration for flake8

This commit is contained in:
Shreya 2021-04-05 15:46:45 +05:30
parent e616fcdf50
commit 480f6ccc7f
2 changed files with 6 additions and 5 deletions

View File

@ -1,11 +1,13 @@
[flake8] [flake8]
## Warn about linter issues. ## Warn about linter issues.
exclude = ../monkey/monkey_island/cc/ui, exclude = ../monkey/monkey_island/cc/ui
../monkey/common/cloud
show-source = True show-source = True
max-complexity = 10 max-complexity = 10
max-line-length = 127 max-line-length = 100
### ignore "whitespace before ':'" and "line break before binary operator" for compatibility with black
extend-ignore = E203, W503
### --statistics Count the number of occurrences of each error/warning code and print a report. ### --statistics Count the number of occurrences of each error/warning code and print a report.
statistics = True statistics = True

View File

@ -2,8 +2,7 @@
## Check syntax errors and fail the build if any are found. ## Check syntax errors and fail the build if any are found.
exclude = exclude =
../monkey/monkey_island/cc/ui, ../monkey/monkey_island/cc/ui
../monkey/common/cloud
select = select =
E901, E901,
E999, E999,