Skip to content

Commit

Permalink
fix string issue, update dep & python version
Browse files Browse the repository at this point in the history
- For compatibility with Python 3.11 and older, use single quote inside
  f-string
- add dependency to numpy
- test against Python versions in Ubuntu 22.04, 24.04, and latest
  • Loading branch information
minhnh committed Nov 20, 2024
1 parent 89e3ee9 commit 63ba753
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies = [
'rdflib>=7.1.0',
'pyshacl',
'platformdirs',
'numpy',
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
def get_matrix_string(matrix):
row_strs = []
for row in matrix:
row_strs.append(f"[{", ".join(map(str, row))}]")
row_strs.append(f"[{', '.join(map(str, row))}]")
return f"[{", ".join(row_strs)}]"


Expand Down

0 comments on commit 63ba753

Please sign in to comment.