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

Refactor constants #1094

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Refactor constants #1094

merged 3 commits into from
Oct 24, 2024

Conversation

carmenbianca
Copy link
Member

_util.py and __init__.py are full of constants. I want to clean this up to have better separation of concerns.

  • My changes do not contradict
    the current specification.
  • I agree to license my contribution under the licenses indicated in the
    changed files.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Kind of. This commit is a bit of a mess, but will help a lot in the
future. All stuff related to the extraction of information out of files
is now in its own module, and all stuff related to the parsing and
handling of copyright lines is also in its own module.

The problem caused by this commit is that the tests are incomplete.
Previously, not all functions in _util were tested in the understanding
that they were just small helper functions for _actual_ functions that
are under test. Now, there are public functions in public modules that
are not tested, and by chance, all of the remaining _util is currently
untested.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
@carmenbianca carmenbianca merged commit f8466ba into fsfe:main Oct 24, 2024
15 checks passed
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