Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 718 Bytes

README.md

File metadata and controls

54 lines (44 loc) · 718 Bytes

python-formatting

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

Versioning

VERSION=$(poetry version patch --short)
git commit -am "Bump Version"
git tag $VERSION
git push --tags
git push

Made with ❤️ by data-max.io.