Refactor, typing improvements, ci improvements
This commit is contained in:
parent
d3e5d4ae56
commit
e44fd8a7a5
9 changed files with 141 additions and 107 deletions
.forgejo/workflows
|
@ -6,7 +6,7 @@ on:
|
|||
- '[0-9]+\.[0-9]+\.[0-9]'
|
||||
|
||||
jobs:
|
||||
backend-pylint:
|
||||
lint-and-typing:
|
||||
runs-on: docker
|
||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||
steps:
|
||||
|
@ -15,15 +15,20 @@ jobs:
|
|||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
pip install pylint~=2.17.7 mypy~=1.10.1 --disable-pip-version-check -q
|
||||
mypy --install-types
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
||||
- name: Run pylint
|
||||
run: |
|
||||
pylint --version
|
||||
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
||||
- name: Run mypy
|
||||
run: |
|
||||
mypy --version
|
||||
mypy .
|
||||
|
||||
build-artifacts:
|
||||
needs: ["backend-pylint"]
|
||||
needs: ["lint-and-typing"]
|
||||
runs-on: docker
|
||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||
steps:
|
||||
|
|
|
@ -3,7 +3,7 @@ on:
|
|||
branches: "**"
|
||||
|
||||
jobs:
|
||||
backend-pylint:
|
||||
pylint:
|
||||
runs-on: docker
|
||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||
steps:
|
||||
|
@ -12,9 +12,26 @@ jobs:
|
|||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
- name: Run pylint
|
||||
run: |
|
||||
pylint --version
|
||||
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
||||
|
||||
typing-mypy:
|
||||
runs-on: docker
|
||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
pip install mypy~=1.10.1 --disable-pip-version-check -q
|
||||
mypy --install-types
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
- name: Run mypy
|
||||
run: |
|
||||
mypy --version
|
||||
mypy .
|
Loading…
Add table
Add a link
Reference in a new issue