Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
3127e975
Unverified
Commit
3127e975
authored
Jan 20, 2025
by
Cyrus Leung
Committed by
GitHub
Jan 20, 2025
Browse files
[CI/Build] Make pre-commit faster (#12212)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
4001ea12
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
.github/workflows/pre-commit.yml
.github/workflows/pre-commit.yml
+2
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+15
-1
No files found.
.github/workflows/pre-commit.yml
View file @
3127e975
...
@@ -15,3 +15,5 @@ jobs:
...
@@ -15,3 +15,5 @@ jobs:
python-version
:
"
3.12"
python-version
:
"
3.12"
-
run
:
echo "::add-matcher::.github/workflows/matchers/actionlint.json"
-
run
:
echo "::add-matcher::.github/workflows/matchers/actionlint.json"
-
uses
:
pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
# v3.0.1
-
uses
:
pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
# v3.0.1
with
:
extra_args
:
--hook-stage manual
.pre-commit-config.yaml
View file @
3127e975
default_stages
:
-
pre-commit
# Run locally
-
manual
# Run in CI
repos
:
repos
:
-
repo
:
https://github.com/google/yapf
-
repo
:
https://github.com/google/yapf
rev
:
v0.32.0
rev
:
v0.32.0
...
@@ -33,30 +36,41 @@ repos:
...
@@ -33,30 +36,41 @@ repos:
files
:
docs/.*
files
:
docs/.*
-
repo
:
local
-
repo
:
local
hooks
:
hooks
:
-
id
:
mypy-local
name
:
Run mypy for local Python installation
entry
:
tools/mypy.sh
language
:
python
types
:
[
python
]
additional_dependencies
:
&mypy_deps
[
mypy==1.11.1
,
types-setuptools
,
types-PyYAML
,
types-requests
]
stages
:
[
pre-commit
]
# Don't run in CI
-
id
:
mypy-3.9
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
-
id
:
mypy-3.9
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
name
:
Run mypy for Python
3.9
name
:
Run mypy for Python
3.9
entry
:
tools/mypy.sh 1 "3.9"
entry
:
tools/mypy.sh 1 "3.9"
language
:
python
language
:
python
types
:
[
python
]
types
:
[
python
]
additional_dependencies
:
&mypy_deps
[
mypy==1.11.1
,
types-setuptools
,
types-PyYAML
,
types-requests
]
additional_dependencies
:
*mypy_deps
stages
:
[
manual
]
# Only run in CI
-
id
:
mypy-3.10
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
-
id
:
mypy-3.10
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
name
:
Run mypy for Python
3.10
name
:
Run mypy for Python
3.10
entry
:
tools/mypy.sh 1 "3.10"
entry
:
tools/mypy.sh 1 "3.10"
language
:
python
language
:
python
types
:
[
python
]
types
:
[
python
]
additional_dependencies
:
*mypy_deps
additional_dependencies
:
*mypy_deps
stages
:
[
manual
]
# Only run in CI
-
id
:
mypy-3.11
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
-
id
:
mypy-3.11
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
name
:
Run mypy for Python
3.11
name
:
Run mypy for Python
3.11
entry
:
tools/mypy.sh 1 "3.11"
entry
:
tools/mypy.sh 1 "3.11"
language
:
python
language
:
python
types
:
[
python
]
types
:
[
python
]
additional_dependencies
:
*mypy_deps
additional_dependencies
:
*mypy_deps
stages
:
[
manual
]
# Only run in CI
-
id
:
mypy-3.12
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
-
id
:
mypy-3.12
# TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
name
:
Run mypy for Python
3.12
name
:
Run mypy for Python
3.12
entry
:
tools/mypy.sh 1 "3.12"
entry
:
tools/mypy.sh 1 "3.12"
language
:
python
language
:
python
types
:
[
python
]
types
:
[
python
]
additional_dependencies
:
*mypy_deps
additional_dependencies
:
*mypy_deps
stages
:
[
manual
]
# Only run in CI
-
id
:
shellcheck
-
id
:
shellcheck
name
:
Lint shell scripts
name
:
Lint shell scripts
entry
:
tools/shellcheck.sh
entry
:
tools/shellcheck.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment