-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
154 lines (132 loc) · 3.51 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.poetry]
authors = ["Denis Rosset <[email protected]>"]
description = "Configuration from command line parameters, configuration files and environment variables"
license = "MIT"
name = "configpile"
readme = "README.rst"
repository = "https://github.com/denisrosset/configpile.git"
version = "10.1.1"
[tool.poetry.dependencies]
class-doc = "^0.2.6"
python = "^3.8"
typing-extensions = "^4.1.1"
parsy = {version = "^1.4.0", optional = true}
rich = {version = "^11.2.0", optional = true}
myst-nb = {version = "^0.13.2", optional = true}
sphinx = {version = "4.3.2", optional = true}
sphinx-argparse = {version = "^0.3.1", optional = true}
sphinx-autodoc-typehints = {version = "^1.17.0", optional = true}
sphinx-book-theme = {version = "^0.2.0", optional = true}
sphinxcontrib-programoutput = {version = "^0.17", optional = true}
[tool.poetry.extras]
docs = [
"myst-nb",
"sphinx",
"sphinx-argparse",
"sphinx-autodoc-typehints",
"sphinx-book-theme",
"sphinxcontrib-programoutput",
]
parsy = ["parsy"]
rich = ["rich"]
[tool.poetry.dev-dependencies]
black = "^22.1.0"
commitizen = "^2.21.2"
doc8 = "^0.10.1"
esbonio = "^0.13.0"
isort = "^5.10.1"
mypy = "0.941"
pylint = "^2.13.4"
pytest = "^7.0.1"
pytest-cov = "^3.0.0"
rstcheck = "^3.3.1"
tomli = "^2.0.1"
[tool.pylint.BASIC]
argument-rgx = "[a-z_][a-z0-9_]{0,30}$"
attr-rgx = "[a-z_][a-z0-9_]{0,30}$"
class-attribute-rgx = "[a-z_][a-z0-9_]{0,30}$"
variable-rgx = "[a-z_][a-z0-9_]{0,30}$"
typevar-rgx='_?[A-Z][A-Za-z0-9]{0,30}'
[tool.pylint.messages_control]
disable = [
"assignment-from-none", # this is caught by mypy and has false positives
"no-value-for-parameter", # this is caught by mypy and has false positives
"unused-argument", # happens quite often in OOP hierarchies
]
[tool.mypy]
python_version = "3.8"
files = [
"src/configpile",
"tests",
]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_none_errors = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = 'parsy'
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = 'class_doc'
[tool.pytest.ini_options]
addopts = [
"--tb=short",
"--doctest-modules",
# "--cov=configpile",
# "--cov=tests",
# "--cov-report=term",
# "--cov-report=xml",
]
doctest_optionflags = ['NORMALIZE_WHITESPACE', 'IGNORE_EXCEPTION_DETAIL', 'ELLIPSIS']
testpaths = [
"src/configpile",
"tests",
]
[tool.black]
line-length = 99
target_version = ['py38']
[tool.doc8]
max-line-length = 99
[tool.isort]
line_length = 99
profile = "black"
py_version = 38
[tool.commitizen]
annotated_tag = true
name = "cz_conventional_commits"
style = [
["qmark", "fg:#ff9d00 bold"],
["question", "bold"],
["answer", "fg:#ff9d00 bold"],
["pointer", "fg:#ff9d00 bold"],
["highlighted", "fg:#ff9d00 bold"],
["selected", "fg:#cc5454"],
["separator", "fg:#cc5454"],
["instruction", ""],
["text", ""],
["disabled", "fg:#858585 italic"],
]
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = true
version = "10.1.1"
version_files = [
"src/configpile/__init__.py:version",
"pyproject.toml:version",
]