Skip to content

Commit

Permalink
feat(python): added Makefile and updated ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
v.kozyar committed Feb 22, 2024
1 parent 34ede88 commit cdae9ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
working-directory: flipt-python
run: |
poetry install
poetry run black --check .
make lint
lint-typescript:
name: Lint TypeScript
Expand Down
19 changes: 19 additions & 0 deletions flipt-python/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
format:
poetry run ruff flipt tests --fix
poetry run black flipt tests

lint:
poetry run ruff flipt tests
poetry run black flipt tests --check
poetry run mypy flipt
poetry run pytest --dead-fixtures

test:
poetry run pytest --cov

testcov:
poetry run pytest --cov --cov-report html

check: format lint test

.PHONY: format lint test check testcov

0 comments on commit cdae9ea

Please sign in to comment.