Skip to content

Commit 0767c8a

Browse files
committed
Move flake8 to pre-commit
1 parent b02c721 commit 0767c8a

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,3 @@ jobs:
5454
# - name: Upload coverage to coveralls
5555
# run: |
5656
# coveralls
57-
58-
lint:
59-
runs-on: ubuntu-latest
60-
61-
steps:
62-
- uses: actions/checkout@v4
63-
64-
- name: Set up Python 3.12
65-
uses: actions/setup-python@v5
66-
with:
67-
python-version: '3.12'
68-
69-
- name: Install tox and flake8 packages
70-
run: pip install tox tox-gh-actions flake8
71-
72-
- name: Lint
73-
run: tox -e flake8

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ repos:
44
hooks:
55
- id: pyupgrade
66
args: ["--py39-plus"]
7+
8+
- repo: https://github.com/pycqa/flake8
9+
rev: 7.3.0
10+
hooks:
11+
- id: flake8

0 commit comments

Comments
 (0)