From a1481683e36a5c3d730f3c1b4b0ec6afcfaf4a31 Mon Sep 17 00:00:00 2001 From: tek Date: Wed, 14 Jun 2023 01:05:14 +0200 Subject: [PATCH] Adapts linter workflow to black --- .github/workflows/black.yml | 11 +++++++++++ Makefile | 1 + setup.cfg | 6 +++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/black.yml 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