Skip to content

Commit cbc2b33

Browse files
authored
Merge pull request #28 from honno/pyflakes-pre-commit
Add `pre-commit` config for pyflakes
2 parents 10a928b + ffce706 commit cbc2b33

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,5 @@ jobs:
1616
uses: actions/setup-python@v1
1717
with:
1818
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install pyflakes
23-
- name: Lint with pyfalkes
24-
run: |
25-
pyflakes .
19+
- name: Run pre-commit hook
20+
uses: pre-commit/action@v2.0.3

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/pycqa/flake8
3+
rev: '4.0.1'
4+
hooks:
5+
- id: flake8
6+
args: [--select, F]

0 commit comments

Comments
 (0)