├── .github └── workflows │ ├── ci.yaml │ └── release.yaml ├── .gitignore ├── .pre-commit-hooks.yaml ├── LICENSE ├── MANIFEST.in ├── README.rst ├── pyproject.toml ├── scripts └── freeze_version.py ├── src └── ssort │ ├── __init__.py │ ├── __main__.py │ ├── _ast.py │ ├── _bindings.py │ ├── _builtins.py │ ├── _dependencies.py │ ├── _exceptions.py │ ├── _files.py │ ├── _graphs.py │ ├── _main.py │ ├── _method_requirements.py │ ├── _overloads.py │ ├── _parsing.py │ ├── _requirements.py │ ├── _ssort.py │ ├── _statements.py │ └── _utils.py ├── test_data └── samples │ ├── alembic_template_input.py │ ├── alembic_template_output.py │ ├── alexapy_client_reqrep_input.py │ ├── alexapy_client_reqrep_output.py │ ├── blib2to3_pgen2_parse_input.py │ ├── blib2to3_pgen2_parse_output.py │ ├── cheetah_TestSyntaxAndOutput_input.py │ ├── cheetah_TestSyntaxAndOutput_output.py │ ├── distlib_compat_input.py │ ├── distlib_compat_output.py │ ├── distlib_locators_input.py │ ├── distlib_locators_output.py │ ├── dnspython_versioned_input.py │ ├── dnspython_versioned_output.py │ ├── isort_finders_input.py │ ├── isort_finders_output.py │ ├── jinja_runtime_input.py │ ├── jinja_runtime_output.py │ ├── pillow_BdfFontFile_input.py │ ├── pillow_BdfFontFile_ouput.py │ ├── pillow_BdfFontFile_output.py │ ├── pillow_Image_input.py │ ├── pillow_Image_output.py │ ├── setuptools_bdist_input.py │ ├── setuptools_bdist_output.py │ ├── setuptools_init_input.py │ ├── setuptools_init_output.py │ ├── setuptools_msvccompiler_input.py │ ├── setuptools_msvccompiler_output.py │ ├── sqlalchemy_base_input.py │ └── sqlalchemy_base_output.py ├── tests ├── _builtins │ ├── __init__.py │ ├── __main__.py │ └── module.py ├── test_ast.py ├── test_bindings.py ├── test_builtins.py ├── test_dependencies.py ├── test_error_hooks.py ├── test_executable.py ├── test_files.py ├── test_graphs.py ├── test_method_requirements.py ├── test_requirements.py ├── test_samples.py ├── test_split.py ├── test_ssort.py ├── test_statements.py └── test_tests.py └── tox.ini /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.egg-info/ 3 | .tox 4 | src/ssort/_version.py 5 | -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/.pre-commit-hooks.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/README.rst -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/freeze_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/scripts/freeze_version.py -------------------------------------------------------------------------------- /src/ssort/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/__init__.py -------------------------------------------------------------------------------- /src/ssort/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/__main__.py -------------------------------------------------------------------------------- /src/ssort/_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_ast.py -------------------------------------------------------------------------------- /src/ssort/_bindings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_bindings.py -------------------------------------------------------------------------------- /src/ssort/_builtins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_builtins.py -------------------------------------------------------------------------------- /src/ssort/_dependencies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_dependencies.py -------------------------------------------------------------------------------- /src/ssort/_exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_exceptions.py -------------------------------------------------------------------------------- /src/ssort/_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_files.py -------------------------------------------------------------------------------- /src/ssort/_graphs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_graphs.py -------------------------------------------------------------------------------- /src/ssort/_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_main.py -------------------------------------------------------------------------------- /src/ssort/_method_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_method_requirements.py -------------------------------------------------------------------------------- /src/ssort/_overloads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_overloads.py -------------------------------------------------------------------------------- /src/ssort/_parsing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_parsing.py -------------------------------------------------------------------------------- /src/ssort/_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_requirements.py -------------------------------------------------------------------------------- /src/ssort/_ssort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_ssort.py -------------------------------------------------------------------------------- /src/ssort/_statements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_statements.py -------------------------------------------------------------------------------- /src/ssort/_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/src/ssort/_utils.py -------------------------------------------------------------------------------- /test_data/samples/alembic_template_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/alembic_template_input.py -------------------------------------------------------------------------------- /test_data/samples/alembic_template_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/alembic_template_output.py -------------------------------------------------------------------------------- /test_data/samples/alexapy_client_reqrep_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/alexapy_client_reqrep_input.py -------------------------------------------------------------------------------- /test_data/samples/alexapy_client_reqrep_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/alexapy_client_reqrep_output.py -------------------------------------------------------------------------------- /test_data/samples/blib2to3_pgen2_parse_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/blib2to3_pgen2_parse_input.py -------------------------------------------------------------------------------- /test_data/samples/blib2to3_pgen2_parse_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/blib2to3_pgen2_parse_output.py -------------------------------------------------------------------------------- /test_data/samples/cheetah_TestSyntaxAndOutput_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/cheetah_TestSyntaxAndOutput_input.py -------------------------------------------------------------------------------- /test_data/samples/cheetah_TestSyntaxAndOutput_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/cheetah_TestSyntaxAndOutput_output.py -------------------------------------------------------------------------------- /test_data/samples/distlib_compat_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/distlib_compat_input.py -------------------------------------------------------------------------------- /test_data/samples/distlib_compat_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/distlib_compat_output.py -------------------------------------------------------------------------------- /test_data/samples/distlib_locators_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/distlib_locators_input.py -------------------------------------------------------------------------------- /test_data/samples/distlib_locators_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/distlib_locators_output.py -------------------------------------------------------------------------------- /test_data/samples/dnspython_versioned_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/dnspython_versioned_input.py -------------------------------------------------------------------------------- /test_data/samples/dnspython_versioned_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/dnspython_versioned_output.py -------------------------------------------------------------------------------- /test_data/samples/isort_finders_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/isort_finders_input.py -------------------------------------------------------------------------------- /test_data/samples/isort_finders_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/isort_finders_output.py -------------------------------------------------------------------------------- /test_data/samples/jinja_runtime_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/jinja_runtime_input.py -------------------------------------------------------------------------------- /test_data/samples/jinja_runtime_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/jinja_runtime_output.py -------------------------------------------------------------------------------- /test_data/samples/pillow_BdfFontFile_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/pillow_BdfFontFile_input.py -------------------------------------------------------------------------------- /test_data/samples/pillow_BdfFontFile_ouput.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/pillow_BdfFontFile_ouput.py -------------------------------------------------------------------------------- /test_data/samples/pillow_BdfFontFile_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/pillow_BdfFontFile_output.py -------------------------------------------------------------------------------- /test_data/samples/pillow_Image_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/pillow_Image_input.py -------------------------------------------------------------------------------- /test_data/samples/pillow_Image_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/pillow_Image_output.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_bdist_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_bdist_input.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_bdist_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_bdist_output.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_init_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_init_input.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_init_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_init_output.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_msvccompiler_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_msvccompiler_input.py -------------------------------------------------------------------------------- /test_data/samples/setuptools_msvccompiler_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/setuptools_msvccompiler_output.py -------------------------------------------------------------------------------- /test_data/samples/sqlalchemy_base_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/sqlalchemy_base_input.py -------------------------------------------------------------------------------- /test_data/samples/sqlalchemy_base_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/test_data/samples/sqlalchemy_base_output.py -------------------------------------------------------------------------------- /tests/_builtins/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/_builtins/__main__.py: -------------------------------------------------------------------------------- 1 | print(dir()) 2 | -------------------------------------------------------------------------------- /tests/_builtins/module.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_ast.py -------------------------------------------------------------------------------- /tests/test_bindings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_bindings.py -------------------------------------------------------------------------------- /tests/test_builtins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_builtins.py -------------------------------------------------------------------------------- /tests/test_dependencies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_dependencies.py -------------------------------------------------------------------------------- /tests/test_error_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_error_hooks.py -------------------------------------------------------------------------------- /tests/test_executable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_executable.py -------------------------------------------------------------------------------- /tests/test_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_files.py -------------------------------------------------------------------------------- /tests/test_graphs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_graphs.py -------------------------------------------------------------------------------- /tests/test_method_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_method_requirements.py -------------------------------------------------------------------------------- /tests/test_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_requirements.py -------------------------------------------------------------------------------- /tests/test_samples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_samples.py -------------------------------------------------------------------------------- /tests/test_split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_split.py -------------------------------------------------------------------------------- /tests/test_ssort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_ssort.py -------------------------------------------------------------------------------- /tests/test_statements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_statements.py -------------------------------------------------------------------------------- /tests/test_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tests/test_tests.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bwhmather/ssort/HEAD/tox.ini --------------------------------------------------------------------------------