File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ on: [push, pull_request]
5
5
jobs :
6
6
lint :
7
7
if : " !contains(github.event.head_commit.message, '--no-ci')"
8
- name : Run Linter
8
+ name : Run Ruff
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v4
19
19
poetry env use "3.11.3"
20
20
poetry export --only lint --output lint-requirements.txt
21
21
pip install -r lint-requirements.txt
22
- - name : Run Ruff
22
+ - name : Ruff Linter
23
23
run : ruff check --output-format=github .
24
+ - name : Ruff Formatter
25
+ run : ruff format . --check
24
26
test :
25
27
if : " !contains(github.event.head_commit.message, '--no-ci')"
26
28
name : Run Tests
Original file line number Diff line number Diff line change 19
19
down :
20
20
docker compose down
21
21
22
+ ruff :
23
+ ruff format .
24
+ ruff check . --fix
25
+
22
26
test :
23
27
docker exec -it chat-backend python -m pytest -svv $(target )
24
28
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ build-backend = "poetry.core.masonry.api"
51
51
52
52
[tool .ruff ]
53
53
line-length = 120
54
+ exclude = [" alembic" ]
54
55
55
56
[tool .ruff .lint ]
56
57
extend-select = [" W" , " E" , " I" ]
You can’t perform that action at this time.
0 commit comments