forked from online-judge-tools/verification-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
75 lines (69 loc) · 1.89 KB
/
setup.cfg
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
[metadata]
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Internet :: WWW/HTTP
Topic :: Software Development
Topic :: Utilities
[options.extras_require]
dev =
isort == 5.5.2
mypy == 0.782
pylint == 2.6.0
yapf == 0.30.0
[yapf]
column_limit = 9999
[isort]
line_length = 9999
default_section = THIRDPARTY
known_first_party = onlinejudge
[pylint]
# run: $ pylint --rcfile=setup.cfg modules_or_packages
attr-rgx = [_a-z][0-9_a-z]{0,30}$|([a-z]+_)?[A-Z]+$
argument-rgx = [_a-z][0-9_a-z]{0,30}$|([a-z]+_)?[A-Z]+$
variable-rgx = [_a-z][0-9_a-z]{0,30}$|([a-z]+_)?[A-Z]+$ # `([a-z]+_)?[A-Z]+$` is for valiables like `CXXFLAGS` or `default_LANG`
disable =
bad-continuation,
broad-except,
consider-using-enumerate,
cyclic-import, # TODO: remove this.
duplicate-code,
fixme,
global-statement,
line-too-long,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
no-else-break,
no-else-raise,
no-else-return,
no-member,
no-self-use,
protected-access, # TODO: remove this.
redefined-builtin,
too-few-public-methods,
too-many-arguments,
too-many-boolean-expressions,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-nested-blocks,
too-many-public-methods,
too-many-return-statements,
too-many-statements,
undefined-loop-variable, # TODO: remove this.
unused-argument,
unused-wildcard-import,
wildcard-import,
wrong-import-order,
[mypy]
[mypy-*.*]
ignore_missing_imports = True