Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align ruff settings with main pynx #9

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ click==8.1.7
# pip-tools
# pynxtools
cloudpickle==3.0.0
# via
# dask
# hyperspy
# via dask
comm==0.2.1
# via ipykernel
contourpy==1.2.0
Expand All @@ -47,12 +45,10 @@ cycler==0.12.1
# via matplotlib
dask[array]==2024.2.0
# via
# dask
# hyperspy
# kikuchipy
# orix
# pyxem
# rosettasciio
debugpy==1.8.1
# via ipykernel
decorator==5.1.1
Expand Down Expand Up @@ -112,7 +108,6 @@ h5py==3.10.0
# pynxtools
# pynxtools-mpes (pyproject.toml)
# pyxem
# rosettasciio
# silx
hdf5plugin==4.4.0
# via fabio
Expand Down Expand Up @@ -280,7 +275,6 @@ numpy==1.26.4
# pynxtools
# pyxem
# radioactivedecay
# rosettasciio
# scikit-image
# scikit-learn
# scipy
Expand Down Expand Up @@ -330,9 +324,7 @@ pillow==10.0.1
# nionswift
# scikit-image
pint==0.23
# via
# hyperspy
# rosettasciio
# via hyperspy
pip-tools==7.4.0
# via pynxtools-mpes (pyproject.toml)
platformdirs==4.2.0
Expand All @@ -346,7 +338,6 @@ ply==3.11
# via pycifrw
pooch==1.8.0
# via
# hyperspy
# kikuchipy
# orix
prettytable==3.10.0
Expand Down Expand Up @@ -390,7 +381,6 @@ python-dateutil==2.8.2
# jupyter-client
# matplotlib
# pandas
# rosettasciio
pytz==2024.1
# via
# nionswift
Expand All @@ -407,7 +397,6 @@ pyyaml==6.0.1
# kikuchipy
# pynxtools
# pynxtools-mpes (pyproject.toml)
# rosettasciio
pyzmq==25.1.2
# via
# ipykernel
Expand All @@ -423,7 +412,7 @@ requests==2.31.0
# requests-cache
requests-cache==1.2.0
# via pynxtools
ruff==0.2.2
ruff==0.3.4
# via pynxtools-mpes (pyproject.toml)
scikit-image==0.22.0
# via
Expand Down
1 change: 1 addition & 0 deletions pynxtools_mpes/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
#
"""MPES reader implementation for the DataConverter."""

import errno
import os
from functools import reduce
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"mypy",
"ruff",
"ruff==0.3.4",
"pytest",
"types-pyyaml",
"pip-tools",
Expand All @@ -52,6 +52,10 @@ local_scheme = "node-and-date"

[tool.ruff]
include = ["pynxtools_mpes/*.py", "tests/*.py"]
line-length = 88
indent-width = 4

[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
Expand All @@ -74,6 +78,12 @@ ignore = [
]
fixable = ["ALL"]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.mypy]
strict = false
ignore_missing_imports = true
Expand Down
1 change: 1 addition & 0 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Basic example based test for the stm reader
"""

import logging
import os
import xml.etree.ElementTree as ET
Expand Down
Loading