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
4318c055
Unverified
Commit
4318c055
authored
May 27, 2025
by
Cyrus Leung
Committed by
GitHub
May 27, 2025
Browse files
[CI/Build] Remove imports of built-in `re` (#18750)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
a68e293c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
9 deletions
+10
-9
.pre-commit-config.yaml
.pre-commit-config.yaml
+1
-0
docs/mkdocs/hooks/generate_examples.py
docs/mkdocs/hooks/generate_examples.py
+2
-2
docs/mkdocs/hooks/url_schemes.py
docs/mkdocs/hooks/url_schemes.py
+1
-2
requirements/docs.txt
requirements/docs.txt
+1
-0
tools/check_triton_import.py
tools/check_triton_import.py
+2
-1
vllm/entrypoints/openai/tool_parsers/llama4_pythonic_tool_parser.py
...points/openai/tool_parsers/llama4_pythonic_tool_parser.py
+1
-2
vllm/model_executor/guided_decoding/guidance_decoding.py
vllm/model_executor/guided_decoding/guidance_decoding.py
+1
-1
vllm/model_executor/guided_decoding/outlines_decoding.py
vllm/model_executor/guided_decoding/outlines_decoding.py
+1
-1
No files found.
.pre-commit-config.yaml
View file @
4318c055
...
...
@@ -142,6 +142,7 @@ repos:
language
:
python
types
:
[
python
]
pass_filenames
:
false
additional_dependencies
:
[
regex
]
# Keep `suggestion` last
-
id
:
suggestion
name
:
Suggestion
...
...
docs/mkdocs/hooks/generate_examples.py
View file @
4318c055
# SPDX-License-Identifier: Apache-2.0
import
itertools
import
re
from
dataclasses
import
dataclass
,
field
from
pathlib
import
Path
from
typing
import
Literal
import
regex
as
re
ROOT_DIR
=
Path
(
__file__
).
parent
.
parent
.
parent
.
parent
ROOT_DIR_RELATIVE
=
'../../../../..'
EXAMPLE_DIR
=
ROOT_DIR
/
"examples"
...
...
docs/mkdocs/hooks/url_schemes.py
View file @
4318c055
# SPDX-License-Identifier: Apache-2.0
import
re
import
regex
as
re
from
mkdocs.config.defaults
import
MkDocsConfig
from
mkdocs.structure.files
import
Files
from
mkdocs.structure.pages
import
Page
...
...
requirements/docs.txt
View file @
4318c055
...
...
@@ -5,4 +5,5 @@ mkdocstrings-python
mkdocs-gen-files
mkdocs-awesome-nav
python-markdown-math
regex
ruff
tools/check_triton_import.py
View file @
4318c055
# SPDX-License-Identifier: Apache-2.0
import
re
import
subprocess
import
sys
import
regex
as
re
FORBIDDEN_IMPORT_RE
=
re
.
compile
(
r
"^(from|import)\s+triton(\s|\.|$)"
)
# the way allowed to import triton
...
...
vllm/entrypoints/openai/tool_parsers/llama4_pythonic_tool_parser.py
View file @
4318c055
# SPDX-License-Identifier: Apache-2.0
import
ast
import
json
import
re
from
collections.abc
import
Sequence
from
typing
import
Any
,
Union
import
regex
as
re
from
transformers
import
PreTrainedTokenizerBase
from
vllm.entrypoints.openai.protocol
import
(
ChatCompletionRequest
,
...
...
vllm/model_executor/guided_decoding/guidance_decoding.py
View file @
4318c055
# SPDX-License-Identifier: Apache-2.0
import
json
from
re
import
escape
as
regex_escape
import
llguidance
from
regex
import
escape
as
regex_escape
from
transformers
import
PreTrainedTokenizerBase
from
vllm.model_executor.guided_decoding.guidance_logits_processors
import
(
...
...
vllm/model_executor/guided_decoding/outlines_decoding.py
View file @
4318c055
...
...
@@ -5,9 +5,9 @@ import concurrent.futures
import
os
from
enum
import
Enum
from
json
import
dumps
as
json_dumps
from
re
import
escape
as
regex_escape
from
typing
import
Optional
,
Union
from
regex
import
escape
as
regex_escape
from
transformers
import
PreTrainedTokenizerBase
from
vllm.model_executor.guided_decoding.outlines_logits_processors
import
(
...
...
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