mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-03-16 22:20:24 +00:00
Adds a precommit config file (and .flake8 config) to enable CI in jazzband organization. Adds basic following checks: * Black * isort * flake8 * end-of-file-fixer * trailing-whitespace
23 lines
496 B
YAML
23 lines
496 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: "5.10.1"
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black"]
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
args: [--target-version=py38]
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: '4.0.1'
|
|
hooks:
|
|
- id: flake8
|