unref 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- unref-0.3.2/.github/ISSUE_TEMPLATE/bug_report.yml +61 -0
- unref-0.3.2/.github/ISSUE_TEMPLATE/config.yml +1 -0
- unref-0.3.2/.github/ISSUE_TEMPLATE/feature_request.yml +38 -0
- unref-0.3.2/.github/ISSUE_TEMPLATE/other.yml +18 -0
- {unref-0.3.0 → unref-0.3.2}/.github/workflows/ci.yml +57 -12
- unref-0.3.2/.github/workflows/publish-comparison.yml +60 -0
- {unref-0.3.0 → unref-0.3.2}/.github/workflows/release.yml +23 -6
- unref-0.3.2/.github/workflows/update-version.yml +46 -0
- {unref-0.3.0 → unref-0.3.2}/.github/workflows/util/setup_python/action.yml +1 -6
- unref-0.3.2/.github/zizmor.yml +5 -0
- {unref-0.3.0 → unref-0.3.2}/CONTRIBUTING.md +7 -1
- {unref-0.3.0 → unref-0.3.2}/Cargo.lock +31 -21
- {unref-0.3.0 → unref-0.3.2}/Cargo.toml +4 -3
- {unref-0.3.0 → unref-0.3.2}/PKG-INFO +3 -3
- {unref-0.3.0 → unref-0.3.2}/README.md +2 -2
- unref-0.3.2/assets/benchmark.svg +1 -0
- {unref-0.3.0 → unref-0.3.2}/docs/configuration.md +44 -117
- {unref-0.3.0 → unref-0.3.2}/docs/faq.md +1 -1
- unref-0.3.2/docs/frameworks.md +121 -0
- {unref-0.3.0 → unref-0.3.2}/docs/index.md +1 -1
- {unref-0.3.0 → unref-0.3.2}/docs/rules.md +5 -2
- {unref-0.3.0 → unref-0.3.2}/docs/usage.md +4 -3
- {unref-0.3.0 → unref-0.3.2}/linters/cspell/words.txt +9 -0
- {unref-0.3.0 → unref-0.3.2}/linters/ty.toml +1 -1
- {unref-0.3.0 → unref-0.3.2}/prek.toml +10 -3
- {unref-0.3.0 → unref-0.3.2}/pyproject.toml +12 -6
- unref-0.3.2/rust-toolchain.toml +3 -0
- {unref-0.3.0 → unref-0.3.2}/scripts/benchmark.py +5 -13
- {unref-0.3.0 → unref-0.3.2}/scripts/ecosystem.py +9 -1
- unref-0.3.2/scripts/set_version.py +63 -0
- {unref-0.3.0 → unref-0.3.2}/src/classes.rs +64 -5
- {unref-0.3.0 → unref-0.3.2}/src/config.rs +12 -0
- {unref-0.3.0 → unref-0.3.2}/src/definitions.rs +44 -13
- {unref-0.3.0 → unref-0.3.2}/src/discover.rs +169 -16
- {unref-0.3.0 → unref-0.3.2}/src/engine.rs +383 -131
- {unref-0.3.0 → unref-0.3.2}/src/external.rs +6 -9
- {unref-0.3.0 → unref-0.3.2}/src/files.rs +27 -1
- {unref-0.3.0 → unref-0.3.2}/src/frameworks.rs +32 -19
- {unref-0.3.0 → unref-0.3.2}/src/main.rs +140 -15
- {unref-0.3.0 → unref-0.3.2}/src/modules.rs +1 -2
- {unref-0.3.0 → unref-0.3.2}/src/references.rs +345 -85
- {unref-0.3.0 → unref-0.3.2}/src/symbols.rs +25 -7
- {unref-0.3.0 → unref-0.3.2}/src/transitive.rs +1 -1
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/test_config.py +3 -4
- unref-0.3.2/tests/_cli/test_file_selection.py +213 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/test_general.py +18 -0
- unref-0.3.2/tests/cases/all_exports/all_exports_nested.py +28 -0
- unref-0.3.2/tests/cases/frameworks_flask/local_subclass.py +18 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/models.py +9 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/tests/test_module.py +29 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_unittest/checks.py +18 -0
- unref-0.3.2/tests/cases/frameworks_unittest/testsuite.py +24 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/formatting.py +6 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/helpers.py +10 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/helpers_module.py +6 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/json.py +2 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/library.py +5 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/run.py +11 -0
- unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/unreached.py +2 -0
- unref-0.3.2/tests/cases/member_receivers/member_abstract.py +74 -0
- unref-0.3.2/tests/cases/member_receivers/member_class_body.py +28 -0
- unref-0.3.2/tests/cases/package/pkg/sub/module.py +2 -0
- unref-0.3.2/tests/cases/same_name_classes/local_and_local.py +37 -0
- unref-0.3.2/tests/cases/same_name_classes/local_base.py +43 -0
- unref-0.3.2/tests/cases/same_name_classes/local_global.py +29 -0
- unref-0.3.2/tests/cases/same_name_classes/local_hides_import.py +24 -0
- unref-0.3.2/tests/cases/same_name_classes/local_override.py +21 -0
- unref-0.3.2/tests/cases/same_name_classes/local_own_member.py +21 -0
- unref-0.3.2/tests/cases/same_name_classes/pyproject.toml +3 -0
- unref-0.3.2/tests/cases/same_name_classes/same_scope.py +18 -0
- unref-0.3.2/tests/cases/same_name_classes/top_level_and_local.py +16 -0
- unref-0.3.2/tests/cases/standard_library/.venv/lib/python3.14/os.py +0 -0
- unref-0.3.2/tests/cases/string_lookups/attributes.py +54 -0
- unref-0.3.2/tests/cases/string_lookups/helpers.py +22 -0
- unref-0.3.2/tests/cases/string_lookups/namespace.py +55 -0
- unref-0.3.2/tests/cases/typed_dict/helpers.py +10 -0
- unref-0.3.2/tests/cases/typed_dict/whole.py +113 -0
- {unref-0.3.0 → unref-0.3.2}/uv.lock +92 -110
- {unref-0.3.0 → unref-0.3.2}/zensical.toml +1 -0
- unref-0.3.0/assets/benchmark.svg +0 -1
- unref-0.3.0/tests/cases/frameworks_unittest/testsuite.py +0 -15
- {unref-0.3.0 → unref-0.3.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {unref-0.3.0 → unref-0.3.2}/.github/actionlint.yaml +0 -0
- {unref-0.3.0 → unref-0.3.2}/.gitignore +0 -0
- {unref-0.3.0 → unref-0.3.2}/.pre-commit-hooks.yaml +0 -0
- {unref-0.3.0 → unref-0.3.2}/.readthedocs.yaml +0 -0
- {unref-0.3.0 → unref-0.3.2}/LICENSE +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/cspell.json +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/mypy.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/ruff.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/taplo.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/unref.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/linters/yamllint.yaml +0 -0
- {unref-0.3.0 → unref-0.3.2}/scripts/release.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/src/ignores.rs +0 -0
- {unref-0.3.0 → unref-0.3.2}/src/models.rs +0 -0
- {unref-0.3.0 → unref-0.3.2}/src/positions.rs +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/_files.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/test_environment.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_cli/test_output.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/_unref.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/all_exports/all_exports.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/all_exports/all_exports_forms.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/all_exports/all_exports_forms_annotated.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/all_exports/all_exports_not_strings.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/all_exports/string_not_in_all.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/ast_node_visitor/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/local.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/pkg/mod.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/pkg/other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/pkg/sibling.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/attribute_of_module/pkg/third.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/ascii.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/cp1252.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/euc_jp.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/latin1.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/columns/utf8.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/compiled_submodule_star/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/compiled_submodule_star/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/config_in_parent/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/config_in_parent/scripts/tool.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/config_in_parent/src/app/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/config_in_parent/src/app/cli.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/config_in_parent/src/app/skip.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/decorated_function/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/default_excluded/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/default_excluded/node_modules/use.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/assignment_to_other_object.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/attribute_read.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/class_.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/class_attribute.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/method_called.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/method_without_self.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/name_read.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/nested_function.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/property_setter.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/recursive_function.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/definitions/type_alias.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dummy_variable_rgx/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dummy_variable_rgx/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dunders/dunder_function.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dunders/dunder_method.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dunders/dunder_variable.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/dunders/not_dunder.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/empty_file/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/entry_points/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/entry_points/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/entry_points/pkg/gui.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/entry_points/pkg/plugins.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/entry_points/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/enum_members/enums.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/enum_members/fruits/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/enum_members/fruits/enums.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/enum_members/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/generated/deep/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/generated/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/pkg/generated/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude/single.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/node_modules/use.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/pkg/fixtures/use.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/scripts/keep.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/exclude_patterns/scripts/one.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class/reexport.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_getattr/lazy.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_getattr/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_getattr/not_lazy.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/lazy.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/reexport.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/vendored/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_base_class_nested/vendored/outer.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/bin/python +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/dotted.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/stable.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/tagged.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/.venv/pyvenv.cfg +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_compiled_star/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/bin/python +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/editable.pth +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/project_only/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/project_only/types.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/unreadable.pth/README.txt +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/pythonpath/project_only/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/pythonpath/project_only/types.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/pyvenv.cfg +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/.venv/src/editable_module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_environment/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/optional.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/.venv/pyvenv.cfg +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/external_missing_star/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_celery/myapp/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_celery/myapp/tasks.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_celery/proj/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_celery/proj/celery.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_celery/proj/settings.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_dataclasses/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/manage.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/asgi.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/settings.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/urls.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/mysite/wsgi.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/other/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/other/settings.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/other/urls.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/apps.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migration_base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migrations/0001_initial.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migrations/0002_imported.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migrations/0003_defined.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migrations/0004_custom_base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/migrations/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/urls.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django/polls/views.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/config/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/config/settings/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/config/settings/local.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/config/settings/production.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/config/urls.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_django_settings/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_fastapi/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_fastapi/routers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_fastapi/test_local.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_flask/app.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_flask/cli.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_flask/handlers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_flask/views.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_flask/wsgi.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/bin/python +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/deprecated/class_validators.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/fields.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/functional_serializers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/functional_validators.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/v1/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/v1/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic_settings/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic_settings/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pydantic/.venv/pyvenv.cfg +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/bases.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/tests/conftest.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/tests/module_test.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/tests/test_asyncio.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_pytest/tests/test_inheritance.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_selected/docs/conf.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_selected/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_selected/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_selected/test_module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx/docs/conf.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx/other/conf.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx/settings.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx_configuration/docs/source/conf.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx_configuration/other/conf.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sphinx_configuration/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sqlalchemy/chained.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sqlalchemy/legacy.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sqlalchemy/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_sqlalchemy/other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_unittest/base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/frameworks_unittest/mixins.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/function/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/.gitignore +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/generated/use.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/nested/.gitignore +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/nested/scratch_nested.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/scratch_kept.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/gitignore/scratch_one.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/hidden_directory/.github/scripts/run.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/hidden_directory/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/hidden_directory/pkg/util.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/ignore_comment/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/ignore_comment/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/ignore_comment/without_comment.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/ignore_comment_invalid/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/function_only_imported.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/function_only_imported_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_module_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_module_other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_package.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_package_pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_from_package_pkg/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_lazy.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_lazy_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_lazy_other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_relative_pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_relative_pkg/helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_relative_pkg/sub/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_relative_pkg/sub/module.py +0 -0
- {unref-0.3.0/tests/cases/namespace_package/pkg → unref-0.3.2/tests/cases/imports/import_sibling_pkg}/__init__.py +0 -0
- /unref-0.3.0/tests/cases/package/pkg/sub/module.py → /unref-0.3.2/tests/cases/imports/import_sibling_pkg/scripts/import_from_module_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star_scope.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star_scope_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star_with_all.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_star_with_all_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_unresolved.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/import_unresolved_other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/reexport_same_name.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/reexport_same_name_pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/reexport_same_name_pkg/colors.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/reexport_same_name_pkg/tool.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/same_name_in_other_module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/imports/same_name_in_other_module_other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/class_body_read.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_class_body.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_closure.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_comprehension.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_comprehension_unpacking.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_default.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_function.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_function_closure.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_function_global.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_function_nonlocal.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_global.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_import.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_lambda.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_match.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_parameter.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_targets.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_variable.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/local_scopes/local_variable_read.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/match_class_pattern/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/match_class_pattern/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_class.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_external_base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_metaclass.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_mixin.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_name_imported.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_name_imported_jobs.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_name_read.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_private_helper.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_protocol.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_self.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_super.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_template_method.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_unknown_base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/member_unknown_receiver.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/same_name_elsewhere.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/shapes/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/member_receivers/shapes/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/method/main.py +0 -0
- {unref-0.3.0/tests/cases/override_base_class_external/vendored → unref-0.3.2/tests/cases/namespace_package/pkg}/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/namespace_package/pkg/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/namespace_package/pkg/sub/deeper/mod.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/namespace_package/pkg/sub/mod.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/namespace_package/top/inner/mod.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/namespace_package/top/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/non_python_file/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/non_python_file/notes.txt +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override/conftest.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override/src/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override/tests/test_module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override/tests/unit/test_unit.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/children.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/cycle_first.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/cycle_second.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/pkg/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/pkg/base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/star_cycle.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/stars/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/stars/first.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class/stars/second.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_and_path/models/model.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_and_path/other.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_and_path/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_external/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_external/pyproject.toml +0 -0
- {unref-0.3.0/tests/cases/package/pkg → unref-0.3.2/tests/cases/override_base_class_external/vendored}/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_external/vendored/base.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_external/vendored/broken.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_base_class_external/vendored/namespace/module.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_class_decorator/decorators.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_class_decorator/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_class_decorator/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_class_decorator_and_base_class/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/override_class_decorator_and_base_class/pyproject.toml +0 -0
- {unref-0.3.0/tests/cases/package/pkg/sub → unref-0.3.2/tests/cases/package/pkg}/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/package/pkg/module.py +0 -0
- /unref-0.3.0/tests/cases/standard_library/.venv/lib/python3.13/os.py → /unref-0.3.2/tests/cases/package/pkg/sub/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_annotation.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_annotation_nested.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_annotation_self.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_cast.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_plain_string.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_type_alias.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/quoted_annotations/quoted_type_var.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/reexport_cycle/first/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/reexport_cycle/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/reexport_cycle/second/__init__.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/reexport_cycle/second/values.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/standard_library/.venv/lib/python3.13/handlers.py +0 -0
- {unref-0.3.0/tests/cases/standard_library/.venv/lib/python3.14 → unref-0.3.2/tests/cases/standard_library/.venv/lib/python3.13}/os.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/standard_library/.venv/lib/python3.14/handlers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/standard_library/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/standard_library/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/syntax_error/bad.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/syntax_error/good.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/syntax_error/undecodable.txt +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/syntax_error/unknown_encoding.txt +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/syntax_warning/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/transitive.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused_star.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused_star_helpers.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused_star_star.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/transitive/used_only_by_unused_star_star_used.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/typed_dict/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/typed_dict/models.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_decorator/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_decorator/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_name/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_name/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_only_by_unused_root/main.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/used_only_by_unused_root/pyproject.toml +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/dummy_variable.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/instance_attribute.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/instance_attribute_declared.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/underscore.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_for_loop.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_in_block.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_only_written.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_reassigned.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_unpacking.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_walrus.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/cases/variables/variable_with.py +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/pytest.ini +0 -0
- {unref-0.3.0 → unref-0.3.2}/tests/test_cases.py +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: A false positive, a missed finding, a crash or other wrong behavior.
|
|
3
|
+
labels: ["bug"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
The smallest project that shows the bug helps the most: a few short files, the configuration
|
|
9
|
+
and the command.
|
|
10
|
+
|
|
11
|
+
- type: textarea
|
|
12
|
+
id: files
|
|
13
|
+
attributes:
|
|
14
|
+
label: Files
|
|
15
|
+
description: The Python files and the configuration file, if any, each with its path.
|
|
16
|
+
placeholder: |
|
|
17
|
+
`main.py`:
|
|
18
|
+
```python
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`pyproject.toml`:
|
|
23
|
+
```toml
|
|
24
|
+
[tool.unref]
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
|
|
30
|
+
- type: input
|
|
31
|
+
id: command
|
|
32
|
+
attributes:
|
|
33
|
+
label: Command
|
|
34
|
+
value: unref .
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
|
|
38
|
+
- type: textarea
|
|
39
|
+
id: output
|
|
40
|
+
attributes:
|
|
41
|
+
label: Command output
|
|
42
|
+
description: What the command printed.
|
|
43
|
+
render: text
|
|
44
|
+
validations:
|
|
45
|
+
required: true
|
|
46
|
+
|
|
47
|
+
- type: textarea
|
|
48
|
+
id: problem
|
|
49
|
+
attributes:
|
|
50
|
+
label: What is wrong
|
|
51
|
+
description: Which findings are wrong or missing, or what else should have happened.
|
|
52
|
+
validations:
|
|
53
|
+
required: true
|
|
54
|
+
|
|
55
|
+
- type: input
|
|
56
|
+
id: version
|
|
57
|
+
attributes:
|
|
58
|
+
label: Version
|
|
59
|
+
description: The output of `unref --version`.
|
|
60
|
+
validations:
|
|
61
|
+
required: true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: A missing framework, option or rule.
|
|
3
|
+
labels: ["enhancement"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description
|
|
9
|
+
description: What is missing, and what `unref` should do. For a framework, link its documentation.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: files
|
|
15
|
+
attributes:
|
|
16
|
+
label: Example
|
|
17
|
+
description: >-
|
|
18
|
+
A few short files that use the feature and the configuration file, if any, each with its path,
|
|
19
|
+
and what `unref` should report.
|
|
20
|
+
placeholder: |
|
|
21
|
+
`main.py`:
|
|
22
|
+
```python
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`pyproject.toml`:
|
|
27
|
+
```toml
|
|
28
|
+
[tool.unref]
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- type: input
|
|
33
|
+
id: version
|
|
34
|
+
attributes:
|
|
35
|
+
label: Version
|
|
36
|
+
description: The output of `unref --version`.
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Other
|
|
2
|
+
description: A question, a documentation fix or anything else.
|
|
3
|
+
labels: ["triage"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description
|
|
9
|
+
validations:
|
|
10
|
+
required: true
|
|
11
|
+
|
|
12
|
+
- type: input
|
|
13
|
+
id: version
|
|
14
|
+
attributes:
|
|
15
|
+
label: Version
|
|
16
|
+
description: The output of `unref --version`.
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
@@ -15,12 +15,18 @@ concurrency:
|
|
|
15
15
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
16
16
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
17
17
|
|
|
18
|
+
# Jobs that need more ask for it themselves.
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
|
|
18
22
|
jobs:
|
|
19
23
|
linters:
|
|
20
24
|
name: Linters
|
|
21
25
|
runs-on: ubuntu-latest
|
|
22
26
|
steps:
|
|
23
27
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
28
|
+
with:
|
|
29
|
+
persist-credentials: false
|
|
24
30
|
|
|
25
31
|
- name: Setup Python
|
|
26
32
|
uses: ./.github/workflows/util/setup_python
|
|
@@ -48,6 +54,8 @@ jobs:
|
|
|
48
54
|
runs-on: ubuntu-latest
|
|
49
55
|
steps:
|
|
50
56
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
57
|
+
with:
|
|
58
|
+
persist-credentials: false
|
|
51
59
|
|
|
52
60
|
- name: Setup Python
|
|
53
61
|
uses: ./.github/workflows/util/setup_python
|
|
@@ -64,6 +72,8 @@ jobs:
|
|
|
64
72
|
runs-on: ubuntu-latest
|
|
65
73
|
steps:
|
|
66
74
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
75
|
+
with:
|
|
76
|
+
persist-credentials: false
|
|
67
77
|
|
|
68
78
|
- uses: ./.github/workflows/util/setup_python
|
|
69
79
|
with:
|
|
@@ -80,6 +90,8 @@ jobs:
|
|
|
80
90
|
runs-on: ubuntu-latest
|
|
81
91
|
steps:
|
|
82
92
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
93
|
+
with:
|
|
94
|
+
persist-credentials: false
|
|
83
95
|
|
|
84
96
|
- uses: ./.github/workflows/util/setup_python
|
|
85
97
|
|
|
@@ -90,18 +102,43 @@ jobs:
|
|
|
90
102
|
- name: Run tests of the command
|
|
91
103
|
run: pytest --showlocals -c tests/pytest.ini
|
|
92
104
|
|
|
105
|
+
# The oldest Rust that Cargo.toml supports, two releases behind the pinned toolchain, as ruff's.
|
|
106
|
+
minimum-rust:
|
|
107
|
+
name: Minimum Rust version
|
|
108
|
+
runs-on: ubuntu-latest
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
111
|
+
with:
|
|
112
|
+
persist-credentials: false
|
|
113
|
+
|
|
114
|
+
- name: Install the minimum Rust version
|
|
115
|
+
id: minimum
|
|
116
|
+
run: |
|
|
117
|
+
version=$(sed -n 's/^rust-version = "\(.*\)"$/\1/p' Cargo.toml)
|
|
118
|
+
rustup toolchain install "$version" --profile minimal
|
|
119
|
+
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
120
|
+
|
|
121
|
+
- name: Rust cache
|
|
122
|
+
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
123
|
+
with:
|
|
124
|
+
key: minimum-rust-${{ steps.minimum.outputs.version }}
|
|
125
|
+
save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
126
|
+
|
|
127
|
+
- name: Build the tests
|
|
128
|
+
env:
|
|
129
|
+
RUST_VERSION: ${{ steps.minimum.outputs.version }}
|
|
130
|
+
run: cargo "+$RUST_VERSION" test --locked --no-run
|
|
131
|
+
|
|
93
132
|
compare:
|
|
94
133
|
name: Compare with main
|
|
95
134
|
runs-on: ubuntu-latest
|
|
96
|
-
permissions:
|
|
97
|
-
contents: read
|
|
98
|
-
pull-requests: write
|
|
99
135
|
steps:
|
|
100
136
|
# A pull request is checked out as its merge into the current main, which is the merge's first parent. The
|
|
101
137
|
# base SHA of the event can be an older main, whose later commits would count as changes of the PR. A manual
|
|
102
138
|
# run compares the branch it runs on with main. A push to main only builds the head, to save its caches.
|
|
103
139
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
104
140
|
with:
|
|
141
|
+
persist-credentials: false
|
|
105
142
|
fetch-depth: 2
|
|
106
143
|
|
|
107
144
|
- name: Checkout the base
|
|
@@ -181,20 +218,28 @@ jobs:
|
|
|
181
218
|
done > report.md
|
|
182
219
|
cat report.md >> "$GITHUB_STEP_SUMMARY"
|
|
183
220
|
|
|
184
|
-
#
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
221
|
+
# This run has a read-only token, also for a pull request from a fork, so Publish Comparison posts the
|
|
222
|
+
# report. The number tells it which pull request the report is for.
|
|
223
|
+
- name: Save the pull request number
|
|
224
|
+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
|
|
225
|
+
env:
|
|
226
|
+
NUMBER: ${{ github.event.number }}
|
|
227
|
+
run: echo "$NUMBER" > number
|
|
228
|
+
|
|
229
|
+
- name: Upload the report
|
|
230
|
+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
|
|
231
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
190
232
|
with:
|
|
191
|
-
|
|
192
|
-
path:
|
|
233
|
+
name: compare-report
|
|
234
|
+
path: |
|
|
235
|
+
report.md
|
|
236
|
+
number
|
|
237
|
+
retention-days: 1
|
|
193
238
|
|
|
194
239
|
check:
|
|
195
240
|
name: Check All
|
|
196
241
|
if: always()
|
|
197
|
-
needs: [linters, docs, type-check, unit-tests, compare]
|
|
242
|
+
needs: [linters, docs, type-check, unit-tests, minimum-rust, compare]
|
|
198
243
|
runs-on: ubuntu-latest
|
|
199
244
|
steps:
|
|
200
245
|
- name: Decide whether the needed jobs succeeded or failed
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Publish Comparison
|
|
2
|
+
|
|
3
|
+
# Posts the report of the comparison with main on its pull request, also on one from a fork, whose CI run has a
|
|
4
|
+
# read-only token. This workflow has write access, so it never checks out or runs code of the pull request, and
|
|
5
|
+
# treats the report and the number of its artifact as untrusted.
|
|
6
|
+
on:
|
|
7
|
+
workflow_run: # zizmor: ignore[dangerous-triggers]
|
|
8
|
+
workflows: [CI]
|
|
9
|
+
types: [completed]
|
|
10
|
+
|
|
11
|
+
permissions: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
comment:
|
|
15
|
+
name: Comment on the pull request
|
|
16
|
+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion != 'cancelled'
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
# Required to download the artifact of the CI run.
|
|
20
|
+
actions: read
|
|
21
|
+
pull-requests: write
|
|
22
|
+
steps:
|
|
23
|
+
- name: Download the report
|
|
24
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
25
|
+
with:
|
|
26
|
+
name: compare-report
|
|
27
|
+
path: ${{ runner.temp }}/compare
|
|
28
|
+
run-id: ${{ github.event.workflow_run.id }}
|
|
29
|
+
github-token: ${{ github.token }}
|
|
30
|
+
|
|
31
|
+
# A run of a fork could name any pull request, so its number must be one whose head is the head of the run.
|
|
32
|
+
# A newer push to the pull request skips the comment, as the run of that push posts its own.
|
|
33
|
+
- name: Check the pull request number
|
|
34
|
+
id: pr
|
|
35
|
+
env:
|
|
36
|
+
GH_TOKEN: ${{ github.token }}
|
|
37
|
+
REPO: ${{ github.repository }}
|
|
38
|
+
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
|
|
39
|
+
NUMBER_FILE: ${{ runner.temp }}/compare/number
|
|
40
|
+
run: |
|
|
41
|
+
number=$(head -c 20 "$NUMBER_FILE" | tr -d '[:space:]')
|
|
42
|
+
if ! [[ "$number" =~ ^[0-9]+$ ]]; then
|
|
43
|
+
echo "Not a pull request number: $number"
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
pr_sha=$(gh api "repos/$REPO/pulls/$number" --jq .head.sha)
|
|
47
|
+
if [ "$pr_sha" != "$HEAD_SHA" ]; then
|
|
48
|
+
echo "The head of pull request #$number is $pr_sha, not $HEAD_SHA"
|
|
49
|
+
exit 0
|
|
50
|
+
fi
|
|
51
|
+
echo "number=$number" >> "$GITHUB_OUTPUT"
|
|
52
|
+
|
|
53
|
+
- name: Comment on the pull request
|
|
54
|
+
if: steps.pr.outputs.number != ''
|
|
55
|
+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
|
|
56
|
+
with:
|
|
57
|
+
header: compare
|
|
58
|
+
number_force: ${{ steps.pr.outputs.number }}
|
|
59
|
+
path: ${{ runner.temp }}/compare/report.md
|
|
60
|
+
ignore_empty: true
|
|
@@ -6,6 +6,10 @@ on:
|
|
|
6
6
|
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
|
|
9
|
+
# Jobs that need more ask for it themselves.
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
9
13
|
# The wheels can be built from any branch by hand, but only a version tag is released.
|
|
10
14
|
jobs:
|
|
11
15
|
wheels:
|
|
@@ -36,11 +40,18 @@ jobs:
|
|
|
36
40
|
run: git config --global core.longpaths true
|
|
37
41
|
|
|
38
42
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
43
|
+
with:
|
|
44
|
+
persist-credentials: false
|
|
45
|
+
|
|
46
|
+
- name: Setup uv
|
|
47
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
48
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
39
49
|
|
|
50
|
+
# The README is the page of the release on PyPI, so its pre-commit example is set too.
|
|
40
51
|
- name: Set the version from the tag
|
|
41
52
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
42
53
|
shell: bash
|
|
43
|
-
run:
|
|
54
|
+
run: uv run --only-group dev scripts/set_version.py "${GITHUB_REF_NAME#v}" --package
|
|
44
55
|
|
|
45
56
|
- name: Build the wheel
|
|
46
57
|
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
|
|
@@ -60,10 +71,16 @@ jobs:
|
|
|
60
71
|
runs-on: ubuntu-latest
|
|
61
72
|
steps:
|
|
62
73
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
74
|
+
with:
|
|
75
|
+
persist-credentials: false
|
|
76
|
+
|
|
77
|
+
- name: Setup uv
|
|
78
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
79
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
63
80
|
|
|
64
81
|
- name: Set the version from the tag
|
|
65
82
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
66
|
-
run:
|
|
83
|
+
run: uv run --only-group dev scripts/set_version.py "${GITHUB_REF_NAME#v}" --package
|
|
67
84
|
|
|
68
85
|
- name: Build the source distribution
|
|
69
86
|
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
|
|
@@ -81,6 +98,7 @@ jobs:
|
|
|
81
98
|
name: Release
|
|
82
99
|
needs: [wheels, sdist]
|
|
83
100
|
runs-on: ubuntu-latest
|
|
101
|
+
environment: pypi
|
|
84
102
|
|
|
85
103
|
permissions:
|
|
86
104
|
# Required for PyPI Trusted Publishing (OIDC), so no API token is stored.
|
|
@@ -101,7 +119,6 @@ jobs:
|
|
|
101
119
|
run: uv publish --trusted-publishing always dist/*
|
|
102
120
|
|
|
103
121
|
- name: Create GitHub Release
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
files: dist/*
|
|
122
|
+
env:
|
|
123
|
+
GH_TOKEN: ${{ github.token }}
|
|
124
|
+
run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --generate-notes dist/*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Update Version
|
|
2
|
+
|
|
3
|
+
# Opens a pull request that points the docs and the benchmark at the latest release on PyPI, once it differs.
|
|
4
|
+
on:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: "0 6 * * *"
|
|
7
|
+
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions: {}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
update:
|
|
14
|
+
name: Update the version
|
|
15
|
+
if: github.repository == 'Apakottur/unref'
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
pull-requests: write
|
|
20
|
+
# Required to start CI on the pull request, as one opened with this token does not.
|
|
21
|
+
actions: write
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
|
+
with:
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
|
|
27
|
+
- name: Setup uv
|
|
28
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
29
|
+
|
|
30
|
+
- name: Set the latest version
|
|
31
|
+
run: uv run --only-group dev scripts/set_version.py
|
|
32
|
+
|
|
33
|
+
- name: Open or update the pull request
|
|
34
|
+
id: pr
|
|
35
|
+
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3
|
|
36
|
+
with:
|
|
37
|
+
branch: update-version
|
|
38
|
+
commit-message: Point the docs and the benchmark at the latest release of unref
|
|
39
|
+
title: Point the docs and the benchmark at the latest release of unref
|
|
40
|
+
body: The docs and the benchmark name an older release than the latest on PyPI.
|
|
41
|
+
|
|
42
|
+
- name: Start CI
|
|
43
|
+
if: steps.pr.outputs.pull-request-operation == 'created' || steps.pr.outputs.pull-request-operation == 'updated'
|
|
44
|
+
env:
|
|
45
|
+
GH_TOKEN: ${{ github.token }}
|
|
46
|
+
run: gh workflow run ci.yml --repo "$GITHUB_REPOSITORY" --ref update-version
|
|
@@ -16,6 +16,7 @@ runs:
|
|
|
16
16
|
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
17
17
|
with:
|
|
18
18
|
python-version: ${{ inputs.python-version }}
|
|
19
|
+
activate-environment: true
|
|
19
20
|
enable-cache: true
|
|
20
21
|
# Only main saves caches, as each pull request would save its own copy.
|
|
21
22
|
save-cache: ${{ github.ref == 'refs/heads/main' }}
|
|
@@ -37,9 +38,3 @@ runs:
|
|
|
37
38
|
else
|
|
38
39
|
uv sync --frozen --no-install-project
|
|
39
40
|
fi
|
|
40
|
-
|
|
41
|
-
# Put the project virtual environment on PATH for subsequent steps, so tools can be
|
|
42
|
-
# invoked directly (e.g. `pytest`).
|
|
43
|
-
- name: Activate Python venv
|
|
44
|
-
shell: bash
|
|
45
|
-
run: echo "$(pwd)/.venv/bin" >> "$GITHUB_PATH"
|
|
@@ -10,6 +10,7 @@ All checks (linters, type checks, and tests) run automatically in CI through Git
|
|
|
10
10
|
`unref` is written in Rust, on [Ruff](https://github.com/astral-sh/ruff)'s parser, and ships in a Python
|
|
11
11
|
wheel built with [maturin](https://www.maturin.rs/), as Ruff does. Local development needs a
|
|
12
12
|
[Rust toolchain](https://rustup.rs/) and [uv](https://docs.astral.sh/uv/getting-started/installation/).
|
|
13
|
+
`rustup` installs the version of Rust that `rust-toolchain.toml` pins on the first build.
|
|
13
14
|
|
|
14
15
|
Install the development dependencies, which builds `unref` and installs it in `.venv`:
|
|
15
16
|
|
|
@@ -17,7 +18,12 @@ Install the development dependencies, which builds `unref` and installs it in `.
|
|
|
17
18
|
uv sync
|
|
18
19
|
```
|
|
19
20
|
|
|
20
|
-
`uv run` rebuilds it when its Rust source changes.
|
|
21
|
+
`uv run` rebuilds it when its Rust source changes. To work on the Python code or the scripts without building
|
|
22
|
+
`unref`, install only the development dependencies with `--only-group dev`:
|
|
23
|
+
|
|
24
|
+
```shell
|
|
25
|
+
uv run --only-group dev mypy --config-file linters/mypy.toml .
|
|
26
|
+
```
|
|
21
27
|
|
|
22
28
|
## Running checks locally
|
|
23
29
|
|
|
@@ -119,9 +119,9 @@ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
|
119
119
|
|
|
120
120
|
[[package]]
|
|
121
121
|
name = "bstr"
|
|
122
|
-
version = "1.
|
|
122
|
+
version = "1.14.0"
|
|
123
123
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
|
-
checksum = "
|
|
124
|
+
checksum = "a680398c10c7bc0488067c4612226ea905a85f607134b69f3068d505d58c4214"
|
|
125
125
|
dependencies = [
|
|
126
126
|
"memchr",
|
|
127
127
|
"serde_core",
|
|
@@ -177,9 +177,9 @@ dependencies = [
|
|
|
177
177
|
|
|
178
178
|
[[package]]
|
|
179
179
|
name = "clap"
|
|
180
|
-
version = "4.6.
|
|
180
|
+
version = "4.6.8"
|
|
181
181
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
-
checksum = "
|
|
182
|
+
checksum = "ac230478587d0269d8d6998b82ae69ea51509d55df66d9e92edd1f986904cd4a"
|
|
183
183
|
dependencies = [
|
|
184
184
|
"clap_builder",
|
|
185
185
|
"clap_derive",
|
|
@@ -199,9 +199,9 @@ dependencies = [
|
|
|
199
199
|
|
|
200
200
|
[[package]]
|
|
201
201
|
name = "clap_derive"
|
|
202
|
-
version = "4.6.
|
|
202
|
+
version = "4.6.8"
|
|
203
203
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
204
|
-
checksum = "
|
|
204
|
+
checksum = "895c9d8d2ac2dd8b8a29f3724a14e72aaaa6debcf8c38c82f97305c6a172767a"
|
|
205
205
|
dependencies = [
|
|
206
206
|
"heck",
|
|
207
207
|
"proc-macro2",
|
|
@@ -211,9 +211,9 @@ dependencies = [
|
|
|
211
211
|
|
|
212
212
|
[[package]]
|
|
213
213
|
name = "clap_lex"
|
|
214
|
-
version = "1.1.
|
|
214
|
+
version = "1.1.2"
|
|
215
215
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
-
checksum = "
|
|
216
|
+
checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79"
|
|
217
217
|
|
|
218
218
|
[[package]]
|
|
219
219
|
name = "collection_literals"
|
|
@@ -657,9 +657,9 @@ dependencies = [
|
|
|
657
657
|
|
|
658
658
|
[[package]]
|
|
659
659
|
name = "regex"
|
|
660
|
-
version = "1.13.
|
|
660
|
+
version = "1.13.2"
|
|
661
661
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
662
|
-
checksum = "
|
|
662
|
+
checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
|
|
663
663
|
dependencies = [
|
|
664
664
|
"aho-corasick",
|
|
665
665
|
"memchr",
|
|
@@ -669,9 +669,9 @@ dependencies = [
|
|
|
669
669
|
|
|
670
670
|
[[package]]
|
|
671
671
|
name = "regex-automata"
|
|
672
|
-
version = "0.4.
|
|
672
|
+
version = "0.4.19"
|
|
673
673
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
674
|
-
checksum = "
|
|
674
|
+
checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
|
|
675
675
|
dependencies = [
|
|
676
676
|
"aho-corasick",
|
|
677
677
|
"memchr",
|
|
@@ -680,9 +680,9 @@ dependencies = [
|
|
|
680
680
|
|
|
681
681
|
[[package]]
|
|
682
682
|
name = "regex-syntax"
|
|
683
|
-
version = "0.8.
|
|
683
|
+
version = "0.8.12"
|
|
684
684
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
685
|
-
checksum = "
|
|
685
|
+
checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
|
|
686
686
|
|
|
687
687
|
[[package]]
|
|
688
688
|
name = "ruff_python_ast"
|
|
@@ -727,6 +727,15 @@ dependencies = [
|
|
|
727
727
|
"unicode-normalization",
|
|
728
728
|
]
|
|
729
729
|
|
|
730
|
+
[[package]]
|
|
731
|
+
name = "ruff_python_stdlib"
|
|
732
|
+
version = "0.0.22"
|
|
733
|
+
source = "git+https://github.com/astral-sh/ruff?tag=0.17.5#c91de8a012cb87efe279b762020a0d28dd75ddb5"
|
|
734
|
+
dependencies = [
|
|
735
|
+
"bitflags",
|
|
736
|
+
"unicode-ident",
|
|
737
|
+
]
|
|
738
|
+
|
|
730
739
|
[[package]]
|
|
731
740
|
name = "ruff_python_trivia"
|
|
732
741
|
version = "0.0.22"
|
|
@@ -858,9 +867,9 @@ checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
|
|
|
858
867
|
|
|
859
868
|
[[package]]
|
|
860
869
|
name = "smallvec"
|
|
861
|
-
version = "1.16.
|
|
870
|
+
version = "1.16.6"
|
|
862
871
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
863
|
-
checksum = "
|
|
872
|
+
checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59"
|
|
864
873
|
|
|
865
874
|
[[package]]
|
|
866
875
|
name = "static_assertions"
|
|
@@ -924,9 +933,9 @@ dependencies = [
|
|
|
924
933
|
|
|
925
934
|
[[package]]
|
|
926
935
|
name = "tikv-jemalloc-sys"
|
|
927
|
-
version = "0.
|
|
936
|
+
version = "0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8"
|
|
928
937
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
929
|
-
checksum = "
|
|
938
|
+
checksum = "1a2825c78386b4ae0314074867860ba9577875de945f05992c38815cbec327f0"
|
|
930
939
|
dependencies = [
|
|
931
940
|
"cc",
|
|
932
941
|
"libc",
|
|
@@ -934,9 +943,9 @@ dependencies = [
|
|
|
934
943
|
|
|
935
944
|
[[package]]
|
|
936
945
|
name = "tikv-jemallocator"
|
|
937
|
-
version = "0.
|
|
946
|
+
version = "0.7.0"
|
|
938
947
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
939
|
-
checksum = "
|
|
948
|
+
checksum = "249f09e49ab1609436f34c776e84231bead18d6a955f119f939bdc1d847561bd"
|
|
940
949
|
dependencies = [
|
|
941
950
|
"libc",
|
|
942
951
|
"tikv-jemalloc-sys",
|
|
@@ -1004,7 +1013,7 @@ dependencies = [
|
|
|
1004
1013
|
|
|
1005
1014
|
[[package]]
|
|
1006
1015
|
name = "unref"
|
|
1007
|
-
version = "0.3.
|
|
1016
|
+
version = "0.3.2"
|
|
1008
1017
|
dependencies = [
|
|
1009
1018
|
"clap",
|
|
1010
1019
|
"encoding_rs",
|
|
@@ -1015,6 +1024,7 @@ dependencies = [
|
|
|
1015
1024
|
"regex",
|
|
1016
1025
|
"ruff_python_ast",
|
|
1017
1026
|
"ruff_python_parser",
|
|
1027
|
+
"ruff_python_stdlib",
|
|
1018
1028
|
"ruff_source_file",
|
|
1019
1029
|
"ruff_text_size",
|
|
1020
1030
|
"rustc-hash",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "unref"
|
|
3
3
|
# The release workflow sets the version from the tag that it releases.
|
|
4
|
-
version = "0.3.
|
|
4
|
+
version = "0.3.2"
|
|
5
5
|
edition = "2024"
|
|
6
|
-
rust-version = "1.
|
|
6
|
+
rust-version = "1.98"
|
|
7
7
|
description = "An extremely fast Python dead code finder, written in Rust."
|
|
8
8
|
license = "MIT"
|
|
9
9
|
repository = "https://github.com/Apakottur/unref"
|
|
@@ -23,6 +23,7 @@ toml = { version = "1.2", features = ["preserve_order"] }
|
|
|
23
23
|
# Ruff's crates are not published on crates.io, so they are pinned to a release of Ruff.
|
|
24
24
|
ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
25
25
|
ruff_python_parser = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
26
|
+
ruff_python_stdlib = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
26
27
|
ruff_source_file = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
27
28
|
ruff_text_size = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
28
29
|
|
|
@@ -32,7 +33,7 @@ ruff_text_size = { git = "https://github.com/astral-sh/ruff", tag = "0.17.5" }
|
|
|
32
33
|
mimalloc = { version = "0.1.52", default-features = false, features = ["v2"] }
|
|
33
34
|
|
|
34
35
|
[target.'cfg(all(target_os = "linux", target_arch = "aarch64", target_env = "gnu"))'.dependencies]
|
|
35
|
-
tikv-jemallocator = { version = "0.
|
|
36
|
+
tikv-jemallocator = { version = "0.7.0", default-features = false, features = [
|
|
36
37
|
"background_threads_runtime_support",
|
|
37
38
|
] }
|
|
38
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unref
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
@@ -44,7 +44,7 @@ An extremely fast Python dead code finder, written in Rust.
|
|
|
44
44
|
- **Fast**: 20x faster than [vulture](https://github.com/jendrikseipp/vulture), it checks all of CPython's Python code in
|
|
45
45
|
under a second.
|
|
46
46
|
- **Just works**: built-in rules for pytest, Django, Flask, Pydantic, SQLAlchemy and
|
|
47
|
-
[more](https://unref.readthedocs.io/en/latest/
|
|
47
|
+
[more](https://unref.readthedocs.io/en/latest/frameworks/), so most projects need little or no
|
|
48
48
|
configuration.
|
|
49
49
|
- **Flexible**: works for applications and libraries alike, see
|
|
50
50
|
[what counts as dead code](https://unref.readthedocs.io/en/latest/faq/#what-counts-as-dead-code).
|
|
@@ -74,7 +74,7 @@ repos:
|
|
|
74
74
|
- id: ruff-check
|
|
75
75
|
- id: ruff-format
|
|
76
76
|
- repo: https://github.com/Apakottur/unref
|
|
77
|
-
rev: v0.2
|
|
77
|
+
rev: v0.3.2
|
|
78
78
|
hooks:
|
|
79
79
|
- id: unref
|
|
80
80
|
```
|