mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-11 02:54:23 +02:00
Run flake8 in CI, refs #291
This commit is contained in:
parent
90e211e3e2
commit
02898bf7af
2 changed files with 4 additions and 1 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -e '.[test,mypy]'
|
pip install -e '.[test,mypy,flake8]'
|
||||||
- name: Optionally install numpy
|
- name: Optionally install numpy
|
||||||
if: matrix.numpy == 1
|
if: matrix.numpy == 1
|
||||||
run: pip install numpy
|
run: pip install numpy
|
||||||
|
|
@ -34,5 +34,7 @@ jobs:
|
||||||
pytest
|
pytest
|
||||||
- name: run mypy
|
- name: run mypy
|
||||||
run: mypy sqlite_utils
|
run: mypy sqlite_utils
|
||||||
|
- name: run flake8
|
||||||
|
run: flake8
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: black . --check
|
run: black . --check
|
||||||
|
|
|
||||||
1
setup.py
1
setup.py
|
|
@ -28,6 +28,7 @@ setup(
|
||||||
"test": ["pytest", "black", "hypothesis"],
|
"test": ["pytest", "black", "hypothesis"],
|
||||||
"docs": ["sphinx_rtd_theme", "sphinx-autobuild"],
|
"docs": ["sphinx_rtd_theme", "sphinx-autobuild"],
|
||||||
"mypy": ["mypy", "types-click", "types-tabulate"],
|
"mypy": ["mypy", "types-click", "types-tabulate"],
|
||||||
|
"flake8": ["flake8"],
|
||||||
},
|
},
|
||||||
entry_points="""
|
entry_points="""
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue