Using:
- poetry
- pre-commit
- isort
- black
- flake8
- sqlfluff
- pytest
- pytest-cov
for code formatting
Install dependencies:
poetry install
Run tests
poetry run pytest
Run tests with coverage report
poetry run pytest --cov-report term --cov=src tests/
Install pre-commit hooks
poetry run pre-commit install
Pre-commit check
poetry run pre-commit run --all-files
sqlfluff lints
poetry run sqlfluff lint dbt/dbt_test_project
VERSION=$(poetry version patch --short)
git commit -am "Bump Version"
git tag $VERSION
git push --tags
git push
Made with ❤️ by data-max.io.