Skip to content

Commit d594ed9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ec930df commit d594ed9

File tree

2 files changed

+78
-67
lines changed

2 files changed

+78
-67
lines changed

nextgen/vcs-versioning/pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ dynamic = [
3030
]
3131
dependencies = [
3232
]
33-
[project.urls]
34-
Documentation = "https://github.com/unknown/vcs-versioning#readme"
35-
Issues = "https://github.com/unknown/vcs-versioning/issues"
36-
Source = "https://github.com/unknown/vcs-versioning"
33+
urls.Documentation = "https://github.com/unknown/vcs-versioning#readme"
34+
urls.Issues = "https://github.com/unknown/vcs-versioning/issues"
35+
urls.Source = "https://github.com/unknown/vcs-versioning"
3736

3837
[tool.hatch.version]
3938
path = "vcs_versioning/__about__.py"
@@ -48,7 +47,12 @@ cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=vcs_ve
4847
no-cov = "cov --no-cov {args}"
4948

5049
[[tool.hatch.envs.test.matrix]]
51-
python = ["38", "39", "310", "311"]
50+
python = [
51+
"38",
52+
"39",
53+
"310",
54+
"311",
55+
]
5256

5357
[tool.coverage.run]
5458
branch = true

pyproject.toml

Lines changed: 69 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
31
[build-system]
42
build-backend = "_own_version_helper:build_meta"
53
requires = [
64
"setuptools>=61",
7-
'tomli; python_version < "3.11"',
5+
"tomli; python_version<'3.11'",
86
]
97
backend-path = [
108
".",
@@ -17,7 +15,7 @@ description = "the blessed package to manage your versions by scm tags"
1715
readme = "README.md"
1816
license.file = "LICENSE"
1917
authors = [
20-
{name="Ronny Pfannschmidt", email="[email protected]"}
18+
{ name = "Ronny Pfannschmidt", email = "[email protected]" },
2119
]
2220
requires-python = ">=3.8"
2321
classifiers = [
@@ -42,91 +40,97 @@ dynamic = [
4240
dependencies = [
4341
"packaging>=20",
4442
"setuptools",
45-
'tomli>=1; python_version < "3.11"',
46-
'typing-extensions; python_version < "3.10"',
43+
"tomli>=1; python_version<'3.11'",
44+
"typing-extensions; python_version<'3.10'",
4745
]
48-
[project.optional-dependencies]
49-
docs = [
46+
optional-dependencies.docs = [
5047
"entangled-cli~=2.0",
5148
"mkdocs",
5249
"mkdocs-entangled-plugin",
5350
"mkdocs-material",
5451
"mkdocstrings[python]",
5552
"pygments",
5653
]
57-
rich = [
54+
optional-dependencies.rich = [
5855
"rich",
5956
]
60-
test = [
57+
optional-dependencies.test = [
6158
"build",
6259
"pytest",
6360
"rich",
64-
'typing-extensions; python_version < "3.11"',
61+
"typing-extensions; python_version<'3.11'",
6562
"wheel",
6663
]
67-
toml = [
68-
]
69-
[project.urls]
70-
documentation = "https://setuptools-scm.readthedocs.io/"
71-
repository = "https://github.com/pypa/setuptools_scm/"
72-
[project.entry-points."distutils.setup_keywords"]
73-
use_scm_version = "setuptools_scm._integration.setuptools:version_keyword"
74-
[project.entry-points."setuptools.file_finders"]
75-
setuptools_scm = "setuptools_scm._file_finders:find_files"
76-
[project.entry-points."setuptools.finalize_distribution_options"]
77-
setuptools_scm = "setuptools_scm._integration.setuptools:infer_version"
78-
[project.entry-points."setuptools_scm.files_command"]
79-
".git" = "setuptools_scm._file_finders.git:git_find_files"
80-
".hg" = "setuptools_scm._file_finders.hg:hg_find_files"
81-
[project.entry-points."setuptools_scm.files_command_fallback"]
82-
".git_archival.txt" = "setuptools_scm._file_finders.git:git_archive_find_files"
83-
".hg_archival.txt" = "setuptools_scm._file_finders.hg:hg_archive_find_files"
84-
[project.entry-points."setuptools_scm.local_scheme"]
85-
dirty-tag = "setuptools_scm.version:get_local_dirty_tag"
86-
no-local-version = "setuptools_scm.version:get_no_local_node"
87-
node-and-date = "setuptools_scm.version:get_local_node_and_date"
88-
node-and-timestamp = "setuptools_scm.version:get_local_node_and_timestamp"
89-
[project.entry-points."setuptools_scm.parse_scm"]
90-
".git" = "setuptools_scm.git:parse"
91-
".hg" = "setuptools_scm.hg:parse"
92-
[project.entry-points."setuptools_scm.parse_scm_fallback"]
93-
".git_archival.txt" = "setuptools_scm.git:parse_archival"
94-
".hg_archival.txt" = "setuptools_scm.hg:parse_archival"
95-
PKG-INFO = "setuptools_scm.fallbacks:parse_pkginfo"
96-
"pyproject.toml" = "setuptools_scm.fallbacks:fallback_version"
97-
"setup.py" = "setuptools_scm.fallbacks:fallback_version"
98-
[project.entry-points."setuptools_scm.version_scheme"]
99-
"calver-by-date" = "setuptools_scm.version:calver_by_date"
100-
"guess-next-dev" = "setuptools_scm.version:guess_next_dev_version"
101-
"no-guess-dev" = "setuptools_scm.version:no_guess_dev_version"
102-
"only-version" = "setuptools_scm.version:only_version"
103-
"post-release" = "setuptools_scm.version:postrelease_version"
104-
"python-simplified-semver" = "setuptools_scm.version:simplified_semver_version"
105-
"release-branch-semver" = "setuptools_scm.version:release_branch_semver_version"
64+
optional-dependencies.toml = [
65+
]
66+
urls.documentation = "https://setuptools-scm.readthedocs.io/"
67+
urls.repository = "https://github.com/pypa/setuptools_scm/"
68+
entry-points."distutils.setup_keywords".use_scm_version = "setuptools_scm._integration.setuptools:version_keyword"
69+
entry-points."setuptools.file_finders".setuptools_scm = "setuptools_scm._file_finders:find_files"
70+
entry-points."setuptools.finalize_distribution_options".setuptools_scm = "setuptools_scm._integration.setuptools:infer_version"
71+
entry-points."setuptools_scm.files_command".".git" = "setuptools_scm._file_finders.git:git_find_files"
72+
entry-points."setuptools_scm.files_command".".hg" = "setuptools_scm._file_finders.hg:hg_find_files"
73+
entry-points."setuptools_scm.files_command_fallback".".git_archival.txt" = "setuptools_scm._file_finders.git:git_archive_find_files"
74+
entry-points."setuptools_scm.files_command_fallback".".hg_archival.txt" = "setuptools_scm._file_finders.hg:hg_archive_find_files"
75+
entry-points."setuptools_scm.local_scheme".dirty-tag = "setuptools_scm.version:get_local_dirty_tag"
76+
entry-points."setuptools_scm.local_scheme".no-local-version = "setuptools_scm.version:get_no_local_node"
77+
entry-points."setuptools_scm.local_scheme".node-and-date = "setuptools_scm.version:get_local_node_and_date"
78+
entry-points."setuptools_scm.local_scheme".node-and-timestamp = "setuptools_scm.version:get_local_node_and_timestamp"
79+
entry-points."setuptools_scm.parse_scm".".git" = "setuptools_scm.git:parse"
80+
entry-points."setuptools_scm.parse_scm".".hg" = "setuptools_scm.hg:parse"
81+
entry-points."setuptools_scm.parse_scm_fallback".".git_archival.txt" = "setuptools_scm.git:parse_archival"
82+
entry-points."setuptools_scm.parse_scm_fallback".".hg_archival.txt" = "setuptools_scm.hg:parse_archival"
83+
entry-points."setuptools_scm.parse_scm_fallback".PKG-INFO = "setuptools_scm.fallbacks:parse_pkginfo"
84+
entry-points."setuptools_scm.parse_scm_fallback"."pyproject.toml" = "setuptools_scm.fallbacks:fallback_version"
85+
entry-points."setuptools_scm.parse_scm_fallback"."setup.py" = "setuptools_scm.fallbacks:fallback_version"
86+
entry-points."setuptools_scm.version_scheme"."calver-by-date" = "setuptools_scm.version:calver_by_date"
87+
entry-points."setuptools_scm.version_scheme"."guess-next-dev" = "setuptools_scm.version:guess_next_dev_version"
88+
entry-points."setuptools_scm.version_scheme"."no-guess-dev" = "setuptools_scm.version:no_guess_dev_version"
89+
entry-points."setuptools_scm.version_scheme"."only-version" = "setuptools_scm.version:only_version"
90+
entry-points."setuptools_scm.version_scheme"."post-release" = "setuptools_scm.version:postrelease_version"
91+
entry-points."setuptools_scm.version_scheme"."python-simplified-semver" = "setuptools_scm.version:simplified_semver_version"
92+
entry-points."setuptools_scm.version_scheme"."release-branch-semver" = "setuptools_scm.version:release_branch_semver_version"
10693

10794
[tool.setuptools.packages.find]
108-
where = ["src"]
95+
where = [
96+
"src",
97+
]
10998
namespaces = false
11099

111100
[tool.setuptools.dynamic]
112-
version = { attr = "_own_version_helper.version"}
101+
version = { attr = "_own_version_helper.version" }
113102

114103
[tool.setuptools_scm]
115104

116105
[tool.ruff]
117106
fix = true
118-
lint.select = ["E", "F", "B", "U", "YTT", "C", "DTZ", "PYI", "PT", "I", "FURB", "RUF"]
119-
lint.ignore = ["B028"]
107+
lint.select = [
108+
"B",
109+
"C",
110+
"DTZ",
111+
"E",
112+
"F",
113+
"FURB",
114+
"I",
115+
"PT",
116+
"PYI",
117+
"RUF",
118+
"U",
119+
"YTT",
120+
]
121+
lint.ignore = [
122+
"B028",
123+
]
124+
lint.isort.force-single-line = true
125+
lint.isort.from-first = false
126+
lint.isort.lines-between-types = 1
127+
lint.isort.order-by-type = true
120128
lint.preview = true
121129

122-
[tool.ruff.lint.isort]
123-
force-single-line = true
124-
from-first = false
125-
lines-between-types = 1
126-
order-by-type = true
127-
128130
[tool.pytest.ini_options]
129-
testpaths = ["testing"]
131+
testpaths = [
132+
"testing",
133+
]
130134
filterwarnings = [
131135
"error",
132136
"ignore:.*tool\\.setuptools_scm.*",
@@ -135,7 +139,10 @@ filterwarnings = [
135139
log_level = "debug"
136140
log_cli_level = "info"
137141
# disable unraisable until investigated
138-
addopts = ["-p", "no:unraisableexception"]
142+
addopts = [
143+
"-p",
144+
"no:unraisableexception",
145+
]
139146
markers = [
140147
"issue(id): reference to github issue",
141148
"skip_commit: allows to skip committing in the helpers",

0 commit comments

Comments
 (0)