pyupgrade-directories
https://pypi.org/project/pyupgrade-directories/
Run
#pyupgrade
on all files in a directory, and optionally recursively.
pyup_dir
コマンド
https://github.com/domdfcoding/pyupgrade-directories/blob/v0.3.0/pyupgrade_directories/__main__.py#L50
.pyファイルを得る関数だけ追加している
https://github.com/domdfcoding/pyupgrade-directories/blob/v0.3.0/pyupgrade_directories/__init__.py#L25-L69
テスト
https://github.com/domdfcoding/pyupgrade-directories/blob/v0.3.0/tests/test_pyup_dirs.py