mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:41:23 +00:00
Include rust-toolchain in source distribution (#8414)
**Summary** Simplify CI by ensuring that the source distribution is always built with the rust version that has been explicitly tested. See discussion in #8389 Closes #8389 --------- Co-authored-by: Zanie <contact@zanie.dev> Co-authored-by: Stijn de Gooijer <stijndegooijer@gmail.com>
This commit is contained in:
parent
3fc920cd12
commit
d5abe55b03
2 changed files with 3 additions and 1 deletions
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
|
@ -48,7 +48,6 @@ jobs:
|
||||||
args: --out dist
|
args: --out dist
|
||||||
- name: "Test sdist"
|
- name: "Test sdist"
|
||||||
run: |
|
run: |
|
||||||
rustup default $(cat rust-toolchain)
|
|
||||||
pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
|
pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
|
||||||
ruff --help
|
ruff --help
|
||||||
python -m ruff --help
|
python -m ruff --help
|
||||||
|
|
|
@ -52,6 +52,9 @@ exclude = [
|
||||||
"crates/ruff_linter/resources/test/fixtures/**/*",
|
"crates/ruff_linter/resources/test/fixtures/**/*",
|
||||||
"crates/ruff_linter/src/rules/*/snapshots/**/*"
|
"crates/ruff_linter/src/rules/*/snapshots/**/*"
|
||||||
]
|
]
|
||||||
|
include = [
|
||||||
|
"rust-toolchain.toml"
|
||||||
|
]
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend-exclude = [
|
extend-exclude = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue