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

PR validation, tool config #63

Merged
merged 16 commits into from
Oct 31, 2024
Merged

PR validation, tool config #63

merged 16 commits into from
Oct 31, 2024

Conversation

alycejenni
Copy link
Member

@alycejenni alycejenni commented Oct 30, 2024

Batch extension update to add PR validation workflow, standardise/update existing workflows, switch to Ruff, and remove the version specifier from docker-compose.yml.

This also revealed some issues with dependencies (particularly spacy) in this extension, so this PR also pins dependency versions and makes CLI packages optional.

standardise format, change name of tests file
new workflow to check commit format and code style against pre-commit config
update pre-commit repo versions and switch black to ruff
version specifier is deprecated
should be unnecessary to specify python 3 now
not pinning sqlalchemy and requests because they're used elsewhere and pinning will probably cause some kind of horrible conflict; everything else has just been pinned to major versions, except spacy which needs to be <3.8 for python 3.8 compatibility (so is just pinned to the latest possible minor version)
F401 returns linting errors as well as auto-fixes, so this disables the errors and just applies the fixes
auto reformat with ruff/docformatter/prettier after config changes
@coveralls
Copy link

coveralls commented Oct 30, 2024

Pull Request Test Coverage Report for Build #150

Details

  • 78 of 96 (81.25%) changed or added relevant lines in 30 files are covered.
  • 20 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.2%) to 33.488%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ckanext/attribution/lib/orcid_api.py 0 1 0.0%
ckanext/attribution/commands/migration/combiner.py 5 7 71.43%
ckanext/attribution/logic/actions/extra.py 2 4 50.0%
ckanext/attribution/commands/migration/common.py 1 4 25.0%
ckanext/attribution/commands/migration/api_search.py 5 10 50.0%
ckanext/attribution/commands/migration/parser.py 5 10 50.0%
Files with Coverage Reduction New Missed Lines %
ckanext/attribution/lib/ror_api.py 4 21.88%
ckanext/attribution/model/crud/_base.py 5 37.14%
ckanext/attribution/lib/orcid_api.py 11 24.07%
Totals Coverage Status
Change from base Build #131: -0.2%
Covered Lines: 579
Relevant Lines: 1729

💛 - Coveralls

apparently they don't get pulled from pyproject.toml when using the github action
as recommended by docformatter issue 172
@alycejenni alycejenni merged commit 4cc0b26 into dev Oct 31, 2024
4 checks passed
@alycejenni alycejenni deleted the ginger/standardise branch October 31, 2024 09:52
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