Skip to content

Commit f1e4d5f

Browse files
Update ruff config (#217)
1 parent 82bd037 commit f1e4d5f

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
rev: 1dc9eb131c2ea4816c708e4d85820d2cc8542683 # frozen: v0.5.0
3030
hooks:
3131
- id: ruff
32-
args: [--fix, --exit-non-zero-on-fix]
32+
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
3333
- id: ruff-format
3434

3535
- repo: https://github.com/adamchainz/blacken-docs

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ filterwarnings = [
5454
"ignore:cannot collect 'test' because it is not a function:",
5555
]
5656

57-
[tool.ruff]
58-
line-length = 88
59-
target-version = "py38"
60-
6157
[tool.ruff.lint]
6258
select = [
6359
"C",
@@ -66,6 +62,11 @@ select = [
6662
"W",
6763
"B",
6864
"I",
65+
"C4",
66+
"ISC",
67+
"PGH",
6968
"UP",
69+
"FURB",
70+
"PYI",
7071
]
7172
ignore = ["B006", "C901", "E501", "E722"]

spin/cmds/meson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _get_configured_command(command_name):
334334
metavar="N_JOBS",
335335
default="1",
336336
help=(
337-
"Number of parallel jobs for testing. " "Can be set to `auto` to use all cores."
337+
"Number of parallel jobs for testing. Can be set to `auto` to use all cores."
338338
),
339339
)
340340
@click.option(

0 commit comments

Comments
 (0)