mirror of https://github.com/astral-sh/ruff
Fix lint issues
This commit is contained in:
parent
4a6e5d1549
commit
16b10c42f0
|
|
@ -1,5 +1,3 @@
|
|||
import { AVAILABLE_OPTIONS } from "./ruff_options";
|
||||
|
||||
export const DEFAULT_PYTHON_SOURCE =
|
||||
"import os\n" +
|
||||
"\n" +
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ pub fn name_is_banned(
|
|||
name: &Alias,
|
||||
banned_apis: &FxHashMap<String, BannedApi>,
|
||||
) -> Option<Check> {
|
||||
let full_name = format!("{}.{}", module, &name.node.name);
|
||||
let full_name = format!("{module}.{}", &name.node.name);
|
||||
if let Some(ban) = banned_apis.get(&full_name) {
|
||||
return Some(Check::new(
|
||||
CheckKind::BannedApi {
|
||||
|
|
|
|||
Loading…
Reference in New Issue