Skip to content

Commit 5f6b77e

Browse files
Add linting (#33)
Add linting
1 parent a00406d commit 5f6b77e

File tree

75 files changed

+1146
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1146
-560
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install black[jupyter]
25-
- name: Check linting
26-
run: black --check .
27-
# If PR fails in this stage, it's because of linting issues: run `black .` to fix them
24+
pip install poetry
25+
poetry install --with dev
26+
- name: Run pylint
27+
run: poetry run pylint nada_algebra
28+
- name: Run mypy
29+
run: poetry run mypy nada_algebra
2830

2931
build:
3032
needs: check-linting
@@ -55,4 +57,4 @@ jobs:
5557
pip install poetry
5658
poetry install --with dev
5759
- name: Run tests
58-
run: poetry run pytest
60+
run: poetry run pytest -vv

0 commit comments

Comments
 (0)