Skip to content

Commit 0e9f6fc

Browse files
authored
Replace deprecated classifier with licence expression (PEP 639) (#138)
1 parent 688bef9 commit 0e9f6fc

File tree

2 files changed

+27
-33
lines changed

2 files changed

+27
-33
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ repos:
3030
- id: actionlint
3131

3232
- repo: https://github.com/tox-dev/pyproject-fmt
33-
rev: 1.7.0
33+
rev: v1.8.0
3434
hooks:
3535
- id: pyproject-fmt
3636
additional_dependencies: [tox]
3737

3838
- repo: https://github.com/abravalheri/validate-pyproject
39-
rev: v0.19
39+
rev: v0.24.1
4040
hooks:
4141
- id: validate-pyproject
4242

pyproject.toml

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ requires = [
99
name = "sphinx-lint"
1010
description = "Check for stylistic and formal issues in .rst and .py files included in the documentation."
1111
readme = "README.md"
12-
license = {text = "PSF License"}
12+
license = "PSF-2.0"
13+
license-files = [ "LICENSE" ]
1314
authors = [
14-
{name = "Georg Brandl", email = "[email protected]"},
15-
{name = "Julien Palard", email = "[email protected]"},
15+
{ name = "Georg Brandl", email = "[email protected]" },
16+
{ name = "Julien Palard", email = "[email protected]" },
1617
]
17-
requires-python = ">= 3.9"
18+
requires-python = ">=3.9"
1819
classifiers = [
1920
"Development Status :: 5 - Production/Stable",
2021
"Intended Audience :: Developers",
21-
"License :: OSI Approved :: Python Software Foundation License",
2222
"Natural Language :: English",
2323
"Programming Language :: Python :: 3 :: Only",
2424
"Programming Language :: Python :: 3.9",
@@ -36,50 +36,44 @@ dependencies = [
3636
"polib",
3737
"regex",
3838
]
39-
[project.optional-dependencies]
40-
tests = [
39+
optional-dependencies.tests = [
4140
"pytest",
4241
"pytest-cov",
4342
]
44-
[project.urls]
45-
Changelog = "https://github.com/sphinx-contrib/sphinx-lint/releases"
46-
Repository = "https://github.com/sphinx-contrib/sphinx-lint"
47-
[project.scripts]
48-
sphinx-lint = "sphinxlint.cli:main"
43+
urls.Changelog = "https://github.com/sphinx-contrib/sphinx-lint/releases"
44+
urls.Repository = "https://github.com/sphinx-contrib/sphinx-lint"
45+
scripts.sphinx-lint = "sphinxlint.cli:main"
4946

5047
[tool.hatch]
5148
version.source = "vcs"
5249

5350
[tool.hatch.build.targets.wheel]
54-
packages = ["sphinxlint"]
51+
packages = [ "sphinxlint" ]
5552

5653
[tool.hatch.version.raw-options]
5754
local_scheme = "no-local-version"
5855

5956
[tool.ruff]
6057
fix = true
6158

62-
[tool.ruff.lint]
63-
select = [
64-
"E", # pycodestyle errors
65-
"F", # pyflakes errors
66-
"I", # isort
67-
"PGH", # pygrep-hooks
59+
format.preview = true
60+
lint.select = [
61+
"E", # pycodestyle errors
62+
"F", # pyflakes errors
63+
"I", # isort
64+
"PGH", # pygrep-hooks
6865
"RUF100", # unused noqa (yesqa)
69-
"UP", # pyupgrade
70-
"W", # pycodestyle warnings
71-
"YTT", # flake8-2020
66+
"UP", # pyupgrade
67+
"W", # pycodestyle warnings
68+
"YTT", # flake8-2020
7269
]
73-
extend-ignore = [
74-
"E203", # Whitespace before ':'
75-
"E221", # Multiple spaces before operator
76-
"E226", # Missing whitespace around arithmetic operator
77-
"E241", # Multiple spaces after ','
70+
lint.extend-ignore = [
71+
"E203", # Whitespace before ':'
72+
"E221", # Multiple spaces before operator
73+
"E226", # Missing whitespace around arithmetic operator
74+
"E241", # Multiple spaces after ','
7875
"UP038", # makes code slower and more verbose
7976
]
8077

81-
[tool.ruff.format]
82-
preview = true
83-
8478
[tool.pylint.variables]
85-
callbacks = ["check_"]
79+
callbacks = [ "check_" ]

0 commit comments

Comments
 (0)