Added isort to requirements and lint check for all python versions

pull/9/head
kompotkot 2021-11-05 11:51:47 +00:00
rodzic 28672d872f
commit ed81980ec9
3 zmienionych plików z 30 dodań i 0 usunięć

26
.github/workflow/lint.yml vendored 100644
Wyświetl plik

@ -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/

3
.isort.cfg 100644
Wyświetl plik

@ -0,0 +1,3 @@
[settings]
profile = black
multi_line_output = 3

Wyświetl plik

@ -16,6 +16,7 @@ setup(
"dev": [
"black",
"mypy",
"isort",
"wheel",
],
"distribute": ["setuptools", "twine", "wheel"],