@@ -6,11 +6,9 @@ build-backend = "setuptools.build_meta"
66[project ]
77name = " sphinxcontrib-eval"
88description = " Evaluate shell command or python code in sphinx and myst"
9- authors = [{
name =
" Wu Zhenyu" ,
email =
" [email protected] " }]
109readme = " README.md"
1110requires-python = " >= 3.9"
1211keywords = [" sphinx" , " myst" , " eval" ]
13- license = { text = " GPL v3" }
1412classifiers = [
1513 " Development Status :: 3 - Alpha" ,
1614 " Intended Audience :: Developers" ,
@@ -25,9 +23,19 @@ classifiers = [
2523 " Programming Language :: Python :: 3.9" ,
2624 " Programming Language :: Python :: 3.10" ,
2725 " Programming Language :: Python :: 3.11" ,
26+ " Programming Language :: Python :: 3.12" ,
27+ " Programming Language :: Python :: Implementation :: CPython" ,
28+ " Programming Language :: Python :: Implementation :: PyPy" ,
2829]
2930dynamic = [" version" , " dependencies" , " optional-dependencies" ]
3031
32+ [[project .authors ]]
33+ name = " Wu Zhenyu"
34+ 35+
36+ [project .license ]
37+ text = " GPL v3"
38+
3139[project .urls ]
3240Homepage = " https://sphinxcontrib-eval.readthedocs.io"
3341Download = " https://github.com/sphinx-contrib/eval/releases"
@@ -40,8 +48,8 @@ write_to = "src/sphinxcontrib/eval/_version.py"
4048[tool .setuptools .package-data ]
4149"sphinxcontrib.eval" = [" py.typed" ]
4250
43- [tool .setuptools .dynamic ]
44- dependencies = { file = " requirements.txt" }
51+ [tool .setuptools .dynamic . dependencies ]
52+ file = " requirements.txt"
4553
4654# begin: scripts/update-pyproject.toml.pl
4755[tool .setuptools .dynamic .optional-dependencies .dev ]
@@ -54,25 +62,37 @@ file = "requirements/myst.txt"
5462[tool .mdformat ]
5563number = true
5664
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-
6865[tool .doq ]
6966template_path = " templates"
7067
71- [tool .bandit ]
72- skips = [ " B404 " ]
68+ [tool .ruff ]
69+ line-length = 79
7370
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
7692
7793[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