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
2 changes: 1 addition & 1 deletion examples/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This extend our general Ruff rules specifically for the examples
extend = "../pyproject.toml"

extend-ignore = [
lint.extend-ignore = [
"T201", # Allow the use of print() in examples
]
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pylint = "3.1.0"
pytest = "7.4.4"
pytest-asyncio = "0.23.5.post1"
pytest-cov = "4.1.0"
ruff = "0.2.2"
ruff = "0.3.2"
safety = "3.0.1"
syrupy = "4.6.1"
types-cachetools = "5.3.0.7"
Expand Down Expand Up @@ -136,7 +136,7 @@ max-line-length=88
addopts = "--cov"
asyncio_mode = "auto"

[tool.ruff]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Self... explanatory
Expand All @@ -152,19 +152,19 @@ ignore = [
"ISC001",
]

[tool.ruff.flake8-pytest-style]
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = false
fixture-parentheses = false

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["radios"]

[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = [
"mashumaro.mixins.orjson.DataClassORJSONMixin",
]

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 25

[build-system]
Expand Down
1 change: 1 addition & 0 deletions src/radios/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous Python client for the Radio Browser APIs."""

from .const import FilterBy, Order
from .exceptions import (
RadioBrowserConnectionError,
Expand Down
1 change: 1 addition & 0 deletions src/radios/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models for the Radio Browser API."""

# pylint: disable=too-few-public-methods
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions src/radios/radio_browser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous Python client for the Radio Browser API."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous Python client for the Radio Browser API."""

from pathlib import Path


Expand Down
4 changes: 2 additions & 2 deletions tests/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"

extend-select = [
lint.extend-select = [
"PT", # Use @pytest.fixture without parentheses
]

extend-ignore = [
lint.extend-ignore = [
"S101", # Use of assert detected. As these are tests...
"SLF001", # Tests will access private/protected members...
"TCH002", # pytest doesn't like this one...
Expand Down
1 change: 1 addition & 0 deletions tests/test_radios.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous Python client for the Radio Browser API."""

# pylint: disable=protected-access
import aiohttp
from aresponses import ResponsesMockServer
Expand Down