Skip to content

Commit

Permalink
refactor: simplified Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kryukov committed Sep 12, 2024
1 parent 2ba6d0a commit 810b5a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction
- name: Lint with ruff and test with pytest
run: make check && make test
run: |
make check
make test
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
all: check test

check:
poetry run python -m ruff check mongomock_motor/ tests/ && \
poetry run python -m ruff format --check mongomock_motor/ tests/
poetry run ruff check mongomock_motor tests && \
poetry run ruff format --check mongomock_motor tests

format:
poetry run python -m ruff check --fix mongomock_motor/ tests/ && \
poetry run python -m ruff format mongomock_motor/ tests/
poetry run ruff check --fix mongomock_motor tests && \
poetry run ruff format mongomock_motor tests

test:
poetry run python -m pytest tests/
poetry run pytest ./tests

0 comments on commit 810b5a8

Please sign in to comment.