From 2b0e3abb40175752854f15a3e20e223fd42929c3 Mon Sep 17 00:00:00 2001 From: "Andrew S. Rosen" Date: Sat, 13 Apr 2024 16:25:55 -0700 Subject: [PATCH] Update pyproject.toml --- pyproject.toml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f907de..7471b29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ requires-python = ">=3.9, <3.13" dependencies = ["numpy"] [project.optional-dependencies] -dev = ["codecov-cli>=0.4.1", "pytest>=7.4.0", "pytest-cov>=3.0.0", "ruff>=0.0.285"] +dev = ["pytest>=7.4.0", "pytest-cov>=3.0.0", "ruff>=0.0.285"] docs = [ "mkdocs-material>=9.4.0", "mkdocstrings[python]>=0.22.0", @@ -83,49 +83,52 @@ exclude_also = [ [tool.ruff] lint.select = [ + "A", # flake8-builtins + "ARG", # flake8-unused-arguments + "ASYNC", # flake8-async "B", # flake8-bugbear "C4", # flake8-comprehensions + "DTZ", # flake8-datetimez "E", # pycodestyle error "EXE", # flake8-executable "F", # pyflakes "FA", # flake8-future-annotations - "FBT003", # boolean-positional-value-in-call "FLY", # flynt "I", # isort "ICN", # flake8-import-conventions + "INT", # flake8-gettext + "ISC", # flake8-implicit-str-concat + "LOG", # flake8-logging + "NPY", # numpy-specific rules "PD", # pandas-vet "PERF", # perflint "PIE", # flake8-pie "PL", # pylint "PT", # flake8-pytest-style - "PYI", # flakes8-pyi + "PTH", # flake8-use-pathlib + "PYI", # flake8-pyi "Q", # flake8-quotes "RET", # flake8-return "RSE", # flake8-raise "RUF", # Ruff-specific rules "SIM", # flake8-simplify "SLOT", # flake8-slots + "T20", # flake8-print "TCH", # flake8-type-checking "TID", # flake8-tidy-imports + "TRIO", # flake8-trio "UP", # pyupgrade "W", # pycodestyle warning "YTT", # flake8-2020 ] lint.ignore = [ - "PLR", # Design related pylint codes "E501", # Line too long - "B028", # No explicit stacklevel - "EM101", # Exception must not use a string literal - "EM102", # Exception must not use an f-string literal - "G004", # f-string in Logging statement - "RUF015", # Prefer next(iter()) - "RET505", # Unnecessary `elif` after `return` - "PT004", # Fixture does not return anthing - "B017", # pytest.raises + "PLR", # Design related pylint codes + "PT004", # Fixture does not return anything "PT011", # pytest.raises "PT012", # pytest.raises + "RET505", # Unnecessary `elif` after `return` ] -lint.typing-modules = ["mypackage._compat.typing"] src = ["src"] lint.unfixable = [ "T20", # Removes print statements @@ -134,10 +137,11 @@ lint.unfixable = [ lint.pydocstyle.convention = "numpy" lint.isort.known-first-party = ["template"] lint.isort.required-imports = ["from __future__ import annotations"] +extend-include = ["*.ipynb"] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] -"tests/**" = ["ANN201", "D", "E402", "S101"] +"tests/**" = ["ANN", "ARG", "D", "E402", "PTH", "S101"] [tool.docformatter] pre-summary-newline = true