Skip to content

Simple project to configure poetry, flake8, pytest, isort, black, pre-commit, sqlfluff together

License

Notifications You must be signed in to change notification settings

data-max-hq/python-formatting

Repository files navigation

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.

About

Simple project to configure poetry, flake8, pytest, isort, black, pre-commit, sqlfluff together

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published