Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BDRSPS-1127 Add import linter to check program structure #378

Merged
merged 7 commits into from
Jan 6, 2025

Conversation

Lincoln-GR
Copy link
Contributor

@Lincoln-GR Lincoln-GR commented Jan 6, 2025

The import rules ("contracts") I've set up to start with are basically:

  1. The abis_mapping module must not import tests or scripts or docs.
  2. The docs module must not import tests or scripts.
  3. The modules inside of abis_mapping must be "layered" in a sensible manner.
  4. The test modules are mostly independent and don't import each other.

I've also taken this opportunity to simplify the dynamic template imports with regular imports.
The dynamic imports where more complex than required and import-linter could not check them.

@Lincoln-GR Lincoln-GR force-pushed the BDRSPS-1127-import-linter branch from d4385fa to e30f01a Compare January 6, 2025 03:03
@Lincoln-GR Lincoln-GR marked this pull request as ready for review January 6, 2025 03:41
@Lincoln-GR Lincoln-GR requested a review from serge-gaia January 6, 2025 03:42
@chungvl chungvl merged commit dc463bb into main Jan 6, 2025
10 checks passed
@chungvl chungvl deleted the BDRSPS-1127-import-linter branch January 6, 2025 04:35
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.

2 participants