From a0b3858a3b6ebd9e6ef7851a64cdb8116d8ec85b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:57:49 +0000 Subject: [PATCH] chore: update pre-commit hooks (#3204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.6.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.6.4) - [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.1...0.29.2) - [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.0...v1.11.2) - [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](https://github.com/abravalheri/validate-pyproject/compare/v0.18...v0.19) * chore: drop some unneeded config --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jim Pivarski Co-authored-by: Henry Schreiner --- .pre-commit-config.yaml | 8 ++++---- pyproject.toml | 7 +------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acd55d8d29..d8dac77444 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: additional_dependencies: [pyyaml] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.5 + rev: v0.6.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -62,13 +62,13 @@ repos: files: ^tests/ - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.1 + rev: 0.29.2 hooks: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.0 + rev: v1.11.2 hooks: - id: mypy files: src @@ -76,6 +76,6 @@ repos: - numpy>=1.24 - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.18 + rev: v0.19 hooks: - id: validate-pyproject diff --git a/pyproject.toml b/pyproject.toml index 678c07a279..20e701f5de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,7 +136,7 @@ filterwarnings = [ ] log_cli_level = "info" -[tool.pylint.master] +[tool.pylint] py-version = "3.8" jobs = "0" ignore-paths = [ @@ -251,7 +251,6 @@ ignore_errors = true ignore_missing_imports = true [tool.ruff] -src = ["src"] extend-exclude = [ "studies", "pybind11", @@ -289,10 +288,6 @@ ignore = [ "PLC1901", # x == "" can be simplified to not x (empty string is falsey) "ISC001", # Conflicts with the formatter in 0.1.2 ] -unfixable = [ - "T20", # Removes print statements - "F841", # Removes unused variables -] typing-modules = ["awkward._typing"] external = [] mccabe.max-complexity = 100