diff options
| author | 2023-03-07 14:36:09 +0000 | |
|---|---|---|
| committer | 2023-05-04 13:27:53 +0100 | |
| commit | b4b305834c2aeb92110c5fc5a2f712a4f0e39255 (patch) | |
| tree | 31e7d7954a2ced4a7fa445401e26f5a60a49ec4d | |
| parent | Add pre-commit as a dev dep and add relevent taskipy tasks (diff) | |
Update lint workflow to use pre-commit
| -rw-r--r-- | .github/workflows/lint-build-deploy.yaml | 9 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/lint-build-deploy.yaml b/.github/workflows/lint-build-deploy.yaml index 6a70ad8..ba79ca1 100644 --- a/.github/workflows/lint-build-deploy.yaml +++ b/.github/workflows/lint-build-deploy.yaml @@ -16,15 +16,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.0 with: - # Set dev=true to install flake8 extensions, which are dev dependencies - dev: true python_version: '3.10' + - name: Run pre-commit hooks + run: SKIP=ruff pre-commit run --all-files + # Run `ruff` using github formatting to enable automatic inline annotations. - name: Run ruff run: "ruff check --format=github ." diff --git a/pyproject.toml b/pyproject.toml index 9f5b8e9..5ad2d34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,4 +58,4 @@ ignore = [ "SIM102", "SIM108", ] line-length = 100 -select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
\ No newline at end of file +select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"] |