Skip to content

Fix missed FSD violations and release 0.5.0 - #3

Merged
Horcag merged 1 commit into
masterfrom
fix-import-validation
Oct 25, 2026
Merged

Horcag merged 1 commit into
masterfrom
fix-import-validation

Conversation

@Horcag

@Horcag Horcag commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Problem and change

Forbidden public-package imports between sibling slices passed validation, and the standalone validator could return success for layer violations because pytest-archon deferred failures to its pytest plugin. Replace those runtime checks with static import resolution, so both pytest and direct Python reject the same violations without executing project code.

The audit also fixes relative/parent-package/public API import handling, static __all__ declarations and updates, and five structural rule gaps. Invalid configuration, missing source roots, uninspectable Python, and unsupported symlinks now fail explicitly. App and Shared retain segment independence rules. Dynamic imports and unresolved dynamic exports remain outside static resolution.

Release 0.5.0 removes the pytest-archon dependency and updates English/Russian documentation and installed-wheel CI controls.

Validation

  • 164 tests passed locally on Python 3.12, including direct Python and pytest subprocess controls with plugin autoload disabled.
  • Built wheel and source distribution; installed wheel passed sibling-import, upward-import and permitted-import controls in an isolated interpreter.
  • All package/test sources parse with Python 3.8 grammar; compileall and git diff --check pass.
  • CI verifies Python 3.8–3.14 and the installed wheel.

@Horcag
Horcag merged commit a29aae9 into master Oct 25, 2026
7 checks passed
@Horcag
Horcag deleted the fix-import-validation branch October 25, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant