Skip to content

Commit

Permalink
Update pre-commit tools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
maabuu committed Nov 21, 2023
1 parent dea3903 commit 09111de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude: ^tests/conftest/|^.vscode/|^posebusters/datasets/pdb
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
# - id: no-commit-to-branch # branch protected on github
- id: forbid-submodules
Expand Down Expand Up @@ -46,7 +46,7 @@ repos:

# update syntax
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -56,39 +56,41 @@ repos:
rev: 5.12.0
hooks:
- id: isort
args: ["--settings-path=pyproject.toml"]

# find unused imports
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3
rev: v2.4.0
hooks:
- id: pycln
args: ["--config=pyproject.toml"]
stages: ["manual"]

# format code
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.11.0
hooks:
- id: black
language_version: python3.11
args: ["--config=pyproject.toml"]

# lint code
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: ["flake8-black", "flake8-docstrings", "flake8-pyproject"]

# check types
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
rev: v1.7.0
hooks:
- id: mypy
additional_dependencies: ["types-PyYAML"]

# find typos
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies: ["tomli"]
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ per-file-ignores = """
tests/*: D
"""

[tool.pylint]
max-line-length = 120

[tool.coverage.run]
branch = true

Expand Down

0 comments on commit 09111de

Please sign in to comment.