autoflake

A tool to remove unused imports and variables from Python…

autoflake

A tool to remove unused imports and variables from Python code. More information: https://github.com/myint/autoflake.

autoflake --remove-unused-variables {{file.py}}

autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}

autoflake --remove-unused-variables --in-place {{file.py}}

autoflake --remove-unused-variables --in-place --recursive {{path/to/directory}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← autoconf autojump →