Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Oct 4, 2023
1 parent d9258a7 commit 50bbe88
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# install
# install package
# pip3 install pre-commit
# run
# register as git commit-hook to run automatically
# pre-commit install
# run manually
# pre-commit run -a
# or
# pre-commit run --files myFile1.py myFile2.py
Expand Down Expand Up @@ -56,7 +58,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
rev: v0.37.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]
Expand All @@ -67,25 +69,26 @@ repos:
# - id: markdownlint

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.275"
rev: "v0.0.292"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.5.1
rev: v3.1.0
hooks:
- id: add-trailing-comma

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

# no, black is enough
# - repo: https://github.com/pre-commit/mirrors-autopep8
Expand Down Expand Up @@ -115,7 +118,7 @@ repos:
# - id: reorder-python-imports

- repo: https://github.com/asottile/pyupgrade
rev: v3.7.0
rev: v3.14.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]
Expand All @@ -127,7 +130,7 @@ repos:
# - id: mypy

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
Expand Down

0 comments on commit 50bbe88

Please sign in to comment.