Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
7003957
1
Parent(s):
e111d94
update pre-commit deps, replace custom pyright hook
Browse files- .github/workflows/docker-build-and-push.yaml +0 -3
- .pre-commit-config.yaml +12 -16
- pre-commit-scripts/pyright.sh +0 -4
- pyproject.toml +3 -0
.github/workflows/docker-build-and-push.yaml
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
name: docker-build-and-push
|
2 |
-
|
3 |
on:
|
4 |
workflow_dispatch:
|
5 |
push:
|
@@ -7,10 +6,8 @@ on:
|
|
7 |
- 'v*'
|
8 |
release:
|
9 |
types: [published]
|
10 |
-
|
11 |
env:
|
12 |
IMAGE_NAME: fedirz/faster-whisper-server
|
13 |
-
|
14 |
jobs:
|
15 |
docker:
|
16 |
runs-on: ubuntu-22.04
|
|
|
1 |
name: docker-build-and-push
|
|
|
2 |
on:
|
3 |
workflow_dispatch:
|
4 |
push:
|
|
|
6 |
- 'v*'
|
7 |
release:
|
8 |
types: [published]
|
|
|
9 |
env:
|
10 |
IMAGE_NAME: fedirz/faster-whisper-server
|
|
|
11 |
jobs:
|
12 |
docker:
|
13 |
runs-on: ubuntu-22.04
|
.pre-commit-config.yaml
CHANGED
@@ -2,18 +2,18 @@
|
|
2 |
# See https://pre-commit.com/hooks.html for more hooks
|
3 |
repos:
|
4 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
5 |
-
rev:
|
6 |
hooks:
|
7 |
- id: trailing-whitespace
|
8 |
- id: end-of-file-fixer
|
9 |
- id: check-yaml
|
10 |
- id: check-added-large-files
|
11 |
- repo: https://github.com/python-jsonschema/check-jsonschema
|
12 |
-
rev: 0.28.
|
13 |
hooks:
|
14 |
- id: check-taskfile
|
15 |
- repo: https://github.com/rhysd/actionlint
|
16 |
-
rev: v1.7.
|
17 |
hooks:
|
18 |
- id: actionlint
|
19 |
- repo: https://github.com/IamTheFij/docker-pre-commit
|
@@ -21,27 +21,23 @@ repos:
|
|
21 |
hooks:
|
22 |
- id: docker-compose-check
|
23 |
- repo: https://github.com/hadolint/hadolint
|
24 |
-
rev: v2.
|
25 |
hooks:
|
26 |
- id: hadolint
|
27 |
-
- repo: https://github.com/shellcheck-py/shellcheck-py
|
28 |
-
rev: v0.10.0.1
|
29 |
-
hooks:
|
30 |
-
- id: shellcheck
|
31 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
32 |
# Ruff version.
|
33 |
-
rev: v0.
|
34 |
hooks:
|
35 |
# Run the linter.
|
36 |
- id: ruff
|
37 |
-
args: [
|
38 |
# Run the formatter.
|
39 |
- id: ruff-format
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
hooks:
|
43 |
- id: pyright
|
44 |
-
name: pyright
|
45 |
-
entry: ./pre-commit-scripts/pyright.sh
|
46 |
-
language: script
|
47 |
-
pass_filenames: false
|
|
|
2 |
# See https://pre-commit.com/hooks.html for more hooks
|
3 |
repos:
|
4 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
5 |
+
rev: v4.6.0
|
6 |
hooks:
|
7 |
- id: trailing-whitespace
|
8 |
- id: end-of-file-fixer
|
9 |
- id: check-yaml
|
10 |
- id: check-added-large-files
|
11 |
- repo: https://github.com/python-jsonschema/check-jsonschema
|
12 |
+
rev: 0.28.6
|
13 |
hooks:
|
14 |
- id: check-taskfile
|
15 |
- repo: https://github.com/rhysd/actionlint
|
16 |
+
rev: v1.7.1
|
17 |
hooks:
|
18 |
- id: actionlint
|
19 |
- repo: https://github.com/IamTheFij/docker-pre-commit
|
|
|
21 |
hooks:
|
22 |
- id: docker-compose-check
|
23 |
- repo: https://github.com/hadolint/hadolint
|
24 |
+
rev: v2.13.0-beta
|
25 |
hooks:
|
26 |
- id: hadolint
|
|
|
|
|
|
|
|
|
27 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
28 |
# Ruff version.
|
29 |
+
rev: v0.5.0
|
30 |
hooks:
|
31 |
# Run the linter.
|
32 |
- id: ruff
|
33 |
+
args: [--fix]
|
34 |
# Run the formatter.
|
35 |
- id: ruff-format
|
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 |
hooks:
|
43 |
- id: pyright
|
|
|
|
|
|
|
|
pre-commit-scripts/pyright.sh
DELETED
@@ -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
CHANGED
@@ -27,3 +27,6 @@ target-version = "py312"
|
|
27 |
# typeCheckingMode = "strict"
|
28 |
pythonVersion = "3.12"
|
29 |
pythonPlatform = "Linux"
|
|
|
|
|
|
|
|
27 |
# typeCheckingMode = "strict"
|
28 |
pythonVersion = "3.12"
|
29 |
pythonPlatform = "Linux"
|
30 |
+
# https://github.com/RobertCraigie/pyright-python/tree/804dafbe7ab1b9c8766c2b4755fb29db37959ab7?tab=readme-ov-file#pre-commit
|
31 |
+
venvPath = "."
|
32 |
+
venv = ".venv"
|