-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
144 lines (122 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "unidep"
description = "Unified Conda and Pip requirements management."
dynamic = ["version"]
authors = [{ name = "Bas Nijholt", email = "[email protected]" }]
dependencies = [
"packaging",
"ruamel.yaml",
"typing_extensions; python_version < '3.8'",
]
requires-python = ">=3.7"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/basnijholt/unidep"
[project.optional-dependencies]
toml = ["tomli; python_version < '3.11'"]
conda-lock = ["conda-lock", "conda-package-handling"]
pip-compile = ["pip-tools"]
pytest = ["pytest", "GitPython"] # The pytest plugin
rich = ["rich-argparse"]
# Everything except 'test' and 'docs'
all = [
"unidep[toml,conda-lock,pip-compile,pytest,rich]",
]
docs = [
"myst-parser",
"sphinx",
"furo",
"emoji",
"sphinx-autodoc-typehints",
]
test = [
"unidep[all]",
"tomli_w",
"pytest",
"pre-commit",
"coverage",
"pytest-cov",
"pytest-mock",
"conda-package-handling",
"rich",
]
[project.scripts]
unidep = "unidep:_cli.main"
[project.entry-points."setuptools.finalize_distribution_options"]
unidep = "unidep._setuptools_integration:_setuptools_finalizer"
[project.entry-points.hatch]
unidep = "unidep._hatch_integration"
[project.entry-points.pytest11]
affected = "unidep._pytest_plugin"
[tool.setuptools.packages.find]
include = ["unidep.*", "unidep"]
[tool.setuptools.dynamic]
version = { attr = "unidep._version.__version__" }
[tool.setuptools.package-data]
"unidep" = ["py.typed"]
[tool.pytest.ini_options]
addopts = """
--cov=unidep
--cov-report term
--cov-report html
--cov-report xml
--cov-fail-under=95
-W error
-vvv
"""
[tool.coverage.run]
omit = ["unidep/_pytest_plugin.py", "unidep/_hatch_integration.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.black]
line_length = 88
[tool.ruff]
line-length = 88
target-version = "py37"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T20", # flake8-print
"ANN101", # Missing type annotation for {name} in method
"S101", # Use of assert detected
"S603", # S603 `subprocess` call: check for execution of untrusted input
"PD901", # df is a bad variable name. Be kinder to your future self.
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"D402", # First line should not be the function's signature
"PLW0603", # Using the global statement to update `X` is discouraged
"D401", # First line of docstring should be in imperative mood
"SLF001", # Private member accessed
"PLR0913", # Too many arguments in function definition
"TD002", # Missing author in TODO
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SLF001", "D103", "E501", "PLR2004"]
"tests/test_examples.py" = ["E501"]
".github/*" = ["INP001"]
"example/*" = ["INP001", "D100"]
"docs/*" = ["INP001", "E501"]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.8" # 3.7 is no longer supported by mypy
# Use bump-my-version, e.g., call `bump-my-version bump minor`
[tool.bumpversion]
current_version = "0.63.2"
commit = true
commit_args = "--no-verify"
tag = true
tag_name = "v{new_version}"
[[tool.bumpversion.files]]
filename = "unidep/_version.py"
replace = '__version__ = "{new_version}"'
search = '__version__ = "{current_version}"'