Skip to content

Commit bba6275

Browse files
committed
run linters manually in CI
1 parent 36c99c8 commit bba6275

File tree

3 files changed

+14
-30
lines changed

3 files changed

+14
-30
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
pre-commit:
10+
lint:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: actions/[email protected]
15-
- run: python -m pip install -U .[dev]
16-
- uses: pre-commit/[email protected]
15+
- run: python -m pip install -U .[lint]
16+
- name: black
17+
run: |
18+
black --check src tests
19+
- name: flake8
20+
run: |
21+
flake8 src tests
22+
- name: mypy
23+
run: |
24+
mypy src

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
python -m pip install -U .[dev]
41+
python -m pip install -U .[test]
4242
4343
- name: Test with pytest
4444
run: |
@@ -91,7 +91,7 @@ jobs:
9191
- name: Install dependencies
9292
run: |
9393
python -m pip install --upgrade pip
94-
python -m pip install -U .[dev]
94+
python -m pip install -U .[test]
9595
9696
- name: Get short-lived Dropbox token
9797
# We generate a short-lived auth token which is passed to the test runner as
@@ -164,7 +164,7 @@ jobs:
164164
- name: Install dependencies
165165
run: |
166166
python -m pip install --upgrade pip
167-
python -m pip install -U .[dev]
167+
python -m pip install -U .[test]
168168
169169
- name: Get short-lived Dropbox token
170170
# We generate a short-lived auth token which is passed to the test runner as

.pre-commit-config.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)