-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (76 loc) · 2.47 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
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
[project]
name = "template"
authors = [
{name="Valentin Goldite", email="[email protected]"},
]
description = """Personal machine learning template."""
requires-python = ">=3.7"
keywords = ["template", "machine", "learning"]
classifiers = [
"Programming Language :: Python :: 3",
]
dynamic = ["readme", "dependencies", "version"]
[tool.setuptools]
py-modules = ["template"]
license-files = ['LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*']
[tool.setuptools_scm]
write_to = "template/_version.py"
[project.urls]
Source = "https://github.com/valentingol/my_ml_template"
[tool.setuptools.dynamic]
readme = { file = ["README.md"] , content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }
[tool.coverage.run]
source = ["template"]
[tool.coverage.report]
exclude_lines = ["if __name__ == '__main__':", " main()"]
[tool.pytest.ini_options]
testpaths = ["tests"]
log_level = "DEBUG"
[tool.ruff]
# pycodestyle error (E) and warning (W), pyflakes (F), mccabe (C90), isort (I),
# pydocstyle (D), numpy-related (NPY), pandas-related (PD),
# flake8:
# annotations (ANN), boolean-trap (FBT), builtins (A), commas (COM),
# comprehensions (C4), import conventions (ICN), pie (PIE), pytest-style (PT),
# return (RET), simplify (SIM), tidy-imports (TID), unused-arguments (ARG)
select = ['A', 'ARG', 'C4', 'C90', 'COM', 'D', 'E', 'F', 'FBT', 'I',
'ICN', 'NPY', 'PD', 'PIE', 'PT', 'RET', 'SIM', 'TID', 'W']
ignore = ['RET504', 'COM812', 'F841', 'F401', ]
fixable = ['A', 'ARG', 'BLE', 'C4', 'C90', 'COM', 'D', 'E', 'F', 'FBT', 'I',
'ICN', 'NPY', 'PD', 'PIE', 'PT', 'RET', 'SIM', 'TID', 'W']
exclude = [".eggs", ".git", ".mypy_cache", ".ruff_cache", ".venv", "venv",
"__pypackages__"]
line-length = 88
target-version = "py310"
[tool.ruff.mccabe]
max-complexity = 10
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 88
extend-ignore = 'E203'
[tool.pycodestyle]
ignore = 'E203'
[tool.black]
line-length = 88
[tool.ruff.pydocstyle]
convention = 'numpy'
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
files = '*.py'
follow_imports = 'skip'
follow_imports_for_stubs = false
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
pretty = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true