From 1fcc7403403d27741acb0be5222bb74eeff5c53f Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:40:08 +0100 Subject: [PATCH] MAINT: address Ruff and Pyright issues * MAINT: clean up optional dependency sections --- .pre-commit-config.yaml | 1 + pyproject.toml | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 817c167..6227a20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,6 +81,7 @@ repos: - id: toml-sort args: - --in-place + - repo: https://github.com/ComPWA/policy rev: 0.3.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 6710377..ea0696f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,18 +79,9 @@ jupyter = [ "python-lsp-ruff", "python-lsp-server[rope]", ] -lint = [ - "pawian-tools[mypy]", - "ruff", -] -"mypy" = [ - "mypy >=0.730", - "sphinx-api-relink", -] sty = [ - "pawian-tools[format]", - "pawian-tools[lint]", - "pawian-tools[test]", + "mypy >=0.730", + "pawian-tools[types]", "pre-commit", "ruff", ] @@ -101,6 +92,10 @@ test = [ "pytest-profiling", "pytest-xdist", ] +"types" = [ + "pytest", + "sphinx-api-relink", +] [project.readme] content-type = "text/markdown" @@ -175,10 +170,14 @@ exclude = [ "**/__pycache__", "**/_build", ] +reportArgumentType = false +reportAttributeAccessIssue = false reportGeneralTypeIssues = false +reportIndexIssue = false reportMissingParameterType = false reportMissingTypeArgument = false reportMissingTypeStubs = false +reportReturnType = false reportUnknownArgumentType = false reportUnknownLambdaType = false reportUnknownMemberType = false @@ -326,6 +325,7 @@ split-on-trailing-comma = false "PGH001", "PLC2701", "PLR0913", + "PLR0917", "PLR2004", "PLR6301", "S101",