File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/psf/black
3+ rev : 20.8b1
4+ hooks :
5+ - id : black
6+ files : ' ^.*\.py'
7+ types : [file]
8+ - repo : https://gitlab.com/pycqa/flake8
9+ rev : 3.8.4
10+ hooks :
11+ - id : flake8
12+ args : ['--extend-ignore=E203', '--max-line-length=88']
13+ files : ' ^.*\.py'
14+ types : [file]
15+ - repo : https://github.com/pycqa/isort
16+ rev : 5.6.4
17+ hooks :
18+ - id : isort
19+ args : ['--profile', 'black']
20+ files : ' ^.*\.py'
21+ types : [file]
Original file line number Diff line number Diff line change @@ -18,5 +18,18 @@ $ pip install -r contributing/requirements.txt
1818### Run Formatter and Linter
1919
2020``` bash
21- make all
21+ $ make all
22+ ```
23+
24+ ### Enable pre-commit hook
25+
26+ ``` bash
27+ $ pre-commit install
28+ ```
29+
30+ Basically, ` pre-commit ` will only run on the changed files.
31+ But if you execute the bellow command, you can run on all files.
32+
33+ ``` bash
34+ $ pre-commit run --all-files
2235```
Original file line number Diff line number Diff line change 11black == 20.8b1
22flake8 == 3.8.4
3- isort == 5.6.4
3+ isort == 5.6.4
4+ pre-commit == 2.16.0
You can’t perform that action at this time.
0 commit comments