-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
66 lines (63 loc) · 1.71 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
[tool.mypy]
# almost like strict, but leave out some too strict checks
warn_unused_configs = true
# disallow_any_generics = true
disallow_subclassing_any = true
# disallow_untyped_calls = true
# disallow_untyped_defs = true
# disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
# warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
# for python-markdown
disable_error_code = "attr-defined"
[[tool.mypy.overrides]]
module = [
"anyblock_exporter",
"enlighten",
"frontmatter",
"puremagic",
"pypandoc",
"pytodotxt",
"stage_left",
"stage_left.types"
]
ignore_missing_imports = true
[tool.pylint]
disable = [
# f-strings are convenient. Don't care about the performance (yet).
"logging-fstring-interpolation",
"missing-function-docstring",
"missing-class-docstring",
# needed for flexible base class
"arguments-differ"
]
min-similarity-lines = 10
notes = [] # don't show todos
[tool.ruff]
# Set the maximum line length to 88.
line-length = 88
[tool.ruff.lint]
# all rules: https://docs.astral.sh/ruff/rules/
select = [
"B", # flake8-bugbear
"E", # pycodestyle errors
"F", # Pyflakes
# "I", # isort
"N", # pep8-naming
# "PL", # Pylint
# "RUF", # ruff
# "S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# use pytest to include unittests and doctests:
# https://stackoverflow.com/questions/43463273/python-m-doctest-ignores-files-with-same-names-in-different-directories
[tool.pytest.ini_options]
addopts = "--log-level DEBUG --verbose --doctest-modules"