Fix linting

This commit is contained in:
Sleepy Monax 2023-11-21 13:30:30 +01:00
parent 5b703d779a
commit 27fcacbdd3
3 changed files with 9 additions and 17 deletions

View file

@ -22,19 +22,19 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt install -y ruff
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
python -m pip install mypy pytest python -m pip install mypy pytest ruff
- name: Run MyPy - name: Type Checking
run: | run: |
python -m mypy --install-types --non-interactive . python -m mypy --install-types --non-interactive .
- name: Run PyTest - name: Linting
run: |
ruff check cutekit
- name: Unit Testing
run: | run: |
python -m pytest python -m pytest
- name: Run Ruff
run: |
ruff check cutekit

View file

@ -3,19 +3,12 @@ import os
import logging import logging
from . import ( from . import (
builder, builder, # noqa: F401 this is imported for side effects
cli, cli,
compat,
const, const,
graph, graph, # noqa: F401 this is imported for side effects
jexpr,
mixins,
model, model,
ninja,
plugins, plugins,
rules,
shell,
utils,
vt100, vt100,
) )

View file

@ -1,4 +1,3 @@
requests ~= 2.31.0 requests ~= 2.31.0
graphviz ~= 0.20.1 graphviz ~= 0.20.1
dataclasses-json ~= 0.6.2 dataclasses-json ~= 0.6.2
docker ~= 6.1.3