Skip to content

Commit ffb45ca

Browse files
committed
put lint into a single shell command
1 parent 87a1777 commit ffb45ca

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.github/workflows/lint_python.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ jobs:
88
- uses: actions/setup-python@v4
99
with:
1010
python-version: 3.x
11-
- run: pip install --upgrade pip
12-
- run: pip install black codespell flake8 isort mypy pytest pyupgrade tox
13-
- run: black --check .
14-
- run: codespell --quiet-level=2 # --ignore-words-list="" --skip=""
15-
- run: flake8 . --count --show-source --statistics
16-
- run: isort --profile black .
17-
- run: tox
18-
- run: pip install -e .
19-
- run: mypy --ignore-missing-imports . || true
20-
- run: pytest .
21-
- run: pytest --doctest-modules . || true
22-
- run: shopt -s globstar && pyupgrade --py37-plus **/*.py
11+
- shell: bash
12+
name: Lint and test
13+
run: ./lint.sh

lint.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /bin/sh
2+
3+
pip install --upgrade pip
4+
pip install black codespell flake8 isort mypy pytest pyupgrade tox
5+
black --check .
6+
codespell --quiet-level=2 # --ignore-words-list="" --skip=""
7+
flake8 . --count --show-source --statistics
8+
isort --profile black .
9+
tox
10+
pip install -e .
11+
mypy --ignore-missing-imports . || true
12+
pytest .
13+
pytest --doctest-modules . || true
14+
shopt -s globstar && pyupgrade --py37-plus **/*.py

0 commit comments

Comments
 (0)