diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ada4ba..00310d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install .[dev] + pip install .[test] - name: Test with pytest run: | python -m pytest diff --git a/pyproject.toml b/pyproject.toml index 807fcb0..5efed12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,11 @@ dependencies=[ [project.optional-dependencies] dev = [ "pytest", + "ruff", + "ruff-lsp", +] +test = [ + "pytest", ] [project.scripts] @@ -63,6 +68,23 @@ src = ["", "tests"] select = ["ALL"] [tool.ruff.lint.per-file-ignores] +"*" = [ + # ANN001: Missing type annotation for public function + "ANN101", + + # ANN204: Missing return type annotation for __init__ + "ANN204", + + # D100: Missing docstring in public module + "D100", + + # D107: Missing docstring in __init__ + "D107", + + # ANN001: Missing type annotation for public function + "ANN101", +] + "tests/*" = [ # S101: Check for assert "S101", @@ -73,9 +95,6 @@ select = ["ALL"] # ANN201: Missing return type annotation for public function "ANN201", - # D100: Missing docstring in public module - "D100", - # D103: Missing docstring in public function "D103",