Skip to content

Commit df1537c

Browse files
authored
Add precommit (appium#304)
* add pre-commit hook
1 parent 0330728 commit df1537c

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- repo: https://github.com/pre-commit/mirrors-autopep8
2+
rev: v1.4
3+
hooks:
4+
- id: autopep8
5+
args: ["--global-config", ".config-pep8", "-i"]

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz).
4646
```
4747
- You can customise `CHANGELOG.rst` with commit messages following [.gitchangelog.rc](.gitchangelog.rc)
4848
- It generates readable changelog
49-
- `pip install -r development.txt`
49+
- Setup
50+
- `pip install -r development.txt`
51+
- `pre-commit install`
5052

5153
## Run tests
5254

development.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
-r ci-requirements.txt
2+
pre-commit==1.13.0

0 commit comments

Comments
 (0)