From 6702087961343481753d5714b839fb4aff969f23 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Mon, 29 Jul 2024 01:58:48 -0400 Subject: [PATCH] Add --ignore-init-module-imports to autoflake args (#283) Libraries often import things in __init__.py so they can be reexported to users rather than used directly by __init__.py. These should be ignored by autoflake. --- wpiformat/wpiformat/pyformat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wpiformat/wpiformat/pyformat.py b/wpiformat/wpiformat/pyformat.py index 568f215..2d71064 100644 --- a/wpiformat/wpiformat/pyformat.py +++ b/wpiformat/wpiformat/pyformat.py @@ -20,6 +20,7 @@ def run_batch(config_file, names): "autoflake", "--remove-all-unused-imports", "--remove-unused-variables", + "--ignore-init-module-imports", "--quiet", "-i", ]