Skip to content

Commit

Permalink
Add pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dekoza committed Feb 7, 2020
1 parent ef51288 commit a9c6a37
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject

# PyCharm
.idea
14 changes: 14 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- id: futurize
name: futurize
description: Futurize your Py2 code to ensure it is runnable on Py3.
language: python
types: [python]
entry: futurize -w -n --no-diffs
args: [--stage1]

- id: pasteurize
name: pasteurize
description: Pasteurize your Py3 code to ensure it is runnable on Py2.
language: python
types: [python]
entry: pasteurize -w -n --no-diffs

0 comments on commit a9c6a37

Please sign in to comment.