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"]