Apply automatic fixes from ruff, show diff in CI

This commit is contained in:
Oleh Prypin
2023-09-10 14:18:25 +02:00
parent 759e1e3bae
commit 347c3a91dd
2 changed files with 3 additions and 3 deletions

View File

@@ -67,10 +67,10 @@ jobs:
node-version: 16
- name: Check with ruff
if: always()
run: hatch run style:lint
run: hatch run style:fix
- name: Check with black + isort
if: always()
run: hatch run style:format && git diff --exit-code
run: hatch run style:format && git diff --color --exit-code
- name: Check with mypy
if: always()
run: hatch run types:check

View File

@@ -104,7 +104,7 @@ dependencies = [
[tool.hatch.envs.default.scripts]
all = [
"hatch run style:check",
"hatch run style:fix",
"hatch run types:check",
"hatch run test:test",
"hatch run lint:check",