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

Move all project configuration to pyproject.toml #89

Merged
merged 9 commits into from
Mar 22, 2024
Merged

Conversation

pont-us
Copy link
Member

@pont-us pont-us commented Mar 20, 2024

Closes #88 .

Checklist (strike out non-applicable):

  • Changes documented in CHANGES.md
  • Related issue exists and is referred to in the PR description and CHANGES.md
    * [ ] Added docstrings and API docs for any new/modified user-facing classes and functions n/a
  • Changes/features documented in docs/*
    * [ ] Unit-tests adapted/added for changes/features n/a
  • Test coverage remains or increases (target 100%)

pont-us added 4 commits March 20, 2024 17:25
Remove requirements.txt, requirements-doc.txt, requirements-dev.txt,
and setup.cfg and replace them with equivalent content in
pyproject.toml.

Currently flake8 configuration is missing -- this was configured
in setup.cfg and cannot currently be configured in pyproject.toml
(see PyCQA/flake8#234 ).
This configuration was previously in setup.cfg, but now that all
other project configuration has been moved to pyproject.toml,
it's safer to remove setup.cfg (since it might affect pip behaviour)
and use a dedicated .flake8 file for flake8 configuration.
pont-us added 2 commits March 20, 2024 17:53
They were trying to read requirements files which no longer exist.
Development and doc dependencies weren't being installed.
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.93%. Comparing base (41e1709) to head (a3c26e9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   99.93%   99.93%           
=======================================
  Files          30       30           
  Lines        1454     1454           
=======================================
  Hits         1453     1453           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@thomasstorm thomasstorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One tiny, non-crucial comment.

Copy link
Member

@forman forman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please merge my suggestion. That's all. Thanks, great!

pont-us and others added 2 commits March 21, 2024 11:18
Add an issue number per PR #89 review.

Co-authored-by: Norman Fomferra <[email protected]>
Copy link

@TonioF TonioF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, Out of curiosity, why extend-ignore = E203 in .flake8?

@pont-us
Copy link
Member Author

pont-us commented Mar 22, 2024

Looks good, Out of curiosity, why extend-ignore = E203 in .flake8?

@TonioF It's a workaround for a bug in pycodestyle, which is used by flake8. I've added a comment to the .flake8 file to explain it.

@pont-us pont-us merged commit ab74336 into main Mar 22, 2024
5 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.

Use pyproject.toml only
5 participants