From 40abfe222b43501fff080844e45f117ee18e13d7 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 15:39:11 -0400 Subject: [PATCH 1/7] Fix by ruff with new settings --- src/pyfaradaycup/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pyfaradaycup/__init__.py b/src/pyfaradaycup/__init__.py index cc4c886..188e0be 100644 --- a/src/pyfaradaycup/__init__.py +++ b/src/pyfaradaycup/__init__.py @@ -6,5 +6,4 @@ def hello() -> str: >>> 6 * 9 54 """ - return "Hello from pyfaradaycup!" From f5e614c25c1a9caae06541f61d30c0de75263713 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 15:39:29 -0400 Subject: [PATCH 2/7] Add ruff rules from PlasmaPy --- pyproject.toml | 301 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 301 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f53e0bc..2cade12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,307 @@ zizmor = [ "zizmor>=1.29", ] +[tool.ruff] +target-version = "py312" +namespace-packages = [ ".github/workflows", "docs" ] +extend-exclude = [ + ".hypothesis", + ".idea", + ".jupyter", + "__pycache__", + "_dev", +] +show-fixes = true +output-format = "grouped" +format.line-ending = "lf" +format.docstring-code-format = true +# Using an IDE like PyCharm with a ruff plugin will make rule names appear as inlay hints +lint.extend-select = [ + "A", + "ANN", + "ARG", + "ASYNC", + "B", + "BLE", + "C4", + "C90", + "COM", + "D", + # enable DOC rule set when it is no longer in preview + "DTZ", + "E", + "EM", + "EXE", + "F", + "FA", + "FBT", + "FIX", + "FLY", + "FURB", + "G", + "I", + "ICN", + "INP", + "INT", + "ISC", + "LOG", + "N", + "NPY", + "PD", + "PERF", + "PGH", + "PIE", + "PLC", + "PLE", + "PLR", + "PLW", + "PT", + "PTH", + "PYI", + "Q", + "RET", + "RSE", + "RUF001", + "RUF002", + "RUF003", + "RUF005", + "RUF006", + "RUF007", + "RUF008", + "RUF009", + "RUF010", + "RUF012", + "RUF013", + "RUF015", + "RUF016", + "RUF017", + "RUF018", + "RUF019", + "RUF020", + "RUF021", + "RUF022", + "RUF023", + "RUF024", + "RUF026", + "RUF028", + "RUF030", + "RUF032", + "RUF033", + "RUF034", + "RUF036", + "RUF037", + "RUF040", + "RUF041", + "RUF043", + "RUF046", + "RUF048", + "RUF049", + "RUF051", + "RUF053", + "RUF057", + "RUF058", + "RUF059", + "RUF060", + "RUF061", + "RUF063", + "RUF064", + "RUF068", + "RUF100", + "RUF101", + "RUF102", + "RUF103", + "RUF104", + "RUF200", + "S", + "SIM", + "SLF", + "SLOT", + "T10", + "T20", + "TC", + "TD", + "TID", + "TRY", + "UP", + "W", + "YTT", +] +lint.ignore = [ + "ANN001", # add file-wide ignore comments? + "COM812", # handled by ruff format + "COM819", # adding trailing commas leads to simpler diffs + "D200", # incompatible with multiline short summaries + "D203", # handled by ruff format + "D205", # incompatible with multiline short summaries + "D206", # handled by ruff format + "D300", # handled by ruff format + "D401", # enable later? + "E111", # handled by ruff format + "E114", # handled by ruff format + "E117", # handled by ruff format + "E501", # handled by ruff format + "EM101", # enable later in focused PR + "EM102", # enable later in focused PR + "N802", # inconsistent with capitalization from physics notation + "N803", # inconsistent with capitalization from physics notation + "N806", # inconsistent with capitalization from physics notation + "N816", # inconsistent with capitalization from physics notation + "PLC2401", # flags variables used as mathematical symbols + "PLC2403", # flags variables used as mathematical symbols + "PLE0605", # flags `__all__ += __lite_funcs` + "PLR0913", # too many situations where lots of arguments are justified + "PLR2004", # would need case-by-case evaluations + "PT011", # would require using match keyword argument + "PT012", # enable later? + "PT019", # enable later? + "PYI024", # enable later? + "Q001", # handled by ruff format + "Q002", # handled by ruff format + "Q003", # handled by ruff format + "Q004", # handled by ruff format + "RET505", # enable later? + "RET506", # enable later? + "TD002", # enable later? + "TD003", # enable later? + "TRY003", # enable later? + "W191", # handled by ruff format +] +lint.extend-per-file-ignores."**/*.ipynb" = [ "T201", "T203" ] +lint.extend-per-file-ignores.".github/scripts/*.py" = [ "D103", "INP001" ] +lint.extend-per-file-ignores."__init__.py" = [ "D104", "E402", "F401", "F402", "F403" ] # ignore import errors +lint.extend-per-file-ignores."docs/conf.py" = [ "D100", "D103", "E402", "EXE001", "EXE005", "F401" ] +# Most ruff rule violations in the following files should eventually be fixed +lint.extend-per-file-ignores."docs/notebooks/analysis/fit_functions.ipynb" = [ "NPY002" ] +lint.extend-per-file-ignores."docs/notebooks/analysis/nullpoint.ipynb" = [ "D103" ] +lint.extend-per-file-ignores."docs/notebooks/analysis/swept_langmuir/find_floating_potential.ipynb" = [ "FBT003" ] +lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_film_stacks.ipynb" = [ + "B007", + "PTH123" +] +lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing.ipynb" = [ + "D103", + "E741", +] +lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_custom_source.ipynb" = [ + "NPY002", +] +lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_wire_mesh.ipynb" = [ + "D103", +] +lint.extend-per-file-ignores."docs/notebooks/diagnostics/thomson_fitting.ipynb" = [ "NPY002", "PD011" ] +lint.extend-per-file-ignores."docs/notebooks/dispersion/dispersion_function.ipynb" = [ "D103" ] +lint.extend-per-file-ignores."docs/notebooks/dispersion/stix_dispersion.ipynb" = [ "FBT003" ] +lint.extend-per-file-ignores."docs/notebooks/formulary/cold_plasma_tensor_elements.ipynb" = [ "FBT003" ] +lint.extend-per-file-ignores."docs/notebooks/formulary/ExB_drift.ipynb" = [ "B008", "D103" ] +lint.extend-per-file-ignores."docs/notebooks/langmuir_samples/_generate_noisy.ipynb" = [ "ANN202", "NPY002", "PTH123" ] +lint.extend-per-file-ignores."docs/notebooks/plasma/grids_cartesian.ipynb" = [ "NPY002", "PLW2901" ] +lint.extend-per-file-ignores."docs/notebooks/plasma/grids_nonuniform.ipynb" = [ "NPY002" ] +lint.extend-per-file-ignores."setup.py" = [ "D100" ] +lint.extend-per-file-ignores."src/plasmapy/analysis/fit_functions.py" = [ "D301" ] +lint.extend-per-file-ignores."src/plasmapy/analysis/swept_langmuir/__init__.py" = [ "E402" ] +lint.extend-per-file-ignores."src/plasmapy/formulary/braginskii.py" = [ "C901", "RET503", "RET504" ] +lint.extend-per-file-ignores."src/plasmapy/plasma/sources/*.py" = [ "D102" ] +lint.extend-per-file-ignores."src/plasmapy/utils/_pytest_helpers/pytest_helpers.py" = [ "BLE001", "PLR", "SLF001" ] +lint.extend-per-file-ignores."tests/**/__init__.py" = [ "D104" ] +lint.extend-per-file-ignores."tests/**/test_*.py" = [ + "D100", + "D101", + "D102", + "D103", + "D104", + "D209", + "D400", + "D401", + "DOC201", + "DOC501", + "INP001", + "N801", + "N802", + "PLC2701", + "PLR6301", + "RUF012", + "S101", + "SLF001", +] +lint.extend-per-file-ignores."tests/formulary/collisions/test_coulomb.py" = [ "PT031" ] +lint.extend-per-file-ignores."tests/formulary/test_distribution.py" = [ "ARG005" ] +lint.extend-per-file-ignores."tests/formulary/test_transport.py" = [ "PT031" ] +lint.extend-per-file-ignores."tests/particles/test_decorators.py" = [ "ARG001", "ARG002" ] +lint.extend-per-file-ignores."tests/utils/_pytest_helpers/test_pytest_helpers.py" = [ "BLE001", "TRY002" ] +lint.extend-per-file-ignores."tests/utils/decorators/test_converters.py" = [ "ARG001", "ARG005" ] +# Allow potentially ambiguous Unicode characters with valid uses in plasma science +lint.allowed-confusables = [ + "×", + "–", + "′", + "∨", + "∪", + "∼", + "⊤", + "α", + "ℂ", + "ℰ", + "ℱ", + "γ", + "ℎ", + "ι", + "ℐ", + "ℑ", + "ℒ", + "ℓ", + "ℳ", + "ν", + "ℕ", + "ο", + "𝒪", + "ℚ", + "ρ", + "ℜ", + "ℝ", + "σ", + "τ", + "β", + "υ", + "ℤ", +] +lint.dummy-variable-rgx = "^(Z|mass_numb|request|event|_.*)$" +lint.flake8-annotations.allow-star-arg-any = true +lint.flake8-annotations.ignore-fully-untyped = true +lint.flake8-annotations.suppress-dummy-args = true +lint.flake8-annotations.suppress-none-returning = true +lint.flake8-import-conventions.aliases."astropy.constants" = "const" +lint.flake8-import-conventions.aliases."astropy.units" = "u" +lint.flake8-import-conventions.aliases."matplotlib.pyplot" = "plt" +lint.flake8-import-conventions.aliases.matplotlib = "mpl" +lint.flake8-import-conventions.aliases.numpy = "np" +lint.flake8-import-conventions.aliases.pandas = "pd" +lint.flake8-import-conventions.banned-from = [ + "astropy.units", + "matplotlib.pyplot", + "numpy", + "pytest", + "warnings", +] +lint.flake8-tidy-imports.ban-relative-imports = "all" +lint.flake8-tidy-imports.banned-api."typing.Callable".msg = "Deprecated alias. Change to collections.abc.Callable" +lint.flake8-tidy-imports.banned-api."typing.Collection".msg = "Deprecated alias. Change to collections.abc.Collection" +lint.flake8-tidy-imports.banned-api."typing.DefaultDict".msg = "Deprecated alias. Change to collections.defaultdict" +lint.flake8-tidy-imports.banned-api."typing.Dict".msg = "Deprecated alias. Change to dict" +lint.flake8-tidy-imports.banned-api."typing.Generator".msg = "Deprecated alias. Change to collections.abc.Generator" +lint.flake8-tidy-imports.banned-api."typing.Iterable".msg = "Deprecated alias. Change to collections.abc.Iterable" +lint.flake8-tidy-imports.banned-api."typing.Iterator".msg = "Deprecated alias. Change to collections.abc.Iterator" +lint.flake8-tidy-imports.banned-api."typing.List".msg = "Deprecated alias. Change to list" +lint.flake8-tidy-imports.banned-api."typing.Mapping".msg = "Deprecated alias. Change to collections.abc.mapping" +lint.flake8-tidy-imports.banned-api."typing.MutableMapping".msg = "Deprecated alias. Change to collections.abc.MutableMapping" +lint.flake8-tidy-imports.banned-api."typing.Sequence".msg = "Deprecated alias. Change to collections.abc.Sequence" +lint.flake8-tidy-imports.banned-api."typing.Set".msg = "Deprecated alias. Change to set" +lint.flake8-tidy-imports.banned-api."typing.Tuple".msg = "Deprecated alias. Change to tuple" +lint.flake8-tidy-imports.banned-api."typing.Type".msg = "Deprecated alias. Change to type" +lint.flake8-unused-arguments.ignore-variadic-names = true +lint.isort.known-first-party = [ "plasmapy" ] +lint.mccabe.max-complexity = 10 +lint.pydocstyle.convention = "numpy" + [tool.pytest] # https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml addopts = [ "--dist=loadfile", From b3f0199ef9e155249c9c38dbdebe49fca5a23b80 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 15:48:10 -0400 Subject: [PATCH 3/7] ruff fixes --- noxfile.py | 2 +- tests/test_placeholder.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index d53e259..de9f0ff 100644 --- a/noxfile.py +++ b/noxfile.py @@ -47,7 +47,7 @@ def tests(session: nox.Session) -> None: @nox_uv.session(uv_groups=["dev"]) -def typecheck(session) -> None: +def typecheck(session: nox.Session) -> None: """Perform static type checking with ty.""" session.install(".") session.run("ty", "check", *session.posargs or ["--fix"]) diff --git a/tests/test_placeholder.py b/tests/test_placeholder.py index 1212a97..1a181e4 100644 --- a/tests/test_placeholder.py +++ b/tests/test_placeholder.py @@ -2,4 +2,8 @@ def test_placeholder(): - assert 42 != 6 * 9 + """ + Test the question to the ultimate answer of meaning of life, the + universe, and everything. + """ + assert 42 != 6 * 9 # ruff:ignore[PLR2004] From c8ad9386feb4c304d02602d1e9fe53fadcfd7948 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 15:49:46 -0400 Subject: [PATCH 4/7] Update ruff configuration This removes some settings that were specific to PlasmaPy, whilst removing some exceptions to rules that we can implement from the beginning. --- pyproject.toml | 70 -------------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2cade12..39959e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -178,7 +178,6 @@ lint.extend-select = [ "YTT", ] lint.ignore = [ - "ANN001", # add file-wide ignore comments? "COM812", # handled by ruff format "COM819", # adding trailing commas leads to simpler diffs "D200", # incompatible with multiline short summaries @@ -186,100 +185,31 @@ lint.ignore = [ "D205", # incompatible with multiline short summaries "D206", # handled by ruff format "D300", # handled by ruff format - "D401", # enable later? "E111", # handled by ruff format "E114", # handled by ruff format "E117", # handled by ruff format "E501", # handled by ruff format - "EM101", # enable later in focused PR - "EM102", # enable later in focused PR - "N802", # inconsistent with capitalization from physics notation - "N803", # inconsistent with capitalization from physics notation - "N806", # inconsistent with capitalization from physics notation - "N816", # inconsistent with capitalization from physics notation "PLC2401", # flags variables used as mathematical symbols "PLC2403", # flags variables used as mathematical symbols - "PLE0605", # flags `__all__ += __lite_funcs` - "PLR0913", # too many situations where lots of arguments are justified - "PLR2004", # would need case-by-case evaluations "PT011", # would require using match keyword argument - "PT012", # enable later? - "PT019", # enable later? - "PYI024", # enable later? "Q001", # handled by ruff format "Q002", # handled by ruff format "Q003", # handled by ruff format "Q004", # handled by ruff format - "RET505", # enable later? - "RET506", # enable later? - "TD002", # enable later? - "TD003", # enable later? - "TRY003", # enable later? "W191", # handled by ruff format ] -lint.extend-per-file-ignores."**/*.ipynb" = [ "T201", "T203" ] lint.extend-per-file-ignores.".github/scripts/*.py" = [ "D103", "INP001" ] lint.extend-per-file-ignores."__init__.py" = [ "D104", "E402", "F401", "F402", "F403" ] # ignore import errors lint.extend-per-file-ignores."docs/conf.py" = [ "D100", "D103", "E402", "EXE001", "EXE005", "F401" ] -# Most ruff rule violations in the following files should eventually be fixed -lint.extend-per-file-ignores."docs/notebooks/analysis/fit_functions.ipynb" = [ "NPY002" ] -lint.extend-per-file-ignores."docs/notebooks/analysis/nullpoint.ipynb" = [ "D103" ] -lint.extend-per-file-ignores."docs/notebooks/analysis/swept_langmuir/find_floating_potential.ipynb" = [ "FBT003" ] -lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_film_stacks.ipynb" = [ - "B007", - "PTH123" -] -lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing.ipynb" = [ - "D103", - "E741", -] -lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_custom_source.ipynb" = [ - "NPY002", -] -lint.extend-per-file-ignores."docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_wire_mesh.ipynb" = [ - "D103", -] -lint.extend-per-file-ignores."docs/notebooks/diagnostics/thomson_fitting.ipynb" = [ "NPY002", "PD011" ] -lint.extend-per-file-ignores."docs/notebooks/dispersion/dispersion_function.ipynb" = [ "D103" ] -lint.extend-per-file-ignores."docs/notebooks/dispersion/stix_dispersion.ipynb" = [ "FBT003" ] -lint.extend-per-file-ignores."docs/notebooks/formulary/cold_plasma_tensor_elements.ipynb" = [ "FBT003" ] -lint.extend-per-file-ignores."docs/notebooks/formulary/ExB_drift.ipynb" = [ "B008", "D103" ] -lint.extend-per-file-ignores."docs/notebooks/langmuir_samples/_generate_noisy.ipynb" = [ "ANN202", "NPY002", "PTH123" ] -lint.extend-per-file-ignores."docs/notebooks/plasma/grids_cartesian.ipynb" = [ "NPY002", "PLW2901" ] -lint.extend-per-file-ignores."docs/notebooks/plasma/grids_nonuniform.ipynb" = [ "NPY002" ] -lint.extend-per-file-ignores."setup.py" = [ "D100" ] -lint.extend-per-file-ignores."src/plasmapy/analysis/fit_functions.py" = [ "D301" ] -lint.extend-per-file-ignores."src/plasmapy/analysis/swept_langmuir/__init__.py" = [ "E402" ] -lint.extend-per-file-ignores."src/plasmapy/formulary/braginskii.py" = [ "C901", "RET503", "RET504" ] -lint.extend-per-file-ignores."src/plasmapy/plasma/sources/*.py" = [ "D102" ] -lint.extend-per-file-ignores."src/plasmapy/utils/_pytest_helpers/pytest_helpers.py" = [ "BLE001", "PLR", "SLF001" ] lint.extend-per-file-ignores."tests/**/__init__.py" = [ "D104" ] lint.extend-per-file-ignores."tests/**/test_*.py" = [ - "D100", - "D101", - "D102", - "D103", - "D104", - "D209", - "D400", - "D401", "DOC201", "DOC501", "INP001", - "N801", - "N802", "PLC2701", - "PLR6301", - "RUF012", "S101", "SLF001", ] -lint.extend-per-file-ignores."tests/formulary/collisions/test_coulomb.py" = [ "PT031" ] -lint.extend-per-file-ignores."tests/formulary/test_distribution.py" = [ "ARG005" ] -lint.extend-per-file-ignores."tests/formulary/test_transport.py" = [ "PT031" ] -lint.extend-per-file-ignores."tests/particles/test_decorators.py" = [ "ARG001", "ARG002" ] -lint.extend-per-file-ignores."tests/utils/_pytest_helpers/test_pytest_helpers.py" = [ "BLE001", "TRY002" ] -lint.extend-per-file-ignores."tests/utils/decorators/test_converters.py" = [ "ARG001", "ARG005" ] # Allow potentially ambiguous Unicode characters with valid uses in plasma science lint.allowed-confusables = [ "×", From aaf8802f6eb5a5411f512f82d012d44815aca6ed Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 15:54:59 -0400 Subject: [PATCH 5/7] Remove more settings --- pyproject.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 39959e0..9eec817 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ lint.extend-select = [ "C90", "COM", "D", - # enable DOC rule set when it is no longer in preview + "DOC", # in preview and not enabled as of August 2026 "DTZ", "E", "EM", @@ -191,14 +191,12 @@ lint.ignore = [ "E501", # handled by ruff format "PLC2401", # flags variables used as mathematical symbols "PLC2403", # flags variables used as mathematical symbols - "PT011", # would require using match keyword argument "Q001", # handled by ruff format "Q002", # handled by ruff format "Q003", # handled by ruff format "Q004", # handled by ruff format "W191", # handled by ruff format ] -lint.extend-per-file-ignores.".github/scripts/*.py" = [ "D103", "INP001" ] lint.extend-per-file-ignores."__init__.py" = [ "D104", "E402", "F401", "F402", "F403" ] # ignore import errors lint.extend-per-file-ignores."docs/conf.py" = [ "D100", "D103", "E402", "EXE001", "EXE005", "F401" ] lint.extend-per-file-ignores."tests/**/__init__.py" = [ "D104" ] @@ -245,7 +243,6 @@ lint.allowed-confusables = [ "υ", "ℤ", ] -lint.dummy-variable-rgx = "^(Z|mass_numb|request|event|_.*)$" lint.flake8-annotations.allow-star-arg-any = true lint.flake8-annotations.ignore-fully-untyped = true lint.flake8-annotations.suppress-dummy-args = true From 9c4051d62b5004738e7ab810650dab337e40fb93 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 16:00:51 -0400 Subject: [PATCH 6/7] Add return annotation --- tests/test_placeholder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_placeholder.py b/tests/test_placeholder.py index 1a181e4..d78dfdc 100644 --- a/tests/test_placeholder.py +++ b/tests/test_placeholder.py @@ -1,7 +1,7 @@ """Placeholder tests that shouldst be deleted after actual tests are added.""" -def test_placeholder(): +def test_placeholder() -> None: """ Test the question to the ultimate answer of meaning of life, the universe, and everything. From 497ef99d1d2b235575ce0c40b3570daea5dbd70c Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Wed, 26 Aug 2026 16:00:57 -0400 Subject: [PATCH 7/7] Adjust ruff notation --- pyproject.toml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9eec817..271c05e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,14 +56,12 @@ zizmor = [ target-version = "py312" namespace-packages = [ ".github/workflows", "docs" ] extend-exclude = [ - ".hypothesis", + ".code", ".idea", - ".jupyter", "__pycache__", - "_dev", ] show-fixes = true -output-format = "grouped" +# output-format = "grouped" format.line-ending = "lf" format.docstring-code-format = true # Using an IDE like PyCharm with a ruff plugin will make rule names appear as inlay hints @@ -243,10 +241,6 @@ lint.allowed-confusables = [ "υ", "ℤ", ] -lint.flake8-annotations.allow-star-arg-any = true -lint.flake8-annotations.ignore-fully-untyped = true -lint.flake8-annotations.suppress-dummy-args = true -lint.flake8-annotations.suppress-none-returning = true lint.flake8-import-conventions.aliases."astropy.constants" = "const" lint.flake8-import-conventions.aliases."astropy.units" = "u" lint.flake8-import-conventions.aliases."matplotlib.pyplot" = "plt" @@ -275,9 +269,7 @@ lint.flake8-tidy-imports.banned-api."typing.Sequence".msg = "Deprecated alias. C lint.flake8-tidy-imports.banned-api."typing.Set".msg = "Deprecated alias. Change to set" lint.flake8-tidy-imports.banned-api."typing.Tuple".msg = "Deprecated alias. Change to tuple" lint.flake8-tidy-imports.banned-api."typing.Type".msg = "Deprecated alias. Change to type" -lint.flake8-unused-arguments.ignore-variadic-names = true -lint.isort.known-first-party = [ "plasmapy" ] -lint.mccabe.max-complexity = 10 +lint.isort.known-first-party = [ "pyfaradaycup" ] lint.pydocstyle.convention = "numpy" [tool.pytest] # https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml