Skip to content
Snippets Groups Projects

Configure pre-commit with our common template

Closed Jérémy Bobbio (Lunar) requested to merge lunar/docker:pre-commit into master
1 file
+ 30
0
Compare changes
  • Side-by-side
  • Inline
+ 30
0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==22.9.23]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
name: Check source code spelling
stages: [commit]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/python/black
rev: 23.1.0
hooks:
- id: black
Loading