mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 11:43:54 +02:00
Div. dev ops updates (#43)
* Pipline rework to limit mypy and balck to src and tests * Poetry update * pre-commit update
This commit is contained in:
28
.github/workflows/lint-actions.yaml
vendored
28
.github/workflows/lint-actions.yaml
vendored
@ -9,8 +9,7 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
run-linters:
|
||||
name: Black & mypy
|
||||
Black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up python
|
||||
@ -28,10 +27,29 @@ jobs:
|
||||
virtualenvs-path: ~/local/share/virtualenvs
|
||||
- run: poetry install --without develop,doc,test
|
||||
- name: Run linters
|
||||
uses: wearerequired/lint-action@v2
|
||||
run: |
|
||||
black src tests
|
||||
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up python
|
||||
id: setup-python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
black: true
|
||||
mypy: true
|
||||
python-version: '3.11'
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install and configure Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
version: 1.4.2
|
||||
virtualenvs-create: false
|
||||
virtualenvs-path: ~/local/share/virtualenvs
|
||||
- run: poetry install --without develop,doc
|
||||
- name: Run linters
|
||||
run: |
|
||||
mypy src tests
|
||||
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
|
Reference in New Issue
Block a user