forked from sphinx-contrib/sphinx-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,14 @@ requires = [ | |
|
||
[project] | ||
name = "sphinx-lint" | ||
description = "Check for stylistic and formal issues in .rst and .py files included in the documentation." | ||
description = "Check for stylistic and formal issues in.rst and.py files included in the documentation." | ||
readme = "README.md" | ||
license = {text = "PSF License"} | ||
license = { text = "PSF License" } | ||
authors = [ | ||
{name = "Georg Brandl", email = "[email protected]"}, | ||
{name = "Julien Palard", email = "[email protected]"}, | ||
{ name = "Georg Brandl", email = "[email protected]" }, | ||
{ name = "Julien Palard", email = "[email protected]" }, | ||
] | ||
requires-python = ">= 3.8" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
|
@@ -29,57 +29,52 @@ classifiers = [ | |
"Programming Language :: Python :: 3.13", | ||
"Topic :: Documentation :: Sphinx", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
dynamic = [ "version" ] | ||
dependencies = [ | ||
"polib", | ||
"regex", | ||
] | ||
[project.optional-dependencies] | ||
tests = [ | ||
optional-dependencies.tests = [ | ||
"pytest", | ||
"pytest-cov", | ||
] | ||
[project.urls] | ||
Changelog = "https://github.com/sphinx-contrib/sphinx-lint/releases" | ||
Repository = "https://github.com/sphinx-contrib/sphinx-lint" | ||
[project.scripts] | ||
sphinx-lint = "sphinxlint.cli:main" | ||
urls.Changelog = "https://github.com/sphinx-contrib/sphinx-lint/releases" | ||
urls.Repository = "https://github.com/sphinx-contrib/sphinx-lint" | ||
scripts.sphinx-lint = "sphinxlint.cli:main" | ||
|
||
[tool.hatch] | ||
version.source = "vcs" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["sphinxlint"] | ||
packages = [ "sphinxlint" ] | ||
|
||
[tool.hatch.version.raw-options] | ||
local_scheme = "no-local-version" | ||
|
||
[tool.ruff] | ||
fix = true | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"F", # pyflakes errors | ||
"I", # isort | ||
"PGH", # pygrep-hooks | ||
format.preview = true | ||
lint.select = [ | ||
"E", # pycodestyle errors | ||
"F", # pyflakes errors | ||
"I", # isort | ||
"PGH", # pygrep-hooks | ||
"RUF100", # unused noqa (yesqa) | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
"YTT", # flake8-2020 | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
"YTT", # flake8-2020 | ||
] | ||
extend-ignore = [ | ||
"E203", # Whitespace before ':' | ||
"E221", # Multiple spaces before operator | ||
"E226", # Missing whitespace around arithmetic operator | ||
"E241", # Multiple spaces after ',' | ||
lint.ignore = [ | ||
"E203", # Whitespace before ':' | ||
"E221", # Multiple spaces before operator | ||
"E226", # Missing whitespace around arithmetic operator | ||
"E241", # Multiple spaces after ',' | ||
"UP038", # makes code slower and more verbose | ||
] | ||
|
||
[tool.ruff.format] | ||
preview = true | ||
|
||
[tool.pylint.variables] | ||
callbacks = ["check_"] | ||
callbacks = [ "check_" ] | ||
|
||
[tool.pyproject-fmt] | ||
max_supported_python = "3.13" |