Skip to content

Investigate SOLID Design Principles in tests/check_pip #190

Closed
@coderabbitai

Description

@coderabbitai

As requested by @reactive-firewall, we need to explore and properly design changes suggested in PR #184.

Summary findings:

  • It seems overly complex to require the python packaging module to check dependencies, which includes packaging itself, leading to a circular dependency issue. Consider the AHA principle.
  • It may violate the Single Responsibility Principle. The tool is checking licenses (a kind of metadata) and known security advisories (another kind of metadata) of Python dependencies; in our Python tests elsewhere (see tests/test_install_requires.py and tests/test_deps.py), we test other aspects of our dependencies, including checks with the Python packaging module already. Consider the Single Responsibility Principle.
  • Complex work belongs on separate development branches to isolate issues. Consider the Open/Closed Principle.

References:

Metadata

Metadata

Labels

Bash LangChanges to the BASH scriptsCIContinuous Integration ToolingLinterAny linter tool or setting file enhancementsTestingSomething can be verified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions