-
Notifications
You must be signed in to change notification settings - Fork 55
/
.flake8
37 lines (29 loc) · 1.15 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[flake8]
max-line-length = 88
enable-extensions = N, F, C, W, E # Enable naming checks
select = E201, E202, E204, E999, N801, N802, N803, N806, F401, F405, F811, F821, F823, F841, C901, W503, W504, E741, T001
exclude = .git, __pycache__, build, dist, venv
# Naming and Style Checks
#N801: Class names should use CamelCase
#N802: Function names should be snake_case
#N803: Argument names should be snake_case
#N806: Variable in function should be snake_case
# Functionality Checks
#F405: Name may be undefined, or defined from star imports: module
#F401: Module imported but unused
#F811: Redefinition of unused name from line n
#F823: Local variable name ... referenced before assignment
#F841: Local variable name is assigned to but never used
#F821: Undefined name
# Performance & Efficiency
# E741: Do not use ambiguous variable names like 'l', 'O', or 'I'
# Code Complexity
#C901: Function is too complex (cyclomatic complexity)
# Line Breaks
#W503: Line break before binary operator
#W504: Line break after binary operator
#T001: Print statements found
#E201: Whitespace after '('
#E202: Whitespace before ')'
#E203: Whitespace before ':'
#E211: Whitespace before '('