Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-citation-file'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 4, 2024
2 parents c624f40 + 75e38ab commit e4554e4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cffconvert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: "cffconvert"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Check out a copy of the repository

- uses: citation-file-format/cffconvert-github-action@main
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ jobs:
--generate-notes \
--draft
- name: Validate CITATION.cff
id: validate_cff
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
uses: dieghernan/cff-validator@v3

tidy_workspace:
# only run if action above succeeds
needs: github_release
Expand Down
12 changes: 6 additions & 6 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YAML 1.2
---
cff-version: "1.4.3"
cff-version: 1.2.0
title: "eitprocessing"
authors:
- family-names: Bodor
Expand Down Expand Up @@ -29,20 +29,20 @@ authors:

- family-names: Wisse-Smit
given-names: Jantine
email: [email protected]
email: [email protected]
affiliation: Erasmus MC
orcid: "https://orcid.org/0000-0000-0000-0000"
orcid: "https://orcid.org/0009-0006-6552-5459"

- family-names: Francovich
given-names: Juliette
email: [email protected]
email: [email protected]
affiliation: Erasmus MC
orcid: "https://orcid.org/0000-0000-0000-0000"
orcid: "https://orcid.org/0009-0004-0976-5082"

date-released: 2023-03-23
doi: 10.5281/zenodo.7869553
version: "1.4.3"
repository-code: "git@github.com:EIT-ALIVE/eitprocessing"
repository-code: "https://github.com/EIT-ALIVE/eitprocessing"
keywords:
- Mechanical lung ventilation
- Electrical impedance tomography
Expand Down
28 changes: 21 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ ignore = [
"B028", # No explicit `stacklevel` keyword argument found in warning
# "SIM108", # Use ternary operator (not sure if we want to ignore this)
# Unneeded docstrings
"D100", # Missing module docstring
"D104", # Missing public package docstring
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"D100", # Missing module docstring
"D104", # Missing public package docstring
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"COM812", # missing trailing comma
"ISC001" # single line implicit string concatenation
"ISC001", # single line implicit string concatenation
]

# Set autofixing.
Expand Down Expand Up @@ -162,8 +162,16 @@ flake8-tidy-imports.ban-relative-imports = "all" # Disallow all relative imports
isort.known-first-party = ["eitprocessing"]

[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["ERA001", "T201", "T203"] # Commented out code, print() / pprint() statement
"notebooks/**/*.py" = ["ERA001", "T201", "T203"] # Commented out code, print() / pprint() statement
"*.ipynb" = [
"ERA001",
"T201",
"T203",
] # Commented out code, print() / pprint() statement
"notebooks/**/*.py" = [
"ERA001",
"T201",
"T203",
] # Commented out code, print() / pprint() statement
"tests/*" = [
"S101", # Use of `assert` detected
"ANN201", # Missing return type
Expand All @@ -178,9 +186,15 @@ current_version = "1.4.3"

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'

[[tool.bumpversion.files]]
filename = "eitprocessing/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

0 comments on commit e4554e4

Please sign in to comment.