-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (69 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (69 loc) · 1.76 KB
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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 90
target-version = ["py313"]
[tool.flake8]
per-file-ignores = ["__init__.py:F401"]
exclude = "__pycache__,.git,migrations"
max-complexity = 15
max-line-length = 90
# The old ignore list: C901,W605,E203,D401,W503,D101,D107,D103,E501
ignore = [
"C901", # 'func' is too complex
"D101", # missing docstring in public class
"D103", # missing docstring in public function/class
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # missing docstring in __init__
"D202", # No blank lines allowed after function docstring
"D401", # first line should be in imperative mood
"E203", # whitespace before ':'
"E501", # line too long
"E741", # ambiguous variable name
"W503", # line break before binary operator
"W605", # invalid escape sequence
]
docstring-convention = "google"
[tool.ruff]
line-length = 90
target-version = "py313"
src = ["kolabi", "tests"]
extend-exclude = ["build", "dist", ".pytest_cache"]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = [
"C901",
"D101",
"D103",
"D105",
"D106",
"D107",
"D202",
"D401",
"E203",
"E501",
"E741",
"W605",
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
ignore_missing_imports = true
follow_imports = "silent"
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
exclude = [
"^archives/",
"^kolabi/shared/exchanges/bitmex_api/",
"^kolabi/bot/tsv/parser.py$",
"^kolabi/shared/persistence/models.py$",
"^kolabi/tree/",
]
[[tool.mypy.overrides]]
module = ["requests"]
ignore_missing_imports = true