Skip to content

Commit

Permalink
adding pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
digitronik committed Jan 1, 2020
1 parent e2057c8 commit 90b1550
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
name: Trim Trailing Whitespace
language_version: python3
- id: end-of-file-fixer
name: File Ending
language_version: python3
- id: debug-statements
name: Debug Statments
language_version: python3
- id: flake8
name: Flake8
language_version: python3
verbose: true
- id: check-yaml
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.8.0
hooks:
- id: reorder-python-imports
name: Reorder Python Imports
language_version: python3
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
name: Formate with Black
args: [--safe, --quiet, --line-length, "100"]
language_version: python3
require_serial: true
- repo: https://github.com/asottile/pyupgrade
rev: v1.25.2
hooks:
- id: pyupgrade
name: Python Package Checks
language_version: python3

0 comments on commit 90b1550

Please sign in to comment.