mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
ref: typehints, enum instead of raw string, abc and other (#1)
Full code coverage with annotations, fixing errors in various linters: ruff, wps, etc. Fixing errors in type checkers: ty, mypy, pyright. Formatting and bringing code to a consistent style, applying best practices in various aspects.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: mypy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "kolo" ]
|
||||
pull_request:
|
||||
branches: [ "kolo" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.13"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install mypy
|
||||
|
||||
- name: Run type checker
|
||||
run: mypy -p argenta --strict
|
||||
@@ -24,8 +24,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
poetry install
|
||||
pip install uv
|
||||
uv sync --group dev
|
||||
|
||||
- name: Run tests
|
||||
run: poetry run python -m unittest discover
|
||||
run: uv run python -m unittest discover
|
||||
|
||||
Reference in New Issue
Block a user