diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 20:47:02 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 20:47:02 +0200 |
| commit | 292dfb81d97cc8cb7d1b79536bd89cf0bf3ed7b1 (patch) | |
| tree | c85979d8f6cf13e8bdc903d0f97b90376d79fceb | |
| parent | requirements.txt: bump dependencies (diff) | |
| download | cgitize-292dfb81d97cc8cb7d1b79536bd89cf0bf3ed7b1.tar.gz cgitize-292dfb81d97cc8cb7d1b79536bd89cf0bf3ed7b1.zip | |
workflows: add Python black linting job
| -rw-r--r-- | .github/workflows/ci.yml | 14 | ||||
| -rw-r--r-- | pyproject.toml | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 076e36d..83d230f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,21 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-latest + name: Linting + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Run black + uses: psf/black@stable + test_local: + needs: [lint] runs-on: ubuntu-latest strategy: matrix: diff --git a/pyproject.toml b/pyproject.toml index df106ef..b4626c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,3 +37,6 @@ cgitize = "cgitize.main:main" packages = ["cgitize"] [tool.setuptools_scm] + +[tool.black] +skip-string-normalization = true |
