From 2c3e01287a2216d45b57a5753e0ae2583380f852 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 15:22:17 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [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 --- .pre-commit-config.yaml | 6 +++--- cibuildwheel/options.py | 2 +- pyproject.toml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ebf497d..6eea53a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.254 + rev: v0.0.255 hooks: - id: ruff args: ["--fix"] @@ -31,7 +31,7 @@ repos: args: [--include-version-classifiers, --max-py-version=3.11] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.0.1 + rev: v1.1.1 hooks: - id: mypy name: mypy 3.7 on cibuildwheel/ @@ -79,7 +79,7 @@ repos: files: ^docs/changelog.md$ - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.4 hooks: - id: codespell args: ["-L", "sur"] diff --git a/cibuildwheel/options.py b/cibuildwheel/options.py index 6b7b335f..9380077e 100644 --- a/cibuildwheel/options.py +++ b/cibuildwheel/options.py @@ -161,7 +161,7 @@ def _dig_first(*pairs: tuple[Mapping[str, Setting], str], ignore_empty: bool = F if key in dict_like: value = dict_like[key] - if ignore_empty and value == "": + if ignore_empty and value == "": # noqa: PLC1901 continue return value diff --git a/pyproject.toml b/pyproject.toml index 4573b9f4..2a5fa388 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -147,3 +147,7 @@ extend-ignore = [ target-version = "py37" typing-modules = ["cibuildwheel.typing"] flake8-unused-arguments.ignore-variadic-names = true + + +[tool.ruff.per-file-ignores] +"unit_test/*" = ["PLC1901"]