Skip to content

Commit

Permalink
Upgrade & clean precommit config (#1733)
Browse files Browse the repository at this point in the history
* Update pre-commit config format

* Applies `pre-commit migrate-config`

* flake8 precommit hook is no longer part of pre-commit/pre-commit-hooks

* Update pre-commit hook repo versions

* No need for separate pre-commit repo to check line endings
  • Loading branch information
ulgens committed Jun 20, 2022
1 parent 1a7f7fa commit b643478
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v0.9.1
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand All @@ -14,18 +15,20 @@
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [ '--fix=lf' ]
description: Forces to replace line ending by the UNIX 'lf' character.
- id: fix-encoding-pragma
- id: flake8
- id: name-tests-test
args:
- --django
exclude: ^tests/testapp|^tests/management/|^tests/collisions/|^tests/pythonrc.py|^tests/runner.py
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
sha: v1.0.1
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: forbid-crlf
- id: flake8
- repo: https://github.com/trbs/pre-commit-hooks-trbs.git
sha: e233916fb2b4b9019b4a3cc0497994c7926fe36b
rev: 1.2.4
hooks:
- id: forbid-executables
exclude: manage.py|setup.py

0 comments on commit b643478

Please sign in to comment.