From 2f35099f81220d3ce8a78842ad581a862a402ff1 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 19 May 2023 08:44:18 +0200 Subject: [PATCH] Remove `regex` dependency from `ruff_python_ast` (#4518) --- .github/workflows/ci.yaml | 14 ++------------ Cargo.lock | 1 - crates/ruff_python_ast/Cargo.toml | 1 - 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e31f5a418e..d1c74da1bc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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" diff --git a/Cargo.lock b/Cargo.lock index 253340ecea..eea8adc90d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1927,7 +1927,6 @@ dependencies = [ "num-bigint", "num-traits", "once_cell", - "regex", "ruff_text_size", "rustc-hash", "rustpython-literal", diff --git a/crates/ruff_python_ast/Cargo.toml b/crates/ruff_python_ast/Cargo.toml index c61b487ae2..793fb1af03 100644 --- a/crates/ruff_python_ast/Cargo.toml +++ b/crates/ruff_python_ast/Cargo.toml @@ -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 }