mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
[flake8-executable
] Add pytest and uv run to help message for shebang-missing-python
(EXE003
) (#16855)
Followup to #16849 per https://github.com/astral-sh/ruff/pull/16849#issuecomment-2737316564
This commit is contained in:
parent
4ed93b4311
commit
433a342656
2 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,7 @@ pub(crate) struct ShebangMissingPython;
|
|||
impl Violation for ShebangMissingPython {
|
||||
#[derive_message_formats]
|
||||
fn message(&self) -> String {
|
||||
"Shebang should contain `python`".to_string()
|
||||
"Shebang should contain `python`, `pytest`, or `uv run`".to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
---
|
||||
source: crates/ruff_linter/src/rules/flake8_executable/mod.rs
|
||||
---
|
||||
EXE003.py:1:1: EXE003 Shebang should contain `python`
|
||||
EXE003.py:1:1: EXE003 Shebang should contain `python`, `pytest`, or `uv run`
|
||||
|
|
||||
1 | #!/usr/bin/bash
|
||||
| ^^^^^^^^^^^^^^^ EXE003
|
||||
2 | print("hello world")
|
||||
|
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue