@@ -6,11 +6,9 @@ build-backend = "setuptools.build_meta"
6
6
[project ]
7
7
name = " sphinxcontrib-eval"
8
8
description = " Evaluate shell command or python code in sphinx and myst"
9
- authors = [{
name =
" Wu Zhenyu" ,
email =
" [email protected] " }]
10
9
readme = " README.md"
11
10
requires-python = " >= 3.9"
12
11
keywords = [" sphinx" , " myst" , " eval" ]
13
- license = { text = " GPL v3" }
14
12
classifiers = [
15
13
" Development Status :: 3 - Alpha" ,
16
14
" Intended Audience :: Developers" ,
@@ -25,9 +23,19 @@ classifiers = [
25
23
" Programming Language :: Python :: 3.9" ,
26
24
" Programming Language :: Python :: 3.10" ,
27
25
" Programming Language :: Python :: 3.11" ,
26
+ " Programming Language :: Python :: 3.12" ,
27
+ " Programming Language :: Python :: Implementation :: CPython" ,
28
+ " Programming Language :: Python :: Implementation :: PyPy" ,
28
29
]
29
30
dynamic = [" version" , " dependencies" , " optional-dependencies" ]
30
31
32
+ [[project .authors ]]
33
+ name = " Wu Zhenyu"
34
+
35
+
36
+ [project .license ]
37
+ text = " GPL v3"
38
+
31
39
[project .urls ]
32
40
Homepage = " https://sphinxcontrib-eval.readthedocs.io"
33
41
Download = " https://github.com/sphinx-contrib/eval/releases"
@@ -40,8 +48,8 @@ write_to = "src/sphinxcontrib/eval/_version.py"
40
48
[tool .setuptools .package-data ]
41
49
"sphinxcontrib.eval" = [" py.typed" ]
42
50
43
- [tool .setuptools .dynamic ]
44
- dependencies = { file = " requirements.txt" }
51
+ [tool .setuptools .dynamic . dependencies ]
52
+ file = " requirements.txt"
45
53
46
54
# begin: scripts/update-pyproject.toml.pl
47
55
[tool .setuptools .dynamic .optional-dependencies .dev ]
@@ -54,25 +62,37 @@ file = "requirements/myst.txt"
54
62
[tool .mdformat ]
55
63
number = true
56
64
57
- [tool .black ]
58
- line-length = 79
59
-
60
- [tool .isort ]
61
- line_length = 79
62
- profile = " black"
63
-
64
- # https://github.com/PyCQA/pydocstyle/issues/418
65
- [tool .pydocstyle ]
66
- add_ignore = " D205, D400"
67
-
68
65
[tool .doq ]
69
66
template_path = " templates"
70
67
71
- [tool .bandit ]
72
- skips = [ " B404 " ]
68
+ [tool .ruff ]
69
+ line-length = 79
73
70
74
- [tool .bandit .assert_used ]
75
- skips = [" tests/*.py" , " *_test.py" , " test_*.py" ]
71
+ [tool .ruff .lint ]
72
+ select = [
73
+ # pycodestyle
74
+ " E" ,
75
+ # pyflakes
76
+ " F" ,
77
+ # pyupgrade
78
+ " UP" ,
79
+ # flake8-bugbear
80
+ " B" ,
81
+ # flake8-simplify
82
+ " SIM" ,
83
+ # isort
84
+ " I" ,
85
+ ]
86
+ ignore = [" D205" , " D400" ]
87
+ preview = true
88
+
89
+ [tool .ruff .format ]
90
+ docstring-code-format = true
91
+ preview = true
76
92
77
93
[tool .coverage .report ]
78
- exclude_lines = [" if TYPE_CHECKING:" , " if __name__ == .__main__.:" ]
94
+ exclude_lines = [
95
+ " if TYPE_CHECKING:" ,
96
+ " if __name__ == .__main__.:" ,
97
+ " \\ s*import tomli as tomllib" ,
98
+ ]
0 commit comments