Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ repos:
- id: actionlint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
rev: v2.6.0
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.19
rev: v0.24.1
hooks:
- id: validate-pyproject

Expand Down
58 changes: 26 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ 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."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the formatter change this? the orignal seems to be correct

Copy link
Collaborator Author

@hugovk hugovk Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah, I'd already reported this at tox-dev/pyproject-fmt#270 and fixed it at tox-dev/pyproject-fmt-rust#61, but looks like it was lost in a refactor.

I've re-opened it as tox-dev/toml-fmt#76.

In the meantime, I've reverted this and only bumped the formatter to 1.8.

readme = "README.md"
license = {text = "PSF License"}
license = "PSF-2.0"
license-files = [ "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.9"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
Expand All @@ -35,50 +35,44 @@ 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.extend-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_" ]