Skip to content

Commit

Permalink
Update pre-commit hook versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Burbulla committed Nov 20, 2023
1 parent e1527f6 commit dbad523
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: "^docs/conf.py"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand All @@ -20,34 +20,34 @@ repos:

# If you want to avoid flake8 errors due to unused vars or imports:
- repo: https://github.com/myint/autoflake.git
rev: v1.4
rev: v2.2.1
hooks:
- id: autoflake
args:
[--in-place, --remove-all-unused-imports, --remove-unused-variables]

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.11.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
args: ["--max-line-length=120"]
args: ["--max-line-length=80"]

# Jupyter notebook cell output clearing
- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
rev: 0.6.0
hooks:
- id: nbstripout

# Formatting yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v3.1.0
hooks:
- id: prettier
types: [yaml]
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ python_requires = >=3.8
# new major versions. This works if the required packages follow Semantic Versioning.
# For more information, check out https://semver.org/.
install_requires =
importlib-metadata==4.8.3
black # code formatting
flake8==5.0.4 # code analysis
flake8 # code analysis
isort # import sorting

# --------- loggers --------- #
Expand Down

0 comments on commit dbad523

Please sign in to comment.