├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── checks.yaml │ └── publish-to-pypi.yaml ├── .gitignore ├── ARCHITECTURE.md ├── LICENSE ├── Makefile ├── README.md ├── ROADMAP.md ├── requirements.txt ├── ruff.toml ├── setup.py ├── src └── refac │ ├── __init__.py │ ├── __main__.py │ ├── move_file.py │ ├── move_import.py │ ├── move_symbol.py │ ├── py.typed │ ├── replace_str.py │ ├── utils.py │ └── visitors │ ├── __init__.py │ ├── add_symbols.py │ ├── import_utils.py │ ├── inplace_replace_import.py │ ├── remove_symbols.py │ └── replace_import.py └── tests ├── __init__.py └── visitors ├── __init__.py ├── add_symbols_test.py ├── import_utils_test.py ├── remove_symbols_test.py └── replace_import_test.py /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/checks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/.github/workflows/checks.yaml -------------------------------------------------------------------------------- /.github/workflows/publish-to-pypi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/.github/workflows/publish-to-pypi.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/.gitignore -------------------------------------------------------------------------------- /ARCHITECTURE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/ARCHITECTURE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/README.md -------------------------------------------------------------------------------- /ROADMAP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/ROADMAP.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | libcst>=0.4.0 2 | ruff==0.0.253 3 | -e . 4 | -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- 1 | # Never enforce `E501` (line length violations). 2 | ignore = ["E501"] 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/setup.py -------------------------------------------------------------------------------- /src/refac/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/__init__.py -------------------------------------------------------------------------------- /src/refac/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/__main__.py -------------------------------------------------------------------------------- /src/refac/move_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/move_file.py -------------------------------------------------------------------------------- /src/refac/move_import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/move_import.py -------------------------------------------------------------------------------- /src/refac/move_symbol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/move_symbol.py -------------------------------------------------------------------------------- /src/refac/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/refac/replace_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/replace_str.py -------------------------------------------------------------------------------- /src/refac/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/utils.py -------------------------------------------------------------------------------- /src/refac/visitors/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/__init__.py -------------------------------------------------------------------------------- /src/refac/visitors/add_symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/add_symbols.py -------------------------------------------------------------------------------- /src/refac/visitors/import_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/import_utils.py -------------------------------------------------------------------------------- /src/refac/visitors/inplace_replace_import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/inplace_replace_import.py -------------------------------------------------------------------------------- /src/refac/visitors/remove_symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/remove_symbols.py -------------------------------------------------------------------------------- /src/refac/visitors/replace_import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/src/refac/visitors/replace_import.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/visitors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/visitors/add_symbols_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/tests/visitors/add_symbols_test.py -------------------------------------------------------------------------------- /tests/visitors/import_utils_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/tests/visitors/import_utils_test.py -------------------------------------------------------------------------------- /tests/visitors/remove_symbols_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/tests/visitors/remove_symbols_test.py -------------------------------------------------------------------------------- /tests/visitors/replace_import_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benchling/refac/HEAD/tests/visitors/replace_import_test.py --------------------------------------------------------------------------------