Remove regex dependency from ruff_python_ast (#4518)

This commit is contained in:
Micha Reiser 2023-05-19 08:44:18 +02:00 committed by GitHub
parent ce8fd31a8f
commit 2f35099f81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 14 deletions

View file

@ -183,18 +183,8 @@ jobs:
- name: "Install cargo-udeps"
uses: taiki-e/install-action@cargo-udeps
- name: "Run cargo-udeps"
run: |
unused_dependencies=$(cargo +nightly-2023-03-30 udeps > unused.txt && cat unused.txt | cut -d $'\n' -f 2-)
if [ -z "$unused_dependencies" ]; then
echo "No unused dependencies found" > $GITHUB_STEP_SUMMARY
exit 0
else
echo "Found unused dependencies" > $GITHUB_STEP_SUMMARY
echo '```console' >> $GITHUB_STEP_SUMMARY
echo "$unused_dependencies" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
exit 1
fi
run: cargo +nightly-2023-03-30 udeps
python-package:
name: "python package"

1
Cargo.lock generated
View file

@ -1927,7 +1927,6 @@ dependencies = [
"num-bigint",
"num-traits",
"once_cell",
"regex",
"ruff_text_size",
"rustc-hash",
"rustpython-literal",

View file

@ -19,7 +19,6 @@ memchr = "2.5.0"
num-bigint = { version = "0.4.3" }
num-traits = { version = "0.2.15" }
once_cell = { workspace = true }
regex = { workspace = true }
rustc-hash = { workspace = true }
rustpython-literal = { workspace = true }
rustpython-parser = { workspace = true }