Skip to content

Commit

Permalink
improve ruff configs
Browse files Browse the repository at this point in the history
  • Loading branch information
notarious2 committed Mar 17, 2024
1 parent 2ebb1ea commit 4dc5445
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
lint:
if: "!contains(github.event.head_commit.message, '--no-ci')"
name: Run Linter
name: Run Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -19,8 +19,10 @@ jobs:
poetry env use "3.11.3"
poetry export --only lint --output lint-requirements.txt
pip install -r lint-requirements.txt
- name: Run Ruff
- name: Ruff Linter
run: ruff check --output-format=github .
- name: Ruff Formatter
run: ruff format . --check
test:
if: "!contains(github.event.head_commit.message, '--no-ci')"
name: Run Tests
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ logs:
down:
docker compose down

ruff:
ruff format .
ruff check . --fix

test:
docker exec -it chat-backend python -m pytest -svv $(target)

Expand Down

0 comments on commit 4dc5445

Please sign in to comment.