From 72189aa9cf8df34b3707ff1d3ab930a63c8094b8 Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Thu, 15 Feb 2024 21:35:58 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20Exclude=20unmaintained=20ends?= =?UTF-8?q?tations=20from=20mypy=20ruff=20check.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 2 +- legacy_files/laue/__init__.py | 1 - pyproject.toml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index c1003005..3b8e003d 100644 --- a/TODO.md +++ b/TODO.md @@ -20,4 +20,4 @@ As the original author does not seem to maintain this package, every bug must be - Check type of the argument set at lf.Mmodel: Is it really lf.Model? lf.ModelResult is better? - rye for packaging - - tidiy up yaml files + - tidy up yaml files diff --git a/legacy_files/laue/__init__.py b/legacy_files/laue/__init__.py index 007b5586..5471d290 100644 --- a/legacy_files/laue/__init__.py +++ b/legacy_files/laue/__init__.py @@ -21,7 +21,6 @@ import numpy as np import xarray as xr - from arpes.provenance import provenance_from_file northstar_62_69_dtype = np.dtype( diff --git a/pyproject.toml b/pyproject.toml index f4dfc48c..565c8db9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,10 +111,40 @@ convention = "google" "src/arpes/experiment/__init__.py" = ["ALL"] "src/arpes/workflow.py" = ["T201", "T203"] "src/arpes/fits/lmfit_html_repr.py" = ["SLF001"] # private member accecced +"Elettra_spectromicroscopy.py" = ["ALL"] +"ALG_spin_ToF.py" = ["ALL"] +"ALG_main.py" = ["ALL"] +"ANTARES.py" = ["ALL"] +"MAESTRO.py" = ["ALL"] +"HERS.py" = ["ALL"] +"BL10_SARPES.py" = ["ALL"] +"SSRF_NSRL.py" = ["ALL"] +"MBS.py" = ["ALL"] +"kaindl.py" = ["ALL"] +"merlin.py" = ["ALL"] +"nexus_utils.py" = ["ALL"] +"fits_utils.py" = ["ALL"] + [tool.mypy] ignore_missing_imports = true +exclude = [ + "ALG_spin_ToF\\.py", + "fits_utils\\.py", + "Elettra_spectromicroscopy\\.py", + "ALG_main\\.py", + "ANTARES\\.py", + "MAESTRO\\.py", + "HERS\\.py", + "BL10_SARPES\\.py", + "SSRF_NSRL\\.py", + "MBS\\.py", + "kaindl\\.py", + "merlin\\.py", +] + + [tool.black] line-length = 100