diff --git a/flake.nix b/flake.nix index d77c872..5d7d4ba 100644 --- a/flake.nix +++ b/flake.nix @@ -84,6 +84,7 @@ ps.black # Code formatter ps.isort # Import sorter ps.mypy # Static type checker + ps.autoflake # Remove unused imports automatically ])) ]; }; diff --git a/pyproject.toml b/pyproject.toml index f8ab000..4934e1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,6 @@ [tool.mypy] -strict = true \ No newline at end of file +strict = true + +[tool.autoflake] +remove_all_unused_imports = true +in_place = true \ No newline at end of file