Better linting config (#664)

* Better linting config

* Applies isort on django-stubs, only style changes

* Fixes black and isort compat
This commit is contained in:
Nikita Sobolev
2021-07-04 16:16:43 +03:00
committed by GitHub
parent 552f2ffc0c
commit d5e45db79b
288 changed files with 1158 additions and 1201 deletions

View File

@@ -4,7 +4,7 @@ default_language_version:
python: python3.9
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v4.0.1
hooks:
- id: check-yaml
- id: trailing-whitespace
@@ -12,20 +12,26 @@ repos:
- id: debug-statements
- id: check-merge-conflict
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.3
rev: v2.20.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
rev: v5.9.1
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- id: isort
name: isort (pyi)
types: [pyi]
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.6b0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 3.9.2
hooks:
- id: flake8
- repo: local