Команда autoflake: опции, ключи и примеры использования
autoflake
A tool to remove unused imports and variables from Python code. More information: https://github.com/myint/autoflake.
- Remove unused variables from a single file and display the diff:
autoflake --remove-unused-variables {{file.py}}
- Remove unused imports from multiple files and display the diffs:
autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}
- Remove unused variables from a file, overwriting the file:
autoflake --remove-unused-variables --in-place {{file.py}}
- Remove unused variables recursively from all files in a directory, overwriting each file:
autoflake --remove-unused-variables --in-place --recursive {{path/to/directory}}
- 25 января вышло новое крупное обновление Age of Empires II DE: Lords of the West
- И снова sudo, и снова "решето"
- Только одна из десяти компаний ожидает, что все работники вернутся в офисы
- Google Play временно забанил видео-плеер за поддержку неправильных субтитров
- Google прекращает поддержку сторонних приложений в API Chrome-like