Skip to content

Commit 465b2ca

Browse files
committed
Move Ruff config to pyproject.toml
1 parent b050d50 commit 465b2ca

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.15.11
3+
rev: v0.16.0
44
hooks:
55
- id: ruff-check
66
args: [--exit-non-zero-on-fix]
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.37.1
23+
rev: 0.37.4
2424
hooks:
2525
- id: check-dependabot
2626
- id: check-github-workflows
@@ -31,12 +31,12 @@ repos:
3131
- id: actionlint
3232

3333
- repo: https://github.com/zizmorcore/zizmor-pre-commit
34-
rev: v1.24.1
34+
rev: v1.28.0
3535
hooks:
3636
- id: zizmor
3737

3838
- repo: https://github.com/tox-dev/pyproject-fmt
39-
rev: v2.21.1
39+
rev: v2.25.3
4040
hooks:
4141
- id: pyproject-fmt
4242

@@ -46,7 +46,7 @@ repos:
4646
- id: validate-pyproject
4747

4848
- repo: https://github.com/tox-dev/tox-ini-fmt
49-
rev: 1.7.1
49+
rev: 1.8.0
5050
hooks:
5151
- id: tox-ini-fmt
5252

‎.ruff.toml‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎pyproject.toml‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "blurb"
1010
description = "Command-line tool to manage CPython Misc/NEWS.d entries."
1111
readme = "README.md"
1212
maintainers = [
13-
{ name = "Python Core Developers", email = "core-workflow@mail.python.org" },
13+
{ name = "Python Core Team", email = "core-workflow@mail.python.org" },
1414
]
1515
authors = [
1616
{ name = "Larry Hastings", email = "larry@hastings.org" },
@@ -27,9 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.14",
2828
"Programming Language :: Python :: 3.15",
2929
]
30-
dynamic = [
31-
"version",
32-
]
30+
dynamic = [ "version" ]
3331
optional-dependencies.tests = [
3432
"pyfakefs",
3533
"pytest",
@@ -46,5 +44,18 @@ version.source = "vcs"
4644
version.raw-options.local_scheme = "no-local-version"
4745
build.hooks.vcs.version-file = "src/blurb/_version.py"
4846

47+
[tool.ruff]
48+
fix = true
49+
format.preview = true
50+
format.quote-style = "single"
51+
format.docstring-code-format = true
52+
lint.select = [
53+
"I", # isort
54+
]
55+
lint.ignore = [
56+
"E501", # Ignore line length errors (we use auto-formatting)
57+
]
58+
lint.preview = true
59+
4960
[tool.pyproject-fmt]
5061
max_supported_python = "3.15"

0 commit comments

Comments
 (0)