This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
81 lines (76 loc) · 2.55 KB
/
pyproject.toml
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
[tool.ruff]
lint.select = [
"A", # builtins
"B", # bugbear
"C40", # comprehensions
"C90", # mccabe code complexity
"E", # pycodestyle errors
"F", # pyflakes
"G", # logging format
"I", # isort
"N", # pep8 naming
"PIE", # pie
"PL", # pylint
"PYI", # type hinting stub files
"RUF", # ruff
"S", # bandit
"TID", # tidy imports
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # year 2020
]
lint.ignore = [
"A001",
"A002", # Shadowing variable names
"A003", # Class attribute shadowing
"B006",
"B904", # Within an `except` clause, raise exceptions with `raise ... from err`
"B905", # `zip()` without an explicit `strict=` parameter
"E501", # Line too long
"E741", # Ambiguous variable name 'l'
"G004", # Logging statement uses f-string
"N802", # Function name should be lowercase
"N803", # Variable name should be lowercase
"N806", # Variable name should be lowercase
"N999", # Invalid module name
"PLR2004", # Magic value used in comparison
"PLR5501", # Consider using `elif` instead of `else`
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
"PLW0120", # `else` clause on loop without a `break` statement
"PLW2901", # Redefined loop variable
"RUF00", # Ambiguous unicode character -- DO NOT FIX
"RUF100", # Unused `noqa` directive
"S101", # Use of `assert` detected -- DO NOT FIX
"S105", # Possible hardcoded password: 'password'
"S113", # Probable use of requests call without timeout
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"S324",
"UP038", # Use `X | Y` in `{}` call instead of `(X, Y)` -- DO NOT FIX
]
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # Regular expression for dummy variables
lint.mccabe.max-complexity = 17 # default: 10
lint.pylint.allow-magic-value-types = [
"float",
"int",
"str",
]
lint.pylint.max-args = 10 # default: 5
lint.pylint.max-branches = 20 # default: 12
lint.pylint.max-returns = 8 # default: 6
lint.pylint.max-statements = 88 # default: 50
[tool.codespell]
ignore-words-list = "3rt,ans,crate,damon,fo,followings,hist,iff,kwanza,mater,secant,som,sur,tim,zar"
skip = "./.*,*.json,ciphers/prehistoric_men.txt,project_euler/problem_022/p022_names.txt,pyproject.toml,strings/dictionary.txt,strings/words.txt"
[tool.pytest.ini_options]
markers = [
"mat_ops: mark a test as utilizing matrix operations.",
]
addopts = [
"--durations=10",
"--showlocals",
]
[tool.coverage.report]
omit = [
".env/*",
]
sort = "Cover"