Skip to content

Crossref support#110

Open
Engerrs wants to merge 48 commits into
NaturalHistoryMuseum:devfrom
DataShades:crossref-feature
Open

Crossref support#110
Engerrs wants to merge 48 commits into
NaturalHistoryMuseum:devfrom
DataShades:crossref-feature

Conversation

@Engerrs

@Engerrs Engerrs commented Oct 15, 2024

Copy link
Copy Markdown
Contributor

Hi guys

Added support for Crossref.

Out of the box it shouldn't break any original behavior, but also add an ability to use Crossref instead of DataCite.

Please review this and let me know if any adjustments are needed to be done.

Also updated the DB table initialization to use more modern CKAN way using migrations.

@alycejenni
alycejenni changed the base branch from main to dev October 24, 2024 09:05

@alycejenni alycejenni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @Engerrs, thank you for your PR! This is something we've considered adding in the past, but since we don't use crossref ourselves it hasn't been a priority.

I'd like to request a few changes:

  • please make sure you read the contributing guidelines, especially for code style and commit messages (for future commits)
  • requirements need to go in pyproject.toml, not requirements.txt
  • this is quite a significant new feature, so we need some test coverage for it

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
accidentally downgraded it automatically
F401 returns linting errors as well as auto-fixes, so this disables the errors and just applies the fixes
docformatter currently can't read from pyproject.toml without tomli
auto reformat with ruff/docformatter/prettier after config changes
@Engerrs

Engerrs commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

Hi @alycejenni , ok, I will adjust the code and write test for this.

@alycejenni alycejenni moved this from In Review to Paused in Science Platform Development Tasks Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants