Fix linting
This commit is contained in:
parent
5b703d779a
commit
27fcacbdd3
14
.github/workflows/checks.yml
vendored
14
.github/workflows/checks.yml
vendored
|
@ -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
|
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue