diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..d954264 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,11 @@ +name: Black +on: [push] + +jobs: + black: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + options: "--check" diff --git a/Makefile b/Makefile index b0bfb9e..c617be1 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ check: flake8 pytest -q ruff check -q . + black --check . clean: rm -rf $(PWD)/build $(PWD)/dist $(PWD)/mvt.egg-info diff --git a/setup.cfg b/setup.cfg index 353e5ee..80edd89 100644 --- a/setup.cfg +++ b/setup.cfg @@ -54,7 +54,8 @@ ignore = F401, E127, W503, - E226 + E226, + E203 [pylint] score = no @@ -89,3 +90,6 @@ disable = [mypy] ignore_missing_imports = True + +[isort] +profile=black