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

Include - in allowed characters for bibtex references #2097

Merged
merged 3 commits into from
Jun 19, 2023
Merged

Conversation

alistairsellar
Copy link
Contributor

@alistairsellar alistairsellar commented Jun 16, 2023

Description

Very small change that correctly handles bibtex references that include -, as is the case for many bibtex files in esmvaltool/references.
Closes #2092
Required to fix warnings arising from ESMValGroup/ESMValTool#3197 (comment)

Link to documentation: https://esmvaltool--2097.org.readthedocs.build/projects/ESMValCore/en/2097/ (no change)


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #2097 (85a1892) into main (179312e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2097   +/-   ##
=======================================
  Coverage   93.08%   93.08%           
=======================================
  Files         237      237           
  Lines       12793    12793           
=======================================
  Hits        11909    11909           
  Misses        884      884           
Impacted Files Coverage Δ
esmvalcore/_citation.py 80.99% <100.00%> (ø)

@alistairsellar alistairsellar added the bug Something isn't working label Jun 16, 2023
@alistairsellar alistairsellar self-assigned this Jun 16, 2023
@alistairsellar alistairsellar added this to the v2.9.0 milestone Jun 16, 2023
@alistairsellar
Copy link
Contributor Author

Hi @bouweandela here is the PR for the parsing bug #2092. Please could you review?

I've marked as 2.9 but appreciate the Core deadline for that has passed, so understand if it gets bumped to 2.10.

@bouweandela
Copy link
Member

Thanks @alistairsellar! I've added a unit test for you. It looks like there were no unit tests for the module yet, so I started it in a new file.

@bouweandela
Copy link
Member

@ESMValGroup/technical-lead-development-team Could someone please do a final check and merge?

@alistairsellar
Copy link
Contributor Author

Thanks @alistairsellar! I've added a unit test for you. It looks like there were no unit tests for the module yet, so I started it in a new file.

Thanks @bouweandela! Nice to see how a unit test can be added for such a simple change - this had not occurred to me as something that was even applicable for this change, but of course it is.

@alistairsellar
Copy link
Contributor Author

Thanks @schlunma and @bouweandela!

bouweandela added a commit that referenced this pull request Jul 3, 2023
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reference bibtex filenames can only contain the characters that match \w regex
3 participants