[pre-commit.ci] pre-commit autoupdate (#1433)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.255](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.255) - [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4) * clean ruff warnings * revert C4 -> C40 rename --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
This commit is contained in:
co-authored by
Grzegorz Bokota
parent
b2d0292204
commit
2c3e01287a
@@ -19,7 +19,7 @@ repos:
|
|||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.254
|
rev: v0.0.255
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--fix"]
|
args: ["--fix"]
|
||||||
@@ -31,7 +31,7 @@ repos:
|
|||||||
args: [--include-version-classifiers, --max-py-version=3.11]
|
args: [--include-version-classifiers, --max-py-version=3.11]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.0.1
|
rev: v1.1.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy 3.7 on cibuildwheel/
|
name: mypy 3.7 on cibuildwheel/
|
||||||
@@ -79,7 +79,7 @@ repos:
|
|||||||
files: ^docs/changelog.md$
|
files: ^docs/changelog.md$
|
||||||
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.2.2
|
rev: v2.2.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
args: ["-L", "sur"]
|
args: ["-L", "sur"]
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ def _dig_first(*pairs: tuple[Mapping[str, Setting], str], ignore_empty: bool = F
|
|||||||
if key in dict_like:
|
if key in dict_like:
|
||||||
value = dict_like[key]
|
value = dict_like[key]
|
||||||
|
|
||||||
if ignore_empty and value == "":
|
if ignore_empty and value == "": # noqa: PLC1901
|
||||||
continue
|
continue
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|||||||
@@ -147,3 +147,7 @@ extend-ignore = [
|
|||||||
target-version = "py37"
|
target-version = "py37"
|
||||||
typing-modules = ["cibuildwheel.typing"]
|
typing-modules = ["cibuildwheel.typing"]
|
||||||
flake8-unused-arguments.ignore-variadic-names = true
|
flake8-unused-arguments.ignore-variadic-names = true
|
||||||
|
|
||||||
|
|
||||||
|
[tool.ruff.per-file-ignores]
|
||||||
|
"unit_test/*" = ["PLC1901"]
|
||||||
|
|||||||
Reference in New Issue
Block a user