Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#29)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.5.0](astral-sh/ruff-pre-commit@v0.2.0...v0.5.0)
- [github.com/psf/black: 24.1.1 → 24.4.2](psf/black@24.1.1...24.4.2)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.10.1](pre-commit/mirrors-mypy@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 <bokota+github@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and Czaki authored Jul 2, 2024
1 parent b461242 commit cad41f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]

0 comments on commit cad41f1

Please sign in to comment.