From a2527810ed05ace66ba2f5c74352fd05304306ea Mon Sep 17 00:00:00 2001 From: Lukas Pielsticker <50139597+lukaspie@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:26:58 +0100 Subject: [PATCH] update lint settings --- dev-requirements.txt | 7 ++++--- pyproject.toml | 10 ++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index e5922f9c..3e65cc70 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -122,6 +122,7 @@ h5py==3.10.0 # orix # pyfai # pynxtools + # pynxtools-xps (pyproject.toml) # pyxem # silx hdf5plugin==4.3.0 @@ -410,8 +411,6 @@ pytz-deprecation-shim==0.1.0.post0 # via tzlocal pywavelets==1.4.1 # via scikit-image -pywin32==306 - # via jupyter-core pyxem==0.16.0 # via pynxtools pyyaml==6.0.1 @@ -572,7 +571,9 @@ wcwidth==0.2.12 wheel==0.42.0 # via pip-tools xarray==2023.1.0 - # via pynxtools + # via + # pynxtools + # pynxtools-xps (pyproject.toml) zarr==2.16.1 # via hyperspy zipfile37==0.1.3 diff --git a/pyproject.toml b/pyproject.toml index 463286d7..064d5735 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,8 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ + "h5py>=3.6.0", + "xarray>=0.20.2", "pynxtools>=0.0.10" ] @@ -37,14 +39,14 @@ dev = [ "mypy", "ruff", "pytest", - "pytest-timeout", "pytest-cov", + "pytest-timeout", "structlog", "types-pyyaml", "types-pytz", "types-requests", "pip-tools", - "pre-commit", + "pre-commit" ] [tool.setuptools.package-data] @@ -55,13 +57,13 @@ version_scheme = "no-guess-dev" local_scheme = "node-and-date" [tool.ruff] -include = ["pynxtools_xps*.py", "tests/*.py"] +include = ["pynxtools_xps/*.py", "tests/*.py"] select = [ "E", # pycodestyle "W", # pycodestyle "PL", # pylint ] -ignore = [ +lint.ignore = [ "E501", # Line too long ({width} > {limit} characters) "E701", # Multiple statements on one line (colon) "E731", # Do not assign a lambda expression, use a def