-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
133 lines (112 loc) · 3.24 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
[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 = [
"ruamel.yaml",
"typing_extensions; python_version < '3.8'",
"packaging",
]
requires-python = ">=3.7"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/basnijholt/unidep"
[project.optional-dependencies]
test = [
"pytest",
"pre-commit",
"coverage",
"pytest-cov",
"pytest-mock",
"conda-package-handling",
]
conda-lock = ["conda-lock", "conda-package-handling"]
pip-compile = ["pip-tools"]
pytest = ["pytest", "GitPython"] # The pytest plugin
rich = ["rich-argparse"]
# Everything except testing
all = [
"conda-lock",
"conda-package-handling",
"pytest",
"GitPython",
"rich-argparse",
"pip-tools",
]
[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"
[tool.poetry.plugins."poetry.plugin"]
poetry-dynamic-versioning = "unidep._poetry_integration:UniDepPlugin"
[project.entry-points.pytest11]
affected = "unidep._pytest_plugin"
[tool.setuptools.packages.find]
include = ["unidep.*", "unidep"]
[tool.setuptools.dynamic]
version = { attr = "unidep._version.__version__" }
[tool.pytest.ini_options]
addopts = """
--cov=unidep
--cov-report term
--cov-report html
--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"
select = ["ALL"]
ignore = [
"T20", # flake8-print
"ANN101", # Missing type annotation for {name} in method
"S101", # Use of assert detected
"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.per-file-ignores]
"tests/*" = ["SLF001", "D103", "E501", "PLR2004"]
"tests/test_examples.py" = ["E501"]
".github/*" = ["INP001"]
"example/*" = ["INP001", "D100"]
[tool.ruff.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.7"
# Use bump-my-version, e.g., call `bump-my-version bump minor`
[tool.bumpversion]
current_version = "0.39.0"
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}"'