diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-13 10:04:45 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-13 10:06:45 +0200 |
| commit | 394c15714c6ed3045cfef2812cad756ec810d9bc (patch) | |
| tree | 6ccd6747c0a36f27ef119d1280c177c222f6a50c | |
| parent | workflows/ci: reschedule for my convenience (diff) | |
| download | vk-scripts-394c15714c6ed3045cfef2812cad756ec810d9bc.tar.gz vk-scripts-394c15714c6ed3045cfef2812cad756ec810d9bc.zip | |
workflows/ci: add linting job
| -rw-r--r-- | .github/workflows/ci.yml | 17 | ||||
| -rw-r--r-- | pyproject.toml | 3 |
2 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e3e63a..8b7386f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,21 @@ env: PIP_NO_PYTHON_VERSION_WARNING: 1 jobs: + lint: + runs-on: ubuntu-latest + name: Linting + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Run black + uses: psf/black@stable + test: strategy: matrix: @@ -43,7 +58,7 @@ jobs: run: ./test/bin/main.sh publish_pypi: - needs: [test] + needs: [lint, test] runs-on: ubuntu-latest name: Publish steps: diff --git a/pyproject.toml b/pyproject.toml index 8d4813a..4272c1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,3 +30,6 @@ vk-status = "vk.tracking.status:main" vk-mutuals = "vk.mutuals:main" [tool.setuptools_scm] + +[tool.black] +skip-string-normalization = true |
