-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
54 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,25 +11,21 @@ requires = [ | |
"versioningit", | ||
] | ||
|
||
[tool.versioningit.vcs] | ||
method = "git" | ||
default-tag = "0.0.0" | ||
|
||
[project] | ||
name = "verlib2" | ||
description = "A standalone variant of packaging.version, without anything else." | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
license = {text = "Apache License 2.0"} | ||
keywords = [ | ||
"distutils", | ||
"packaging", | ||
"version", | ||
] | ||
authors = [{name = "Donald Stufft", email = "[email protected]"}] | ||
license = { text = "Apache License 2.0" } | ||
maintainers = [ | ||
{name = "Andreas Motl", email = "[email protected]"}, | ||
{ name = "Andreas Motl", email = "[email protected]" }, | ||
] | ||
authors = [ { name = "Donald Stufft", email = "[email protected]" } ] | ||
requires-python = ">=3.6" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
|
@@ -56,30 +52,64 @@ dynamic = [ | |
dependencies = [ | ||
] | ||
|
||
[project.optional-dependencies] | ||
develop = [ | ||
optional-dependencies.develop = [ | ||
"black<25", | ||
"mypy<1.12", | ||
"poethepoet<1", | ||
"pyproject-fmt<2.3", | ||
"ruff<0.7", | ||
"validate-pyproject<0.21", | ||
] | ||
release = [ | ||
optional-dependencies.release = [ | ||
"build<2", | ||
"twine<6", | ||
] | ||
test = [ | ||
optional-dependencies.test = [ | ||
"pretend<2", | ||
"pytest<9", | ||
"pytest-cov<6", | ||
] | ||
urls.Repository = "https://github.com/pyveci/verlib2" | ||
|
||
[tool.setuptools] | ||
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html | ||
packages = ["verlib2"] | ||
packages = [ "verlib2" ] | ||
|
||
[tool.ruff] | ||
#line-length = 120 | ||
|
||
lint.select = [ | ||
# Builtins | ||
"A", | ||
# Bugbear | ||
"B", | ||
# comprehensions | ||
"C4", | ||
# Pycodestyle | ||
"E", | ||
# eradicate | ||
"ERA", | ||
# Pyflakes | ||
"F", | ||
# isort | ||
"I", | ||
# pandas-vet | ||
"PD", | ||
# return | ||
"RET", | ||
# Bandit | ||
"S", | ||
"T20", | ||
"W", | ||
# flake8-2020 | ||
"YTT", | ||
] | ||
|
||
lint.ignore = [ "RET505" ] | ||
|
||
lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected | ||
|
||
[project.urls] | ||
Repository = "https://github.com/pyveci/verlib2" | ||
[tool.pytest.ini_options] | ||
minversion = "2.0" | ||
addopts = """ | ||
|
@@ -88,64 +118,31 @@ addopts = """ | |
""" | ||
log_level = "DEBUG" | ||
log_cli_level = "DEBUG" | ||
testpaths = ["tests"] | ||
testpaths = [ "tests" ] | ||
xfail_strict = true | ||
markers = [ | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
omit = [ | ||
"tests/*", | ||
"tests/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = ["pragma: no cover", "@abc.abstractmethod", "@abc.abstractproperty"] | ||
exclude_lines = [ "pragma: no cover", "@abc.abstractmethod", "@abc.abstractproperty" ] | ||
fail_under = 0 | ||
show_missing = true | ||
|
||
[tool.mypy] | ||
packages = ["verlib2"] | ||
packages = [ "verlib2" ] | ||
strict = true | ||
show_error_codes = true | ||
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] | ||
|
||
[tool.ruff] | ||
#line-length = 120 | ||
|
||
select = [ | ||
# Bandit | ||
"S", | ||
# Bugbear | ||
"B", | ||
# Builtins | ||
"A", | ||
# comprehensions | ||
"C4", | ||
# eradicate | ||
"ERA", | ||
# flake8-2020 | ||
"YTT", | ||
# isort | ||
"I", | ||
# pandas-vet | ||
"PD", | ||
"T20", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
# Pyflakes | ||
"F", | ||
# return | ||
"RET", | ||
] | ||
|
||
ignore = ["RET505"] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"tests/*" = ["S101"] # Use of `assert` detected | ||
enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ] | ||
|
||
[tool.versioningit.vcs] | ||
method = "git" | ||
default-tag = "0.0.0" | ||
|
||
# =================== | ||
# Tasks configuration | ||
|
@@ -173,7 +170,7 @@ test-fast = [ | |
{ cmd = "pytest -m 'not slow'" }, | ||
] | ||
build = { cmd = "python -m build" } | ||
check = ["lint", "test"] | ||
check = [ "lint", "test" ] | ||
|
||
release = [ | ||
{ cmd = "python -m build" }, | ||
|