|
8 | 8 | hooks: |
9 | 9 | - id: black |
10 | 10 | language_version: python3 # Should be a command that runs python3.7+ |
11 | | - - repo: https://gitlab.com/pycqa/flake8 |
12 | | - rev: 3.9.2 |
13 | | - hooks: |
14 | | - - id: flake8 |
15 | | - additional_dependencies: [ |
16 | | - flake8-spellcheck, # Spelling checker |
17 | | - ] |
18 | | - args: [--exit-zero] # These checks will not cause the commit to fail |
19 | | - verbose: true |
20 | 11 | - repo: https://gitlab.com/pycqa/flake8 |
21 | 12 | rev: 3.9.2 |
22 | 13 | hooks: |
23 | 14 | - id: flake8 |
24 | 15 | additional_dependencies: [ |
25 | 16 | flake8-bugbear, # Detect potential bugs |
26 | | - flake8-isort, # Check import ordering |
27 | | - flake8-comprehensions, # Suggestions for better list/set/dict comprehensions |
28 | | - flake8-mutable, # Check for mutable default arguments |
29 | | - flake8-use-fstring, # Encourages use of f-strings vs old style |
30 | | - flake8-simplify, # Suggestions to simplify code |
31 | | - pep8-naming, # Check PEP8 class naming |
32 | | - flake8-eradicate, # Find dead/commented out code |
33 | 17 | flake8-builtins, # Check for built-ins being used as variables |
34 | 18 | flake8-cognitive-complexity, # Check max function complexity |
| 19 | + flake8-comprehensions, # Suggestions for better list/set/dict comprehensions |
| 20 | + flake8-eradicate, # Find dead/commented out code |
35 | 21 | flake8-expression-complexity, # Check max expression complexity |
36 | | - flake8-return, # Check return statements |
37 | | - flake8-pytest-style, # Check against pytest style guide |
38 | 22 | flake8-fixme, # Check for FIXME, TODO, and XXX left in comments |
39 | | - flake8-sql, # Check SQL statement style |
40 | | - nitpick, # Check that black, flake8, isort have compaible options |
| 23 | + flake8-isort, # Check import ordering |
41 | 24 | flake8-logging-format, # Validate (lack of) logging format strings |
| 25 | + flake8-mutable, # Check for mutable default arguments |
42 | 26 | flake8-pie, # Misc. linting rules |
| 27 | + flake8-pytest-style, # Check against pytest style guide |
| 28 | + flake8-return, # Check return statements |
| 29 | + flake8-simplify, # Suggestions to simplify code |
| 30 | + flake8-spellcheck, # Spelling checker |
| 31 | + flake8-sql, # Check SQL statement style |
| 32 | + flake8-use-fstring, # Encourages use of f-strings vs old style |
| 33 | + nitpick, # Check that black, flake8, isort have compaible options |
| 34 | + pep8-naming, # Check PEP8 class naming |
43 | 35 | ] |
44 | 36 | - repo: local |
45 | 37 | hooks: |
|
0 commit comments