-
Notifications
You must be signed in to change notification settings - Fork 585
21 lines (21 loc) · 985 Bytes
/
lint_python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: lint_python
on: [pull_request, push]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install --upgrade pip setuptools wheel
- run: pip install codespell mypy pytest ruff safety
- run: ruff check --output-format=github --ignore=E501,E701,E713,E722,F401,F403,F405,F841 --line-length=263 .
- run: ruff format || true
- run: codespell --ignore-words-list="datas" --skip="./.git/*"
- run: pip install -r requirements.txt
- run: mypy --install-types --non-interactive . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: python ./loki.py --noprocs --noindicator --dontwait --debug -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test
# - run: safety check