Fix lint issues

This commit is contained in:
Charlie Marsh 2022-12-29 23:12:28 -05:00
parent 4a6e5d1549
commit 16b10c42f0
2 changed files with 1 additions and 3 deletions

View file

@ -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" +

View file

@ -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 {