Skip to content

Commit

Permalink
Update pre-commit configuration
Browse files Browse the repository at this point in the history
- Update ruff 0.0.287 → 0.1.2.
- Replace black with ruff-format --check.
- Update mypy 1.4.1 → 1.6.1.
  • Loading branch information
khaeru committed Oct 27, 2023
1 parent d03f1b1 commit 2f92f35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.6.1
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -16,11 +16,9 @@ repos:
- types-setuptools
- xarray
args: []
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.1.2
hooks:
- id: ruff
- id: ruff-format
args: [ --check ]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ filterwarnings = [

[tool.ruff]
select = ["C9", "E", "F", "I", "W"]
ignore = ["E501", "W191"]

[tool.ruff.mccabe]
max-complexity = 14
Expand Down

0 comments on commit 2f92f35

Please sign in to comment.