@@ -9,16 +9,16 @@ requires = [
9
9
name = " sphinx-lint"
10
10
description = " Check for stylistic and formal issues in .rst and .py files included in the documentation."
11
11
readme = " README.md"
12
- license = {text = " PSF License" }
12
+ license = " PSF-2.0"
13
+ license-files = [ " LICENSE" ]
13
14
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] " },
16
17
]
17
- requires-python = " >= 3.9"
18
+ requires-python = " >=3.9"
18
19
classifiers = [
19
20
" Development Status :: 5 - Production/Stable" ,
20
21
" Intended Audience :: Developers" ,
21
- " License :: OSI Approved :: Python Software Foundation License" ,
22
22
" Natural Language :: English" ,
23
23
" Programming Language :: Python :: 3 :: Only" ,
24
24
" Programming Language :: Python :: 3.9" ,
@@ -36,50 +36,44 @@ dependencies = [
36
36
" polib" ,
37
37
" regex" ,
38
38
]
39
- [project .optional-dependencies ]
40
- tests = [
39
+ optional-dependencies.tests = [
41
40
" pytest" ,
42
41
" pytest-cov" ,
43
42
]
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"
49
46
50
47
[tool .hatch ]
51
48
version.source = " vcs"
52
49
53
50
[tool .hatch .build .targets .wheel ]
54
- packages = [" sphinxlint" ]
51
+ packages = [ " sphinxlint" ]
55
52
56
53
[tool .hatch .version .raw-options ]
57
54
local_scheme = " no-local-version"
58
55
59
56
[tool .ruff ]
60
57
fix = true
61
58
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
68
65
" 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
72
69
]
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 ','
78
75
" UP038" , # makes code slower and more verbose
79
76
]
80
77
81
- [tool .ruff .format ]
82
- preview = true
83
-
84
78
[tool .pylint .variables ]
85
- callbacks = [" check_" ]
79
+ callbacks = [ " check_" ]
0 commit comments