Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
nir0s committed Nov 23, 2020
1 parent 7be0e83 commit f10fa44
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: local
hooks:
- id: pylint
name: pylint
# Don't wanna deal with tests right now.
entry: pylint --ignore-patterns=test_.*?py
args: ["--score=n"]
language: python
types: [python]
- id: black
name: black
entry: black
language: python
require_serial: true
types: [python]
- id: pytype
name: pytype
entry: pytype
args: ["-d", "import-error"]
language: python
require_serial: true
types: [python]

0 comments on commit f10fa44

Please sign in to comment.