unref 0.2.2__tar.gz → 0.3.1__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.
Files changed (437) hide show
  1. unref-0.3.1/.github/ISSUE_TEMPLATE/bug_report.yml +61 -0
  2. unref-0.3.1/.github/ISSUE_TEMPLATE/config.yml +1 -0
  3. unref-0.3.1/.github/ISSUE_TEMPLATE/feature_request.yml +38 -0
  4. unref-0.3.1/.github/ISSUE_TEMPLATE/other.yml +18 -0
  5. {unref-0.2.2 → unref-0.3.1}/.github/workflows/ci.yml +89 -24
  6. unref-0.3.1/.github/workflows/publish-comparison.yml +60 -0
  7. {unref-0.2.2 → unref-0.3.1}/.github/workflows/release.yml +15 -5
  8. {unref-0.2.2 → unref-0.3.1}/.github/workflows/util/setup_python/action.yml +5 -6
  9. unref-0.3.1/.github/zizmor.yml +5 -0
  10. {unref-0.2.2 → unref-0.3.1}/.pre-commit-hooks.yaml +1 -1
  11. {unref-0.2.2 → unref-0.3.1}/CONTRIBUTING.md +1 -0
  12. {unref-0.2.2 → unref-0.3.1}/Cargo.lock +89 -17
  13. {unref-0.2.2 → unref-0.3.1}/Cargo.toml +13 -2
  14. {unref-0.2.2 → unref-0.3.1}/PKG-INFO +7 -9
  15. {unref-0.2.2 → unref-0.3.1}/README.md +5 -7
  16. {unref-0.2.2 → unref-0.3.1}/docs/configuration.md +2 -103
  17. unref-0.3.1/docs/faq.md +24 -0
  18. unref-0.3.1/docs/frameworks.md +121 -0
  19. unref-0.3.1/docs/index.md +49 -0
  20. {unref-0.2.2 → unref-0.3.1}/docs/rules.md +1 -1
  21. unref-0.2.2/docs/index.md → unref-0.3.1/docs/usage.md +17 -42
  22. {unref-0.2.2 → unref-0.3.1}/linters/cspell/words.txt +9 -0
  23. {unref-0.2.2 → unref-0.3.1}/linters/ty.toml +1 -1
  24. {unref-0.2.2 → unref-0.3.1}/prek.toml +10 -3
  25. {unref-0.2.2 → unref-0.3.1}/pyproject.toml +7 -7
  26. unref-0.3.1/rust-toolchain.toml +3 -0
  27. {unref-0.2.2 → unref-0.3.1}/scripts/benchmark.py +21 -15
  28. {unref-0.2.2 → unref-0.3.1}/scripts/ecosystem.py +2 -1
  29. {unref-0.2.2 → unref-0.3.1}/src/definitions.rs +26 -6
  30. {unref-0.2.2 → unref-0.3.1}/src/engine.rs +246 -59
  31. {unref-0.2.2 → unref-0.3.1}/src/files.rs +27 -1
  32. {unref-0.2.2 → unref-0.3.1}/src/frameworks.rs +137 -9
  33. {unref-0.2.2 → unref-0.3.1}/src/main.rs +11 -2
  34. {unref-0.2.2 → unref-0.3.1}/src/models.rs +4 -1
  35. {unref-0.2.2 → unref-0.3.1}/src/references.rs +222 -44
  36. {unref-0.2.2 → unref-0.3.1}/tests/_cli/test_config.py +1 -1
  37. unref-0.3.1/tests/cases/frameworks_celery/myapp/tasks.py +72 -0
  38. unref-0.3.1/tests/cases/frameworks_celery/proj/celery.py +15 -0
  39. unref-0.3.1/tests/cases/frameworks_celery/proj/settings.py +9 -0
  40. unref-0.3.1/tests/cases/frameworks_django/polls/migration_base.py +8 -0
  41. unref-0.3.1/tests/cases/frameworks_django/polls/migrations/0001_initial.py +26 -0
  42. unref-0.3.1/tests/cases/frameworks_django/polls/migrations/0002_imported.py +6 -0
  43. unref-0.3.1/tests/cases/frameworks_django/polls/migrations/0003_defined.py +6 -0
  44. unref-0.3.1/tests/cases/frameworks_django/polls/migrations/0004_custom_base.py +6 -0
  45. unref-0.3.1/tests/cases/frameworks_flask/handlers.py +44 -0
  46. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/models.py +9 -0
  47. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/formatting.py +6 -0
  48. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/helpers.py +10 -0
  49. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/helpers_module.py +6 -0
  50. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/json.py +2 -0
  51. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/library.py +5 -0
  52. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/run.py +11 -0
  53. unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/unreached.py +2 -0
  54. unref-0.3.1/tests/cases/package/pkg/__init__.py +0 -0
  55. unref-0.3.1/tests/cases/package/pkg/sub/__init__.py +0 -0
  56. unref-0.3.1/tests/cases/package/pkg/sub/module.py +2 -0
  57. unref-0.3.1/tests/cases/standard_library/.venv/lib/python3.13/os.py +0 -0
  58. unref-0.3.1/tests/cases/standard_library/.venv/lib/python3.14/os.py +0 -0
  59. unref-0.3.1/tests/cases/typed_dict/helpers.py +10 -0
  60. unref-0.3.1/tests/cases/typed_dict/whole.py +113 -0
  61. {unref-0.2.2 → unref-0.3.1}/uv.lock +74 -74
  62. {unref-0.2.2 → unref-0.3.1}/zensical.toml +4 -1
  63. {unref-0.2.2 → unref-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  64. {unref-0.2.2 → unref-0.3.1}/.github/actionlint.yaml +0 -0
  65. {unref-0.2.2 → unref-0.3.1}/.gitignore +0 -0
  66. {unref-0.2.2 → unref-0.3.1}/.readthedocs.yaml +0 -0
  67. {unref-0.2.2 → unref-0.3.1}/LICENSE +0 -0
  68. {unref-0.2.2 → unref-0.3.1}/assets/benchmark.svg +0 -0
  69. {unref-0.2.2 → unref-0.3.1}/linters/cspell.json +0 -0
  70. {unref-0.2.2 → unref-0.3.1}/linters/mypy.toml +0 -0
  71. {unref-0.2.2 → unref-0.3.1}/linters/ruff.toml +0 -0
  72. {unref-0.2.2 → unref-0.3.1}/linters/taplo.toml +0 -0
  73. {unref-0.2.2 → unref-0.3.1}/linters/unref.toml +0 -0
  74. {unref-0.2.2 → unref-0.3.1}/linters/yamllint.yaml +0 -0
  75. {unref-0.2.2 → unref-0.3.1}/scripts/release.py +0 -0
  76. {unref-0.2.2 → unref-0.3.1}/src/classes.rs +0 -0
  77. {unref-0.2.2 → unref-0.3.1}/src/config.rs +0 -0
  78. {unref-0.2.2 → unref-0.3.1}/src/discover.rs +0 -0
  79. {unref-0.2.2 → unref-0.3.1}/src/external.rs +0 -0
  80. {unref-0.2.2 → unref-0.3.1}/src/ignores.rs +0 -0
  81. {unref-0.2.2 → unref-0.3.1}/src/modules.rs +0 -0
  82. {unref-0.2.2 → unref-0.3.1}/src/positions.rs +0 -0
  83. {unref-0.2.2 → unref-0.3.1}/src/symbols.rs +0 -0
  84. {unref-0.2.2 → unref-0.3.1}/src/transitive.rs +0 -0
  85. {unref-0.2.2 → unref-0.3.1}/tests/__init__.py +0 -0
  86. {unref-0.2.2 → unref-0.3.1}/tests/_cli/__init__.py +0 -0
  87. {unref-0.2.2 → unref-0.3.1}/tests/_cli/_files.py +0 -0
  88. {unref-0.2.2 → unref-0.3.1}/tests/_cli/test_environment.py +0 -0
  89. {unref-0.2.2 → unref-0.3.1}/tests/_cli/test_general.py +0 -0
  90. {unref-0.2.2 → unref-0.3.1}/tests/_cli/test_output.py +0 -0
  91. {unref-0.2.2 → unref-0.3.1}/tests/_unref.py +0 -0
  92. {unref-0.2.2 → unref-0.3.1}/tests/cases/all_exports/all_exports.py +0 -0
  93. {unref-0.2.2 → unref-0.3.1}/tests/cases/all_exports/all_exports_forms.py +0 -0
  94. {unref-0.2.2 → unref-0.3.1}/tests/cases/all_exports/all_exports_forms_annotated.py +0 -0
  95. {unref-0.2.2 → unref-0.3.1}/tests/cases/all_exports/all_exports_not_strings.py +0 -0
  96. {unref-0.2.2 → unref-0.3.1}/tests/cases/all_exports/string_not_in_all.py +0 -0
  97. {unref-0.2.2 → unref-0.3.1}/tests/cases/ast_node_visitor/main.py +0 -0
  98. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/helpers.py +0 -0
  99. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/local.py +0 -0
  100. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/main.py +0 -0
  101. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/pkg/__init__.py +0 -0
  102. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/pkg/mod.py +0 -0
  103. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/pkg/other.py +0 -0
  104. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/pkg/sibling.py +0 -0
  105. {unref-0.2.2 → unref-0.3.1}/tests/cases/attribute_of_module/pkg/third.py +0 -0
  106. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/ascii.py +0 -0
  107. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/cp1252.py +0 -0
  108. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/euc_jp.py +0 -0
  109. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/latin1.py +0 -0
  110. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/main.py +0 -0
  111. {unref-0.2.2 → unref-0.3.1}/tests/cases/columns/utf8.py +0 -0
  112. {unref-0.2.2 → unref-0.3.1}/tests/cases/compiled_submodule_star/main.py +0 -0
  113. {unref-0.2.2 → unref-0.3.1}/tests/cases/compiled_submodule_star/pkg/__init__.py +0 -0
  114. {unref-0.2.2 → unref-0.3.1}/tests/cases/config_in_parent/pyproject.toml +0 -0
  115. {unref-0.2.2 → unref-0.3.1}/tests/cases/config_in_parent/scripts/tool.py +0 -0
  116. {unref-0.2.2 → unref-0.3.1}/tests/cases/config_in_parent/src/app/__init__.py +0 -0
  117. {unref-0.2.2 → unref-0.3.1}/tests/cases/config_in_parent/src/app/cli.py +0 -0
  118. {unref-0.2.2 → unref-0.3.1}/tests/cases/config_in_parent/src/app/skip.py +0 -0
  119. {unref-0.2.2 → unref-0.3.1}/tests/cases/decorated_function/main.py +0 -0
  120. {unref-0.2.2 → unref-0.3.1}/tests/cases/default_excluded/main.py +0 -0
  121. {unref-0.2.2 → unref-0.3.1}/tests/cases/default_excluded/node_modules/use.py +0 -0
  122. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/assignment_to_other_object.py +0 -0
  123. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/attribute_read.py +0 -0
  124. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/class_.py +0 -0
  125. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/class_attribute.py +0 -0
  126. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/method_called.py +0 -0
  127. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/method_without_self.py +0 -0
  128. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/name_read.py +0 -0
  129. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/nested_function.py +0 -0
  130. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/property_setter.py +0 -0
  131. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/recursive_function.py +0 -0
  132. {unref-0.2.2 → unref-0.3.1}/tests/cases/definitions/type_alias.py +0 -0
  133. {unref-0.2.2 → unref-0.3.1}/tests/cases/dummy_variable_rgx/main.py +0 -0
  134. {unref-0.2.2 → unref-0.3.1}/tests/cases/dummy_variable_rgx/pyproject.toml +0 -0
  135. {unref-0.2.2 → unref-0.3.1}/tests/cases/dunders/dunder_function.py +0 -0
  136. {unref-0.2.2 → unref-0.3.1}/tests/cases/dunders/dunder_method.py +0 -0
  137. {unref-0.2.2 → unref-0.3.1}/tests/cases/dunders/dunder_variable.py +0 -0
  138. {unref-0.2.2 → unref-0.3.1}/tests/cases/dunders/not_dunder.py +0 -0
  139. {unref-0.2.2 → unref-0.3.1}/tests/cases/empty_file/main.py +0 -0
  140. {unref-0.2.2 → unref-0.3.1}/tests/cases/entry_points/main.py +0 -0
  141. {unref-0.2.2 → unref-0.3.1}/tests/cases/entry_points/pkg/__init__.py +0 -0
  142. {unref-0.2.2 → unref-0.3.1}/tests/cases/entry_points/pkg/gui.py +0 -0
  143. {unref-0.2.2 → unref-0.3.1}/tests/cases/entry_points/pkg/plugins.py +0 -0
  144. {unref-0.2.2 → unref-0.3.1}/tests/cases/entry_points/pyproject.toml +0 -0
  145. {unref-0.2.2 → unref-0.3.1}/tests/cases/enum_members/enums.py +0 -0
  146. {unref-0.2.2 → unref-0.3.1}/tests/cases/enum_members/fruits/__init__.py +0 -0
  147. {unref-0.2.2 → unref-0.3.1}/tests/cases/enum_members/fruits/enums.py +0 -0
  148. {unref-0.2.2 → unref-0.3.1}/tests/cases/enum_members/main.py +0 -0
  149. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/generated/deep/module.py +0 -0
  150. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/generated/module.py +0 -0
  151. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/main.py +0 -0
  152. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/pkg/generated/module.py +0 -0
  153. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/pyproject.toml +0 -0
  154. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude/single.py +0 -0
  155. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/main.py +0 -0
  156. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/node_modules/use.py +0 -0
  157. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/pkg/fixtures/use.py +0 -0
  158. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/pyproject.toml +0 -0
  159. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/scripts/keep.py +0 -0
  160. {unref-0.2.2 → unref-0.3.1}/tests/cases/exclude_patterns/scripts/one.py +0 -0
  161. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class/main.py +0 -0
  162. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class/reexport.py +0 -0
  163. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_getattr/lazy.py +0 -0
  164. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_getattr/main.py +0 -0
  165. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_getattr/not_lazy.py +0 -0
  166. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/lazy.py +0 -0
  167. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/main.py +0 -0
  168. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/pyproject.toml +0 -0
  169. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/reexport.py +0 -0
  170. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/vendored/__init__.py +0 -0
  171. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_base_class_nested/vendored/outer.py +0 -0
  172. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/bin/python +0 -0
  173. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/__init__.py +0 -0
  174. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/dotted.py +0 -0
  175. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/other.py +0 -0
  176. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/stable.py +0 -0
  177. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/lib/python3.15/site-packages/pkg/tagged.py +0 -0
  178. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/.venv/pyvenv.cfg +0 -0
  179. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/main.py +0 -0
  180. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_compiled_star/pyproject.toml +0 -0
  181. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/bin/python +0 -0
  182. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/editable.pth +0 -0
  183. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/project_only/__init__.py +0 -0
  184. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/project_only/types.py +0 -0
  185. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/lib/python3.15/site-packages/unreadable.pth/README.txt +0 -0
  186. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/pythonpath/project_only/__init__.py +0 -0
  187. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/pythonpath/project_only/types.py +0 -0
  188. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/pyvenv.cfg +0 -0
  189. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/.venv/src/editable_module.py +0 -0
  190. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/main.py +0 -0
  191. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_environment/pyproject.toml +0 -0
  192. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/__init__.py +0 -0
  193. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/optional.py +0 -0
  194. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/.venv/lib/python3.15/site-packages/pkg/other.py +0 -0
  195. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/.venv/pyvenv.cfg +0 -0
  196. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/main.py +0 -0
  197. {unref-0.2.2 → unref-0.3.1}/tests/cases/external_missing_star/pyproject.toml +0 -0
  198. {unref-0.2.2/tests/cases/frameworks_django/mysite → unref-0.3.1/tests/cases/frameworks_celery/myapp}/__init__.py +0 -0
  199. {unref-0.2.2/tests/cases/frameworks_django/other → unref-0.3.1/tests/cases/frameworks_celery/proj}/__init__.py +0 -0
  200. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_dataclasses/models.py +0 -0
  201. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/manage.py +0 -0
  202. {unref-0.2.2/tests/cases/frameworks_django/polls → unref-0.3.1/tests/cases/frameworks_django/mysite}/__init__.py +0 -0
  203. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/mysite/asgi.py +0 -0
  204. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/mysite/base.py +0 -0
  205. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/mysite/settings.py +0 -0
  206. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/mysite/urls.py +0 -0
  207. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/mysite/wsgi.py +0 -0
  208. {unref-0.2.2/tests/cases/frameworks_django_settings/config → unref-0.3.1/tests/cases/frameworks_django/other}/__init__.py +0 -0
  209. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/other/settings.py +0 -0
  210. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/other/urls.py +0 -0
  211. {unref-0.2.2/tests/cases/frameworks_django_settings/config/settings → unref-0.3.1/tests/cases/frameworks_django/polls}/__init__.py +0 -0
  212. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/polls/apps.py +0 -0
  213. {unref-0.2.2/tests/cases/hidden_directory/pkg → unref-0.3.1/tests/cases/frameworks_django/polls/migrations}/__init__.py +0 -0
  214. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/polls/urls.py +0 -0
  215. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django/polls/views.py +0 -0
  216. {unref-0.2.2/tests/cases/namespace_package/pkg → unref-0.3.1/tests/cases/frameworks_django_settings/config}/__init__.py +0 -0
  217. {unref-0.2.2/tests/cases/override_base_class_external/vendored → unref-0.3.1/tests/cases/frameworks_django_settings/config/settings}/__init__.py +0 -0
  218. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django_settings/config/settings/local.py +0 -0
  219. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django_settings/config/settings/production.py +0 -0
  220. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django_settings/config/urls.py +0 -0
  221. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_django_settings/pyproject.toml +0 -0
  222. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_fastapi/main.py +0 -0
  223. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_fastapi/routers.py +0 -0
  224. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_fastapi/test_local.py +0 -0
  225. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_flask/app.py +0 -0
  226. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_flask/cli.py +0 -0
  227. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_flask/views.py +0 -0
  228. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_flask/wsgi.py +0 -0
  229. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/bin/python +0 -0
  230. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/__init__.py +0 -0
  231. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/deprecated/class_validators.py +0 -0
  232. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/fields.py +0 -0
  233. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/functional_serializers.py +0 -0
  234. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/functional_validators.py +0 -0
  235. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/main.py +0 -0
  236. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/v1/__init__.py +0 -0
  237. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic/v1/main.py +0 -0
  238. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic_settings/__init__.py +0 -0
  239. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/lib/python3.15/site-packages/pydantic_settings/main.py +0 -0
  240. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pydantic/.venv/pyvenv.cfg +0 -0
  241. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/bases.py +0 -0
  242. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/helpers.py +0 -0
  243. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/tests/conftest.py +0 -0
  244. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/tests/module_test.py +0 -0
  245. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/tests/test_asyncio.py +0 -0
  246. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/tests/test_inheritance.py +0 -0
  247. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_pytest/tests/test_module.py +0 -0
  248. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_selected/docs/conf.py +0 -0
  249. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_selected/models.py +0 -0
  250. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_selected/pyproject.toml +0 -0
  251. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_selected/test_module.py +0 -0
  252. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx/docs/conf.py +0 -0
  253. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx/other/conf.py +0 -0
  254. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx/settings.py +0 -0
  255. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx_configuration/docs/source/conf.py +0 -0
  256. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx_configuration/other/conf.py +0 -0
  257. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sphinx_configuration/pyproject.toml +0 -0
  258. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sqlalchemy/chained.py +0 -0
  259. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sqlalchemy/legacy.py +0 -0
  260. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sqlalchemy/models.py +0 -0
  261. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_sqlalchemy/other.py +0 -0
  262. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_unittest/base.py +0 -0
  263. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_unittest/checks.py +0 -0
  264. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_unittest/mixins.py +0 -0
  265. {unref-0.2.2 → unref-0.3.1}/tests/cases/frameworks_unittest/testsuite.py +0 -0
  266. {unref-0.2.2 → unref-0.3.1}/tests/cases/function/main.py +0 -0
  267. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/.gitignore +0 -0
  268. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/generated/use.py +0 -0
  269. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/main.py +0 -0
  270. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/nested/.gitignore +0 -0
  271. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/nested/scratch_nested.py +0 -0
  272. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/scratch_kept.py +0 -0
  273. {unref-0.2.2 → unref-0.3.1}/tests/cases/gitignore/scratch_one.py +0 -0
  274. {unref-0.2.2 → unref-0.3.1}/tests/cases/hidden_directory/.github/scripts/run.py +0 -0
  275. {unref-0.2.2/tests/cases/package → unref-0.3.1/tests/cases/hidden_directory}/pkg/__init__.py +0 -0
  276. {unref-0.2.2 → unref-0.3.1}/tests/cases/hidden_directory/pkg/util.py +0 -0
  277. {unref-0.2.2 → unref-0.3.1}/tests/cases/ignore_comment/main.py +0 -0
  278. {unref-0.2.2 → unref-0.3.1}/tests/cases/ignore_comment/pyproject.toml +0 -0
  279. {unref-0.2.2 → unref-0.3.1}/tests/cases/ignore_comment/without_comment.py +0 -0
  280. {unref-0.2.2 → unref-0.3.1}/tests/cases/ignore_comment_invalid/main.py +0 -0
  281. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/function_only_imported.py +0 -0
  282. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/function_only_imported_helpers.py +0 -0
  283. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_module.py +0 -0
  284. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_module_helpers.py +0 -0
  285. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_module_other.py +0 -0
  286. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_package.py +0 -0
  287. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_package_pkg/__init__.py +0 -0
  288. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_from_package_pkg/module.py +0 -0
  289. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_lazy.py +0 -0
  290. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_lazy_helpers.py +0 -0
  291. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_lazy_other.py +0 -0
  292. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_relative_pkg/__init__.py +0 -0
  293. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_relative_pkg/helpers.py +0 -0
  294. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_relative_pkg/sub/__init__.py +0 -0
  295. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_relative_pkg/sub/module.py +0 -0
  296. {unref-0.2.2/tests/cases/package/pkg/sub → unref-0.3.1/tests/cases/imports/import_sibling_pkg}/__init__.py +0 -0
  297. /unref-0.2.2/tests/cases/package/pkg/sub/module.py → /unref-0.3.1/tests/cases/imports/import_sibling_pkg/scripts/import_from_module_helpers.py +0 -0
  298. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star.py +0 -0
  299. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star_helpers.py +0 -0
  300. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star_scope.py +0 -0
  301. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star_scope_helpers.py +0 -0
  302. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star_with_all.py +0 -0
  303. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_star_with_all_helpers.py +0 -0
  304. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_unresolved.py +0 -0
  305. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/import_unresolved_other.py +0 -0
  306. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/reexport_same_name.py +0 -0
  307. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/reexport_same_name_pkg/__init__.py +0 -0
  308. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/reexport_same_name_pkg/colors.py +0 -0
  309. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/reexport_same_name_pkg/tool.py +0 -0
  310. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/same_name_in_other_module.py +0 -0
  311. {unref-0.2.2 → unref-0.3.1}/tests/cases/imports/same_name_in_other_module_other.py +0 -0
  312. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/class_body_read.py +0 -0
  313. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_class_body.py +0 -0
  314. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_closure.py +0 -0
  315. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_comprehension.py +0 -0
  316. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_comprehension_unpacking.py +0 -0
  317. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_default.py +0 -0
  318. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_function.py +0 -0
  319. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_function_closure.py +0 -0
  320. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_function_global.py +0 -0
  321. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_function_nonlocal.py +0 -0
  322. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_global.py +0 -0
  323. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_import.py +0 -0
  324. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_lambda.py +0 -0
  325. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_match.py +0 -0
  326. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_parameter.py +0 -0
  327. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_targets.py +0 -0
  328. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_variable.py +0 -0
  329. {unref-0.2.2 → unref-0.3.1}/tests/cases/local_scopes/local_variable_read.py +0 -0
  330. {unref-0.2.2 → unref-0.3.1}/tests/cases/match_class_pattern/main.py +0 -0
  331. {unref-0.2.2 → unref-0.3.1}/tests/cases/match_class_pattern/pyproject.toml +0 -0
  332. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_class.py +0 -0
  333. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_external_base.py +0 -0
  334. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_metaclass.py +0 -0
  335. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_mixin.py +0 -0
  336. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_name_imported.py +0 -0
  337. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_name_imported_jobs.py +0 -0
  338. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_name_read.py +0 -0
  339. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_private_helper.py +0 -0
  340. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_protocol.py +0 -0
  341. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_self.py +0 -0
  342. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_super.py +0 -0
  343. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_template_method.py +0 -0
  344. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_unknown_base.py +0 -0
  345. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/member_unknown_receiver.py +0 -0
  346. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/same_name_elsewhere.py +0 -0
  347. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/shapes/__init__.py +0 -0
  348. {unref-0.2.2 → unref-0.3.1}/tests/cases/member_receivers/shapes/models.py +0 -0
  349. {unref-0.2.2 → unref-0.3.1}/tests/cases/method/main.py +0 -0
  350. /unref-0.2.2/tests/cases/standard_library/.venv/lib/python3.13/os.py → /unref-0.3.1/tests/cases/namespace_package/pkg/__init__.py +0 -0
  351. {unref-0.2.2 → unref-0.3.1}/tests/cases/namespace_package/pkg/main.py +0 -0
  352. {unref-0.2.2 → unref-0.3.1}/tests/cases/namespace_package/pkg/sub/deeper/mod.py +0 -0
  353. {unref-0.2.2 → unref-0.3.1}/tests/cases/namespace_package/pkg/sub/mod.py +0 -0
  354. {unref-0.2.2 → unref-0.3.1}/tests/cases/namespace_package/top/inner/mod.py +0 -0
  355. {unref-0.2.2 → unref-0.3.1}/tests/cases/namespace_package/top/main.py +0 -0
  356. {unref-0.2.2 → unref-0.3.1}/tests/cases/non_python_file/main.py +0 -0
  357. {unref-0.2.2 → unref-0.3.1}/tests/cases/non_python_file/notes.txt +0 -0
  358. {unref-0.2.2 → unref-0.3.1}/tests/cases/override/conftest.py +0 -0
  359. {unref-0.2.2 → unref-0.3.1}/tests/cases/override/pyproject.toml +0 -0
  360. {unref-0.2.2 → unref-0.3.1}/tests/cases/override/src/module.py +0 -0
  361. {unref-0.2.2 → unref-0.3.1}/tests/cases/override/tests/test_module.py +0 -0
  362. {unref-0.2.2 → unref-0.3.1}/tests/cases/override/tests/unit/test_unit.py +0 -0
  363. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/children.py +0 -0
  364. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/cycle_first.py +0 -0
  365. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/cycle_second.py +0 -0
  366. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/models.py +0 -0
  367. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/pkg/__init__.py +0 -0
  368. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/pkg/base.py +0 -0
  369. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/pyproject.toml +0 -0
  370. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/star_cycle.py +0 -0
  371. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/stars/__init__.py +0 -0
  372. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/stars/first.py +0 -0
  373. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class/stars/second.py +0 -0
  374. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_and_path/models/model.py +0 -0
  375. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_and_path/other.py +0 -0
  376. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_and_path/pyproject.toml +0 -0
  377. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_external/main.py +0 -0
  378. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_external/pyproject.toml +0 -0
  379. /unref-0.2.2/tests/cases/standard_library/.venv/lib/python3.14/os.py → /unref-0.3.1/tests/cases/override_base_class_external/vendored/__init__.py +0 -0
  380. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_external/vendored/base.py +0 -0
  381. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_external/vendored/broken.py +0 -0
  382. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_base_class_external/vendored/namespace/module.py +0 -0
  383. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_class_decorator/decorators.py +0 -0
  384. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_class_decorator/models.py +0 -0
  385. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_class_decorator/pyproject.toml +0 -0
  386. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_class_decorator_and_base_class/models.py +0 -0
  387. {unref-0.2.2 → unref-0.3.1}/tests/cases/override_class_decorator_and_base_class/pyproject.toml +0 -0
  388. {unref-0.2.2 → unref-0.3.1}/tests/cases/package/pkg/module.py +0 -0
  389. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_annotation.py +0 -0
  390. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_annotation_nested.py +0 -0
  391. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_annotation_self.py +0 -0
  392. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_cast.py +0 -0
  393. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_plain_string.py +0 -0
  394. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_type_alias.py +0 -0
  395. {unref-0.2.2 → unref-0.3.1}/tests/cases/quoted_annotations/quoted_type_var.py +0 -0
  396. {unref-0.2.2 → unref-0.3.1}/tests/cases/reexport_cycle/first/__init__.py +0 -0
  397. {unref-0.2.2 → unref-0.3.1}/tests/cases/reexport_cycle/main.py +0 -0
  398. {unref-0.2.2 → unref-0.3.1}/tests/cases/reexport_cycle/second/__init__.py +0 -0
  399. {unref-0.2.2 → unref-0.3.1}/tests/cases/reexport_cycle/second/values.py +0 -0
  400. {unref-0.2.2 → unref-0.3.1}/tests/cases/standard_library/.venv/lib/python3.13/handlers.py +0 -0
  401. {unref-0.2.2 → unref-0.3.1}/tests/cases/standard_library/.venv/lib/python3.14/handlers.py +0 -0
  402. {unref-0.2.2 → unref-0.3.1}/tests/cases/standard_library/main.py +0 -0
  403. {unref-0.2.2 → unref-0.3.1}/tests/cases/standard_library/pyproject.toml +0 -0
  404. {unref-0.2.2 → unref-0.3.1}/tests/cases/syntax_error/bad.py +0 -0
  405. {unref-0.2.2 → unref-0.3.1}/tests/cases/syntax_error/good.py +0 -0
  406. {unref-0.2.2 → unref-0.3.1}/tests/cases/syntax_error/undecodable.txt +0 -0
  407. {unref-0.2.2 → unref-0.3.1}/tests/cases/syntax_error/unknown_encoding.txt +0 -0
  408. {unref-0.2.2 → unref-0.3.1}/tests/cases/syntax_warning/main.py +0 -0
  409. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/transitive.py +0 -0
  410. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused.py +0 -0
  411. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused_helpers.py +0 -0
  412. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused_star.py +0 -0
  413. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused_star_helpers.py +0 -0
  414. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused_star_star.py +0 -0
  415. {unref-0.2.2 → unref-0.3.1}/tests/cases/transitive/used_only_by_unused_star_star_used.py +0 -0
  416. {unref-0.2.2 → unref-0.3.1}/tests/cases/typed_dict/main.py +0 -0
  417. {unref-0.2.2 → unref-0.3.1}/tests/cases/typed_dict/models.py +0 -0
  418. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_decorator/main.py +0 -0
  419. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_decorator/pyproject.toml +0 -0
  420. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_name/main.py +0 -0
  421. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_name/pyproject.toml +0 -0
  422. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_only_by_unused_root/main.py +0 -0
  423. {unref-0.2.2 → unref-0.3.1}/tests/cases/used_only_by_unused_root/pyproject.toml +0 -0
  424. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/dummy_variable.py +0 -0
  425. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/instance_attribute.py +0 -0
  426. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/instance_attribute_declared.py +0 -0
  427. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/underscore.py +0 -0
  428. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable.py +0 -0
  429. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_for_loop.py +0 -0
  430. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_in_block.py +0 -0
  431. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_only_written.py +0 -0
  432. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_reassigned.py +0 -0
  433. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_unpacking.py +0 -0
  434. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_walrus.py +0 -0
  435. {unref-0.2.2 → unref-0.3.1}/tests/cases/variables/variable_with.py +0 -0
  436. {unref-0.2.2 → unref-0.3.1}/tests/pytest.ini +0 -0
  437. {unref-0.2.2 → unref-0.3.1}/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
@@ -4,6 +4,10 @@ on:
4
4
  pull_request:
5
5
  branches: [main]
6
6
 
7
+ # Saves the caches, which pull requests can read only from main.
8
+ push:
9
+ branches: [main]
10
+
7
11
  workflow_dispatch:
8
12
 
9
13
  # A new push to a PR supersedes its in-flight run; manual runs are never cancelled.
@@ -11,18 +15,25 @@ concurrency:
11
15
  group: ${{ github.workflow }}-${{ github.ref }}
12
16
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13
17
 
18
+ # Jobs that need more ask for it themselves.
19
+ permissions:
20
+ contents: read
21
+
14
22
  jobs:
15
23
  linters:
16
24
  name: Linters
17
25
  runs-on: ubuntu-latest
18
26
  steps:
19
27
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28
+ with:
29
+ persist-credentials: false
20
30
 
21
31
  - name: Setup Python
22
32
  uses: ./.github/workflows/util/setup_python
23
33
 
24
- - name: prek cache
25
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
34
+ - name: Restore the prek cache
35
+ id: prek-cache
36
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
26
37
  with:
27
38
  path: ~/.cache/prek
28
39
  key: ci-prek-cache-${{ hashFiles('prek.toml') }}
@@ -30,23 +41,39 @@ jobs:
30
41
  - name: Run prek
31
42
  run: prek run -v --show-diff-on-failure --color=always --all-files
32
43
 
44
+ # Only main saves caches, as each pull request would save its own copy.
45
+ - name: Save the prek cache
46
+ if: github.ref == 'refs/heads/main' && steps.prek-cache.outputs.cache-hit != 'true'
47
+ uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
48
+ with:
49
+ path: ~/.cache/prek
50
+ key: ${{ steps.prek-cache.outputs.cache-primary-key }}
51
+
33
52
  docs:
34
53
  name: Docs
35
54
  runs-on: ubuntu-latest
36
55
  steps:
37
56
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
57
+ with:
58
+ persist-credentials: false
38
59
 
39
60
  - name: Setup Python
40
61
  uses: ./.github/workflows/util/setup_python
62
+ with:
63
+ install-project: "false"
41
64
 
42
65
  - name: Build docs
43
- run: uv run --group docs zensical build --strict
66
+ run: |
67
+ uv sync --frozen --no-install-project --group docs
68
+ zensical build --strict
44
69
 
45
70
  type-check:
46
71
  name: Type Checks
47
72
  runs-on: ubuntu-latest
48
73
  steps:
49
74
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
75
+ with:
76
+ persist-credentials: false
50
77
 
51
78
  - uses: ./.github/workflows/util/setup_python
52
79
  with:
@@ -63,6 +90,8 @@ jobs:
63
90
  runs-on: ubuntu-latest
64
91
  steps:
65
92
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
93
+ with:
94
+ persist-credentials: false
66
95
 
67
96
  - uses: ./.github/workflows/util/setup_python
68
97
 
@@ -76,22 +105,21 @@ jobs:
76
105
  compare:
77
106
  name: Compare with main
78
107
  runs-on: ubuntu-latest
79
- permissions:
80
- contents: read
81
- pull-requests: write
82
108
  steps:
83
109
  # A pull request is checked out as its merge into the current main, which is the merge's first parent. The
84
110
  # base SHA of the event can be an older main, whose later commits would count as changes of the PR. A manual
85
- # run compares the branch it runs on with main.
111
+ # run compares the branch it runs on with main. A push to main only builds the head, to save its caches.
86
112
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
87
113
  with:
114
+ persist-credentials: false
88
115
  fetch-depth: 2
89
116
 
90
117
  - name: Checkout the base
118
+ id: base
91
119
  env:
92
120
  EVENT: ${{ github.event_name }}
93
121
  run: |
94
- if [ "$EVENT" = "pull_request" ]; then
122
+ if [ "$EVENT" != "workflow_dispatch" ]; then
95
123
  base=HEAD^1
96
124
  else
97
125
  git fetch --depth=1 origin main
@@ -99,6 +127,7 @@ jobs:
99
127
  fi
100
128
  git worktree add --detach base "$base"
101
129
  git -C base log -1 --format='Base: %h %s'
130
+ echo "sha=$(git -C base rev-parse HEAD)" >> "$GITHUB_OUTPUT"
102
131
 
103
132
  - uses: ./.github/workflows/util/setup_python
104
133
  with:
@@ -107,42 +136,78 @@ jobs:
107
136
  - name: Rust cache
108
137
  uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
109
138
  with:
110
- workspaces: |
111
- . -> target
112
- base -> target
139
+ save-if: ${{ github.ref == 'refs/heads/main' }}
140
+
141
+ # Each push to main saves its binary, so that a pull request builds the base only when the run of its main
142
+ # has not finished.
143
+ - name: Restore the base
144
+ id: restore-base
145
+ if: github.event_name != 'push'
146
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
147
+ with:
148
+ path: binary
149
+ key: binary-${{ steps.base.outputs.sha }}
113
150
 
114
- - name: Build the head and the base
151
+ - name: Build the head
152
+ run: cargo build --release --locked
153
+
154
+ - name: Build the base
155
+ if: github.event_name != 'push' && steps.restore-base.outputs.cache-hit != 'true'
115
156
  run: |
116
- cargo build --release --locked
117
157
  cargo build --release --locked --manifest-path base/Cargo.toml
158
+ mkdir -p binary
159
+ cp base/target/release/unref binary/
160
+
161
+ - name: Copy the binary of main
162
+ if: github.event_name == 'push'
163
+ run: |
164
+ mkdir -p binary
165
+ cp target/release/unref binary/
166
+
167
+ - name: Save the binary of main
168
+ if: github.event_name == 'push'
169
+ uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
170
+ with:
171
+ path: binary
172
+ key: binary-${{ github.sha }}
118
173
 
119
174
  # Shows the findings that the head adds or removes on open source projects. It never fails the job, not even
120
175
  # when a project cannot be cloned.
121
176
  - name: Compare the findings on open source projects
177
+ if: github.event_name != 'push'
122
178
  continue-on-error: true
123
- run: python scripts/ecosystem.py base/target/release/unref target/release/unref ecosystem.md
179
+ run: python scripts/ecosystem.py binary/unref target/release/unref ecosystem.md
124
180
 
125
181
  # Fails when the head is too slow, after it writes its report, which the next steps then still post.
126
182
  - name: Compare the speed
127
- run: python scripts/benchmark.py compare base/target/release/unref target/release/unref benchmark.md
183
+ if: github.event_name != 'push'
184
+ run: python scripts/benchmark.py compare binary/unref target/release/unref benchmark.md
128
185
 
129
186
  - name: Write the report and the job summary
130
- if: ${{ !cancelled() }}
187
+ if: ${{ !cancelled() && github.event_name != 'push' }}
131
188
  run: |
132
189
  for file in benchmark.md ecosystem.md; do
133
190
  if [ -f "$file" ]; then cat "$file"; echo; fi
134
191
  done > report.md
135
192
  cat report.md >> "$GITHUB_STEP_SUMMARY"
136
193
 
137
- # A pull request from a fork has a read-only token, so it gets the job summary only.
138
- - name: Comment on the pull request
139
- if: >-
140
- ${{ !cancelled() && hashFiles('benchmark.md', 'ecosystem.md') != '' && github.event_name == 'pull_request'
141
- && github.event.pull_request.head.repo.full_name == github.repository }}
142
- uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
194
+ # This run has a read-only token, also for a pull request from a fork, so Publish Comparison posts the
195
+ # report. The number tells it which pull request the report is for.
196
+ - name: Save the pull request number
197
+ if: ${{ !cancelled() && github.event_name == 'pull_request' }}
198
+ env:
199
+ NUMBER: ${{ github.event.number }}
200
+ run: echo "$NUMBER" > number
201
+
202
+ - name: Upload the report
203
+ if: ${{ !cancelled() && github.event_name == 'pull_request' }}
204
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
143
205
  with:
144
- header: compare
145
- path: report.md
206
+ name: compare-report
207
+ path: |
208
+ report.md
209
+ number
210
+ retention-days: 1
146
211
 
147
212
  check:
148
213
  name: Check All
@@ -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:
@@ -15,7 +19,8 @@ jobs:
15
19
  matrix:
16
20
  include:
17
21
  - {runner: ubuntu-latest, target: x86_64, manylinux: auto}
18
- - {runner: ubuntu-latest, target: aarch64, manylinux: auto}
22
+ # jemalloc on aarch64 Linux takes pages of up to 64 KiB, which some kernels use, as ruff's.
23
+ - {runner: ubuntu-latest, target: aarch64, manylinux: auto, docker-options: -e JEMALLOC_SYS_WITH_LG_PAGE=16}
19
24
  - {runner: ubuntu-latest, target: x86_64-unknown-linux-musl, manylinux: musllinux_1_2}
20
25
  - {runner: ubuntu-latest, target: aarch64-unknown-linux-musl, manylinux: musllinux_1_2}
21
26
  - {runner: macos-latest, target: x86_64, manylinux: ""}
@@ -35,6 +40,8 @@ jobs:
35
40
  run: git config --global core.longpaths true
36
41
 
37
42
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
43
+ with:
44
+ persist-credentials: false
38
45
 
39
46
  - name: Set the version from the tag
40
47
  if: startsWith(github.ref, 'refs/tags/v')
@@ -46,6 +53,7 @@ jobs:
46
53
  with:
47
54
  target: ${{ matrix.target }}
48
55
  manylinux: ${{ matrix.manylinux }}
56
+ docker-options: ${{ matrix.docker-options }}
49
57
  args: --release --out dist
50
58
 
51
59
  - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
@@ -58,6 +66,8 @@ jobs:
58
66
  runs-on: ubuntu-latest
59
67
  steps:
60
68
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
69
+ with:
70
+ persist-credentials: false
61
71
 
62
72
  - name: Set the version from the tag
63
73
  if: startsWith(github.ref, 'refs/tags/v')
@@ -79,6 +89,7 @@ jobs:
79
89
  name: Release
80
90
  needs: [wheels, sdist]
81
91
  runs-on: ubuntu-latest
92
+ environment: pypi
82
93
 
83
94
  permissions:
84
95
  # Required for PyPI Trusted Publishing (OIDC), so no API token is stored.
@@ -99,7 +110,6 @@ jobs:
99
110
  run: uv publish --trusted-publishing always dist/*
100
111
 
101
112
  - name: Create GitHub Release
102
- uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
103
- with:
104
- generate_release_notes: true
105
- files: dist/*
113
+ env:
114
+ GH_TOKEN: ${{ github.token }}
115
+ run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --generate-notes dist/*
@@ -16,12 +16,17 @@ 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
21
+ # Only main saves caches, as each pull request would save its own copy.
22
+ save-cache: ${{ github.ref == 'refs/heads/main' }}
20
23
 
21
24
  # The Rust toolchain of the runner builds unref, whose build is cached.
22
25
  - name: Rust cache
23
26
  if: inputs.install-project == 'true'
24
27
  uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
28
+ with:
29
+ save-if: ${{ github.ref == 'refs/heads/main' }}
25
30
 
26
31
  - name: Install Python dependencies
27
32
  shell: bash
@@ -33,9 +38,3 @@ runs:
33
38
  else
34
39
  uv sync --frozen --no-install-project
35
40
  fi
36
-
37
- # Put the project virtual environment on PATH for subsequent steps, so tools can be
38
- # invoked directly (e.g. `pytest`).
39
- - name: Activate Python venv
40
- shell: bash
41
- run: echo "$(pwd)/.venv/bin" >> "$GITHUB_PATH"
@@ -0,0 +1,5 @@
1
+ rules:
2
+ # actionlint does not accept the `$/` syntax yet.
3
+ # https://github.com/rhysd/actionlint/issues/711
4
+ self-repository:
5
+ disable: true
@@ -1,6 +1,6 @@
1
1
  - id: unref
2
2
  name: unref
3
- description: Find unreferenced Python code.
3
+ description: An extremely fast Python dead code finder, written in Rust.
4
4
  entry: unref
5
5
  # The hook is built from the source of the repository with Cargo, which pre-commit and prek install if
6
6
  # it is missing.
@@ -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