-
Notifications
You must be signed in to change notification settings - Fork 6
/
.flake8
97 lines (97 loc) · 2.81 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[flake8]
exclude = .git,__pycache__,attic,build,dist
ignore =
# Import statements are in the wrong order
I100,
# line too long (164 > 79 characters)
E501,
# String literal formatting using f-string
SFS301,
# class name 'ALIEN_COLLECTION_EL' should use CapWords convention
N801,
# function name should be lowercase
N802,
# variable '_XRDVER_1' in function should be lowercase
N806,
# variable 'aclId' in class scope should not be mixedCase
N815,
# unexpected spaces around keyword / parameter equals
# E251,
# Missing docstring in public function
D103,
# Missing docstring in public method
D102,
# Missing docstring in magic method
D105,
# Missing docstring in __init__
D107,
# unexpected spaces around keyword / parameter equals
E201,
E202,
E231,
E251,
E265,
E266,
# 'requests' imported but unused
F401,
# module level import not at top of file
E402,
# multiple statements on one line (colon)
E701,
# multiple statements on one line (semicolon)
E702,
# multiple statements on one line (def)
E704,
# Double quotes found but single quotes preferred
Q000,
# Single quote multiline found but double quotes preferred
Q001,
# First line should end with a period
D400,
#First line should be in imperative mood; try rephrasing
D401,
# 1 blank line required after class docstring
D204,
# Use precise exception handlers.
PIE786,
# Missing type annotation for function argument
ANN001,
# Missing type annotation for *args
ANN002,
# Missing type annotation for **kwargs
ANN003,
# Missing type annotation for self in method
ANN101,
# Missing return type annotation for public function
ANN201,
# Missing return type annotation for protected function
ANN202,
# Missing return type annotation for special method
ANN204,
# First word of the first line should be properly capitalized
D403,
# argument name 'toLog' should be lowercase
N803,
# 1 blank line required between summary line and description
D205,
# prefer-logging-interpolation: Use lazy % formatting in logging functions
PIE803,
# Function "SendMsg" has 5 returns that exceeds max allowed 3
CFQ004,
# Function "lfnAccessUrl" has 7 arguments that exceeds max allowed 6
CFQ002,
# Function list_files_grid has length 154 that exceeds max allowed length 100
CFQ001,
# local variable 'cksum' is assigned to but never used
F841,
# Use 'contextlib.suppress(Exception)'
SIM105,
# Class names should be in PascalCase
PBP116,
# Single quote docstring found but double quotes preferred
Q002,
# Unused argument
U100,
# function missing type hints for arguments
TH100,
TH101,