You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytor/.pre-commit-config.yaml

40 lines
1017 B
YAML

repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
# - id: check-yaml
- id: end-of-file-fixer
- id: flake8
args:
- --exclude=__init__.py
- --exclude=settings*
language_version: python3
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: git://github.com/asottile/reorder_python_imports
rev: v1.3.4
hooks:
- id: reorder-python-imports
language_version: python3
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: 'v1.4.3'
hooks:
- id: autopep8
args:
- -aaa
- --in-place
- --experimental
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: 'v1.2'
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports