-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
135 lines (118 loc) · 2.69 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
[project]
name = "cliconfig"
authors = [{ name = "Valentin Goldite", email = "[email protected]" }]
description = """Merge your config files and set parameters from the command line in a simple way."""
requires-python = ">=3.7"
keywords = ["cli", "config", "cliconfig", "python", "yaml", "merge"]
classifiers = ["Programming Language :: Python :: 3"]
dynamic = ["readme", "dependencies", "version"]
[tool.setuptools]
packages = ["cliconfig"]
license-files = ['LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*']
[tool.setuptools_scm]
write_to = "cliconfig/_version.py"
[project.urls]
Source = "https://github.com/valentingol/cliconfig"
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }
[tool.coverage.run]
source = ["cliconfig"]
[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', 'PD011']
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 = false