-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (95 loc) · 2.56 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (95 loc) · 2.56 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cronboss"
version = "1.5.02"
description = "cronboss"
requires-python = ">=3.11" # cohérent avec mypy/ruff
[tool.setuptools]
# plus robuste que lister les packages à la main
[tool.setuptools.packages.find]
where = ["."]
include = ["*"]
exclude = ["tests*", "z_old*", "docker*"]
# --- Pylint (si tu le gardes ponctuellement, pas en pre-commit) -------------
[tool.pylint.MASTER]
ignore = ["tests*", "z_old", "docker"]
# --- Mypy -------------------------------------------------------------------
[tool.mypy]
python_version = "3.11"
pretty = true
show_error_codes = true
ignore_missing_imports = false
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_return_any = true
disallow_untyped_calls = true
disallow_any_generics = true
warn_unused_configs = true
warn_no_return = true
files = ["."]
explicit_package_bases = true
exclude = "^(z_old|docker)/" # regex unique (mypy attend une regex, pas une liste)
[[tool.mypy.overrides]]
module = "sklearn.*"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "numpy.*"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "garminconnect.*"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "mysql.*"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "pytz"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "dotenv"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "psutil"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "yaml"
ignore_missing_imports = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "requests"
ignore_missing_imports = true
follow_imports = "skip"
# --- Ruff (v0.6+) -----------------------------------------------------------
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
".venv", "venv", "__pycache__", ".mypy_cache", ".pytest_cache",
"dist", "build", "docker", "z_old"
]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "RUF"]
ignore = ["RUF002", "RUF003", "B010"]
unfixable = [
"B010"
]
[tool.ruff.lint.isort]
known-first-party = ["."]
combine-as-imports = true
force-sort-within-sections = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
skip-magic-trailing-comma = false