Skip to content

Commit a9c6a37

Browse files
committed
Add pre-commit hooks
1 parent ef51288 commit a9c6a37

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ nosetests.xml
4141
.mr.developer.cfg
4242
.project
4343
.pydevproject
44+
45+
# PyCharm
46+
.idea

.pre-commit-hooks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- id: futurize
2+
name: futurize
3+
description: Futurize your Py2 code to ensure it is runnable on Py3.
4+
language: python
5+
types: [python]
6+
entry: futurize -w -n --no-diffs
7+
args: [--stage1]
8+
9+
- id: pasteurize
10+
name: pasteurize
11+
description: Pasteurize your Py3 code to ensure it is runnable on Py2.
12+
language: python
13+
types: [python]
14+
entry: pasteurize -w -n --no-diffs

0 commit comments

Comments
 (0)