Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Nov 26, 2024
1 parent 607db9a commit 31637f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion generate_citation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import re
try:
import cffconvert
except:
import warnings
warnings.warn("cffconvert not installed. Not updating README citation.")

import cffconvert
exit()

with open("CITATION.CFF", "r") as file:
cff_content = file.read()
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Homepage = "https://hiaac.unicamp.br"
[project.optional-dependencies]
tests = ["mypy", "testbook", "ipython", "ipykernel", "numpy", "matplotlib"]
doc_generation = ["sphinx", "sphinx_rtd_theme", "nbsphinx", "sphinx-mdinclude==0.5.4"]
dev = ["cffconvert"]

[tool.setuptools]
include-package-data = true
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = --ignore=examples --ignore=docs --doctest-modules
addopts = --ignore=examples --ignore=docs --doctest-modules --ignore=generate_citation.py

0 comments on commit 31637f4

Please sign in to comment.