mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
ca61162129
* Lint with pre-commit * Move existing tox qa hooks into pre-commit. * Set up GitHub Action based on https://github.com/pre-commit/action/ (we could also use https://pre-commit.ci ). * Add `pyupgrade` to drop old Python syntax. * Add `flake8-bugbear` plugin to prevent flake8 errors. * Drop custom GHA
22 lines
483 B
YAML
22 lines
483 B
YAML
repos:
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.11.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py36-plus]
|
|
- repo: https://github.com/psf/black
|
|
rev: 20.8b1
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.8.0
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 3.9.0
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- flake8-bugbear
|