From cad41f1515840df3207d02e95dfa3cdf7d75e72a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:38:01 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#29) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.5.0) - [github.com/psf/black: 24.1.1 → 24.4.2](https://github.com/psf/black/compare/24.1.1...24.4.2) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.10.1) * update ruff config --------- 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 | 8 ++++---- pyproject.toml | 14 ++++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8131fd..6d0321f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,16 +4,16 @@ default_language_version: python: python3.8 repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.5.0 hooks: - id: ruff - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.4.2 hooks: - id: black pass_filenames: true - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-json - id: check-yaml @@ -29,6 +29,6 @@ repos: - id: rst-backticks - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.8.0' # Use the sha / tag you want to point at + rev: 'v1.10.1' # Use the sha / tag you want to point at hooks: - id: mypy diff --git a/pyproject.toml b/pyproject.toml index 1c6c3bc..bb059b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,11 @@ exclude = ''' [tool.ruff] line-length = 120 +exclude = ["examples/call_simple_threshold.py"] +target-version = "py38" +fix = true + +[tool.ruff.lint] select = [ "F", # Pyflakes "E", "W", # pycodestyle @@ -127,19 +132,16 @@ select = [ "RUF", # Ruff-specific rules ] ignore = ["A003"] -exclude = ["examples/call_simple_threshold.py"] -target-version = "py38" -fix = true -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party=['local_migrator'] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] # Unlike Flake8, default to a complexity level of 10. max-complexity = 15 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "docs/conf.py" = ["A001"] "src/tests/**" = ["ARG", "PLC1901", "S101", "PLR2004"] "examples/**" = ["S101"]