

update pre-commit deps, replace custom pyright hook
@eda823c9a748d2bf5fdae6579ffe1b1e08a34836
--- .github/workflows/docker-build-and-push.yaml
+++ .github/workflows/docker-build-and-push.yaml
... | ... | @@ -1,5 +1,4 @@ |
1 | 1 |
name: docker-build-and-push |
2 |
- |
|
3 | 2 |
on: |
4 | 3 |
workflow_dispatch: |
5 | 4 |
push: |
... | ... | @@ -7,10 +6,8 @@ |
7 | 6 |
- 'v*' |
8 | 7 |
release: |
9 | 8 |
types: [published] |
10 |
- |
|
11 | 9 |
env: |
12 | 10 |
IMAGE_NAME: fedirz/faster-whisper-server |
13 |
- |
|
14 | 11 |
jobs: |
15 | 12 |
docker: |
16 | 13 |
runs-on: ubuntu-22.04 |
--- .pre-commit-config.yaml
+++ .pre-commit-config.yaml
... | ... | @@ -2,18 +2,18 @@ |
2 | 2 |
# See https://pre-commit.com/hooks.html for more hooks |
3 | 3 |
repos: |
4 | 4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
5 |
- rev: v3.2.0 |
|
5 |
+ rev: v4.6.0 |
|
6 | 6 |
hooks: |
7 | 7 |
- id: trailing-whitespace |
8 | 8 |
- id: end-of-file-fixer |
9 | 9 |
- id: check-yaml |
10 | 10 |
- id: check-added-large-files |
11 | 11 |
- repo: https://github.com/python-jsonschema/check-jsonschema |
12 |
- rev: 0.28.4 |
|
12 |
+ rev: 0.28.6 |
|
13 | 13 |
hooks: |
14 | 14 |
- id: check-taskfile |
15 | 15 |
- repo: https://github.com/rhysd/actionlint |
16 |
- rev: v1.7.0 |
|
16 |
+ rev: v1.7.1 |
|
17 | 17 |
hooks: |
18 | 18 |
- id: actionlint |
19 | 19 |
- repo: https://github.com/IamTheFij/docker-pre-commit |
... | ... | @@ -21,27 +21,23 @@ |
21 | 21 |
hooks: |
22 | 22 |
- id: docker-compose-check |
23 | 23 |
- repo: https://github.com/hadolint/hadolint |
24 |
- rev: v2.12.0 |
|
24 |
+ rev: v2.13.0-beta |
|
25 | 25 |
hooks: |
26 | 26 |
- id: hadolint |
27 |
- - repo: https://github.com/shellcheck-py/shellcheck-py |
|
28 |
- rev: v0.10.0.1 |
|
29 |
- hooks: |
|
30 |
- - id: shellcheck |
|
31 | 27 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
32 | 28 |
# Ruff version. |
33 |
- rev: v0.4.10 |
|
29 |
+ rev: v0.5.0 |
|
34 | 30 |
hooks: |
35 | 31 |
# Run the linter. |
36 | 32 |
- id: ruff |
37 |
- args: [ --fix ] |
|
33 |
+ args: [--fix] |
|
38 | 34 |
# Run the formatter. |
39 | 35 |
- id: ruff-format |
40 |
- # NOTE: not using https://github.com/RobertCraigie/pyright-python because it doesn't work with poetry virtual environments |
|
41 |
- - repo: local |
|
36 |
+ - repo: https://github.com/google/yamlfmt |
|
37 |
+ rev: v0.13.0 |
|
38 |
+ hooks: |
|
39 |
+ - id: yamlfmt |
|
40 |
+ - repo: https://github.com/RobertCraigie/pyright-python |
|
41 |
+ rev: v1.1.369 |
|
42 | 42 |
hooks: |
43 | 43 |
- id: pyright |
44 |
- name: pyright |
|
45 |
- entry: ./pre-commit-scripts/pyright.sh |
|
46 |
- language: script |
|
47 |
- pass_filenames: false |
--- pre-commit-scripts/pyright.sh
... | ... | @@ -1,4 +0,0 @@ |
1 | -#!/usr/bin/env bash | |
2 | -# shellcheck disable=SC1091 | |
3 | -source "$(poetry env info --path)"/bin/activate | |
4 | -pyright |
--- pyproject.toml
+++ pyproject.toml
... | ... | @@ -27,3 +27,6 @@ |
27 | 27 |
# typeCheckingMode = "strict" |
28 | 28 |
pythonVersion = "3.12" |
29 | 29 |
pythonPlatform = "Linux" |
30 |
+# https://github.com/RobertCraigie/pyright-python/tree/804dafbe7ab1b9c8766c2b4755fb29db37959ab7?tab=readme-ov-file#pre-commit |
|
31 |
+venvPath = "." |
|
32 |
+venv = ".venv" |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?