kopia lustrzana https://github.com/bugout-dev/moonworm
Added isort to requirements and lint check for all python versions
rodzic
28672d872f
commit
ed81980ec9
|
@ -0,0 +1,26 @@
|
||||||
|
name: Lint Moonworm
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Upgrade pip
|
||||||
|
run: pip install -U pip
|
||||||
|
- name: Install dev dependencies
|
||||||
|
run: pip install -e .[dev]
|
||||||
|
- name: Mypy type check
|
||||||
|
run: mypy moonworm/
|
||||||
|
- name: Isort imports check
|
||||||
|
run: isort --check moonworm/
|
||||||
|
- name: Black syntax check
|
||||||
|
run: black --check moonworm/
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[settings]
|
||||||
|
profile = black
|
||||||
|
multi_line_output = 3
|
1
setup.py
1
setup.py
|
@ -16,6 +16,7 @@ setup(
|
||||||
"dev": [
|
"dev": [
|
||||||
"black",
|
"black",
|
||||||
"mypy",
|
"mypy",
|
||||||
|
"isort",
|
||||||
"wheel",
|
"wheel",
|
||||||
],
|
],
|
||||||
"distribute": ["setuptools", "twine", "wheel"],
|
"distribute": ["setuptools", "twine", "wheel"],
|
||||||
|
|
Ładowanie…
Reference in New Issue