| install: | |
| @echo "--- ๐ Installing project dependencies ---" | |
| pip install -e ".[dev]" | |
| install-for-tests: | |
| @echo "--- ๐ Installing project dependencies for test ---" | |
| @echo "This ensures that the project is not installed in editable mode" | |
| pip install ".[dev]" | |
| lint: | |
| @echo "--- ๐งน Running linters ---" | |
| ruff format . # running ruff formatting | |
| ruff check . --fix # running ruff linting | |
| lint-check: | |
| @echo "--- ๐งน Check is project is linted ---" | |
| # Required for CI to work, otherwise it will just pass | |
| ruff format . --check # running ruff formatting | |
| ruff check **/*.py # running ruff linting | |
| test: | |
| @echo "--- ๐งช Running tests ---" | |
| pytest -n auto --durations=5 | |
| pr: | |
| @echo "--- ๐ Running requirements for a PR ---" | |
| make lint | |
| make test | |