From b99741a80d816747a317733270ff5b5e964154ae Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 20 Nov 2024 07:47:44 -0500 Subject: [PATCH] style: update ruff configs (#371) * https://github.com/GenomicMedLab/software-templates/pull/54 * https://github.com/GenomicMedLab/software-templates/pull/58 * https://github.com/GenomicMedLab/software-templates/pull/67 --- pyproject.toml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4e00933..4023333 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -174,17 +174,33 @@ ignore = [ # ANN102 - missing-type-cls # F401 - unused-import # N805 - invalid-first-argument-name-for-method -# S101 - assert # D100 - undocumented-public-module +# D102 - undocumented-public-class # D103 - undocumented-public-function +# S101 - assert +# B011 - assert-false # I001 - unsorted-imports # INP001 - implicit-namespace-package # ARG001 - unused-function-argument # SLF001 - private-member-acces -"tests/*" = ["ANN001", "ANN2", "ANN102", "S101", "INP001", "SLF001", "ARG001"] +"tests/*" = [ + "ANN001", + "ANN2", + "ANN102", + "D100", + "D102", + "S101", + "B011", + "INP001", + "SLF001", + "ARG001", +] "*__init__.py" = ["F401"] "gene/schemas.py" = ["ANN001", "ANN201", "N805"] "docs/source/conf.py" = ["D100", "I001", "D103", "ANN201", "ANN001"] +[tool.ruff.lint.flake8-annotations] +mypy-init-return = true + [tool.ruff.format] docstring-code-format = true