Skip to content

Commit 725d518

Browse files
[pre-commit.ci] pre-commit autoupdate (#145)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b3d3bd5 commit 725d518

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: check
22
on:
33
workflow_dispatch:
44
push:
5-
branches: "main"
5+
branches: ["main"]
66
tags-ignore: ["**"]
77
pull_request:
88
schedule:

.pre-commit-config.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ repos:
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
7-
- repo: https://github.com/psf/black
8-
rev: 24.1.1
7+
- repo: https://github.com/python-jsonschema/check-jsonschema
8+
rev: 0.28.0
99
hooks:
10-
- id: black
10+
- id: check-github-workflows
11+
args: [ "--verbose" ]
12+
- repo: https://github.com/codespell-project/codespell
13+
rev: v2.2.6
14+
hooks:
15+
- id: codespell
16+
args: ["--write-changes"]
1117
- repo: https://github.com/tox-dev/tox-ini-fmt
1218
rev: "1.3.1"
1319
hooks:
@@ -17,12 +23,13 @@ repos:
1723
rev: "1.7.0"
1824
hooks:
1925
- id: pyproject-fmt
20-
additional_dependencies: ["tox>=4.11.4"]
26+
additional_dependencies: ["tox>=4.12.1"]
2127
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.2.0"
28+
rev: "v0.2.1"
2329
hooks:
30+
- id: ruff-format
2431
- id: ruff
25-
args: [--fix, --exit-non-zero-on-fix]
32+
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
2633
- repo: meta
2734
hooks:
2835
- id: check-hooks-apply

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Within the reStructuredText files use the `sphinx_argparse_cli` directive that t
4040
| usage_width | (optional) how large should usage examples be - defaults to 100 character |
4141
| group_title_prefix | (optional) groups subsections title prefixes, accepts the string `{prog}` as a replacement for the program name - defaults to `{prog}` |
4242
| group_sub_title_prefix | (optional) subcommands groups subsections title prefixes, accepts replacement of `{prog}` and `{subcommand}` for program and subcommand name - defaults to `{prog} {subcommand}` |
43-
| no_default_values | (optional) supresses generation of `default` entries |
43+
| no_default_values | (optional) suppresses generation of `default` entries |
4444

4545
For example:
4646

pyproject.toml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,42 @@ version.source = "vcs"
5959
line-length = 120
6060

6161
[tool.ruff]
62-
select = ["ALL"]
6362
line-length = 120
6463
target-version = "py38"
65-
isort = {known-first-party = ["sphinx_argparse_cli"], required-imports = ["from __future__ import annotations"]}
66-
ignore = [
67-
"ANN101", # no typoe annotation for self
64+
lint.select = ["ALL"]
65+
lint.isort = {known-first-party = ["sphinx_argparse_cli"], required-imports = ["from __future__ import annotations"]}
66+
lint.ignore = [
67+
"ANN101", # no type annotation for self
6868
"ANN401", # allow Any as type annotation
6969
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
7070
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
7171
"S104", # Possible binding to all interface
72+
"COM812", # Conflict with formatter
73+
"ISC001", # Conflict with formatter
74+
"CPY", # No copyright statements
7275
]
73-
[tool.ruff.per-file-ignores]
76+
[tool.ruff.lint.per-file-ignores]
7477
"tests/**/*.py" = [
7578
"S101", # asserts allowed in tests...
7679
"FBT", # don"t care about booleans as positional arguments in tests
7780
"INP001", # no implicit namespace
7881
"D", # don"t care about documentation in tests
7982
"S603", # `subprocess` call: check for execution of untrusted input
8083
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
84+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
85+
"PLR0913", # any number of arguments in tests
86+
"PLR0917", # any number of arguments in tests
87+
"PLC2701", # private import
8188
]
8289
"roots/**/*.py" = [
8390
"INP001", # no namespace
8491
"D", # no docs
8592
]
8693

94+
[tool.codespell]
95+
builtin = "clear,usage,en-GB_to_en-US"
96+
count = true
97+
8798
[tool.coverage]
8899
html.show_contexts = true
89100
html.skip_covered = false

0 commit comments

Comments
 (0)