Skip to content

Commit 555ed24

Browse files
committed
add pre-commit config
1 parent 68fb0b7 commit 555ed24

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pycqa/flake8
5+
rev: '3.9.2' # pick a git hash / tag to point to
6+
hooks:
7+
- id: flake8

README.setup.python-dev.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Python Development Setting
2+
3+
## Pre-Commit Hooks
4+
`pre-commit` module help you setup git pre-commit hook with a pre-defined configuration `.pre-commit-config.yaml` in this repo. Follow instructions below,
5+
```
6+
> pip install pre-commit flake8
7+
...
8+
9+
> pre-commit --version
10+
pre-commit 2.12.1
11+
12+
> pre-commit install
13+
pre-commit installed at .git/hooks/pre-commit
14+
```

0 commit comments

Comments
 (0)