mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Fix lint issues
This commit is contained in:
parent
4a6e5d1549
commit
16b10c42f0
2 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
import { AVAILABLE_OPTIONS } from "./ruff_options";
|
|
||||||
|
|
||||||
export const DEFAULT_PYTHON_SOURCE =
|
export const DEFAULT_PYTHON_SOURCE =
|
||||||
"import os\n" +
|
"import os\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
|
|
|
@ -34,7 +34,7 @@ pub fn name_is_banned(
|
||||||
name: &Alias,
|
name: &Alias,
|
||||||
banned_apis: &FxHashMap<String, BannedApi>,
|
banned_apis: &FxHashMap<String, BannedApi>,
|
||||||
) -> Option<Check> {
|
) -> 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) {
|
if let Some(ban) = banned_apis.get(&full_name) {
|
||||||
return Some(Check::new(
|
return Some(Check::new(
|
||||||
CheckKind::BannedApi {
|
CheckKind::BannedApi {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue