Skip to content

Commit

Permalink
Merge pull request #65 from FAIRmat-NFDI/np-and-pint-versions
Browse files Browse the repository at this point in the history
Use different numpy and pint versions for different python versions, update ruff
  • Loading branch information
lukaspie committed Jun 19, 2024
2 parents 42db18c + 1e53224 commit 2cd7b3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.4
rev: v0.4.8
hooks:
# Run the linter.
- id: ruff
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ dependencies = [
"h5py>=3.6.0",
"igor2",
"xarray>=0.20.2",
"pint==0.17",
"pynxtools>=0.3.2",
"setuptools>=64.0.1"
"setuptools>=64.0.1",
"pint>=0.17,<0.24; python_version <= '3.9'",
"numpy<2.0.0; python_version <= '3.9'",
"pint>=0.24; python_version >= '3.10'",
"numpy>=1.21.2; python_version >= '3.10'"
]

[project.entry-points."pynxtools.reader"]
Expand All @@ -40,7 +43,7 @@ xps = "pynxtools_xps.reader:XPSReader"
[project.optional-dependencies]
dev = [
"mypy",
"ruff==0.3.4",
"ruff==0.4.8",
"pytest",
"pytest-cov",
"pytest-timeout",
Expand Down Expand Up @@ -82,6 +85,7 @@ select = [
"E", # pycodestyle
"W", # pycodestyle
"PL", # pylint
"NPY201",
]
ignore = [
"E501", # Line too long ({width} > {limit} characters)
Expand Down

0 comments on commit 2cd7b3f

Please sign in to comment.