From 465b2cac7fb93d4ddc43e3847a7efa273b19b5d6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:30:08 +0300 Subject: [PATCH] Move Ruff config to pyproject.toml --- .pre-commit-config.yaml | 10 +++++----- .ruff.toml | 16 ---------------- pyproject.toml | 19 +++++++++++++++---- 3 files changed, 20 insertions(+), 25 deletions(-) delete mode 100644 .ruff.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03e914e..ef930db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.11 + rev: v0.16.0 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.1 + rev: 0.37.4 hooks: - id: check-dependabot - id: check-github-workflows @@ -31,12 +31,12 @@ repos: - id: actionlint - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.24.1 + rev: v1.28.0 hooks: - id: zizmor - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.1 + rev: v2.25.3 hooks: - id: pyproject-fmt @@ -46,7 +46,7 @@ repos: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.7.1 + rev: 1.8.0 hooks: - id: tox-ini-fmt diff --git a/.ruff.toml b/.ruff.toml deleted file mode 100644 index 3e19ac2..0000000 --- a/.ruff.toml +++ /dev/null @@ -1,16 +0,0 @@ -target-version = "py310" -fix = true - -[format] -preview = true -quote-style = "single" -docstring-code-format = true - -[lint] -preview = true -select = [ - "I", # isort -] -ignore = [ - "E501", # Ignore line length errors (we use auto-formatting) -] diff --git a/pyproject.toml b/pyproject.toml index 800cbc6..f96df51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ name = "blurb" description = "Command-line tool to manage CPython Misc/NEWS.d entries." readme = "README.md" maintainers = [ - { name = "Python Core Developers", email = "core-workflow@mail.python.org" }, + { name = "Python Core Team", email = "core-workflow@mail.python.org" }, ] authors = [ { name = "Larry Hastings", email = "larry@hastings.org" }, @@ -27,9 +27,7 @@ classifiers = [ "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", ] -dynamic = [ - "version", -] +dynamic = [ "version" ] optional-dependencies.tests = [ "pyfakefs", "pytest", @@ -46,5 +44,18 @@ version.source = "vcs" version.raw-options.local_scheme = "no-local-version" build.hooks.vcs.version-file = "src/blurb/_version.py" +[tool.ruff] +fix = true +format.preview = true +format.quote-style = "single" +format.docstring-code-format = true +lint.select = [ + "I", # isort +] +lint.ignore = [ + "E501", # Ignore line length errors (we use auto-formatting) +] +lint.preview = true + [tool.pyproject-fmt] max_supported_python = "3.15"