Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ select = [
]
ignore = ["E501"] # Line too long

[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"] # Allow assert in tests

[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257".

Expand Down
3 changes: 3 additions & 0 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Tests for authentication module."""

# ruff: noqa: S105, S106
# S105/S106: Test credentials use dummy values.

from __future__ import annotations

import base64
Expand Down
4 changes: 2 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Unit tests for the high-level OverkizClient behaviour and responses."""

# ruff: noqa: S101, ASYNC230
# S101: Tests use assert statements
# ruff: noqa: ASYNC230, S106
# S106: Test credentials use dummy values.
# ASYNC230: Blocking open() is acceptable for reading test fixtures

from __future__ import annotations
Expand Down
3 changes: 0 additions & 3 deletions tests/test_enums.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Tests for enum helper behaviour and expected values."""

# ruff: noqa: S101
# Tests use assert statements

from pyoverkiz.enums import (
EventName,
ExecutionSubType,
Expand Down
3 changes: 0 additions & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Unit tests for models (Device, State and States helpers)."""

# ruff: noqa: S101
# Tests use assert statements

from __future__ import annotations

import humps
Expand Down
3 changes: 0 additions & 3 deletions tests/test_obfuscate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Tests for the obfuscation utilities used in fixtures and logging."""

# ruff: noqa: S101
# Tests use assert statements

import pytest

from pyoverkiz.obfuscate import obfuscate_email, obfuscate_sensitive_data
Expand Down
3 changes: 0 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Tests for utility helper functions like server generation and gateway checks."""

# ruff: noqa: S101
# Tests use assert statements

import pytest

from pyoverkiz.utils import create_local_server_config, is_overkiz_gateway
Expand Down