Skip to content

Commit

Permalink
fix: fix ruff issues and update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
reindervdw-cmi committed Sep 30, 2024
1 parent 846f4a5 commit 6bbd034
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fail_fast: false

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.6.8
hooks:
- id: ruff
- id: ruff-format
Expand Down
62 changes: 21 additions & 41 deletions poetry.lock

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

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pytest = "^8.0.2"
mypy = "^1.8.0"
pre-commit = "^3.6.2"
pytest-cov = "^4.1.0"
ruff = "^0.2.2"
ruff = "^0.6"
pytest-mock = "^3.12.0"
vulture = "^2.11"

Expand Down Expand Up @@ -105,10 +105,10 @@ indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # Allow assets
"ARG", # Unused arguments are common in tests (fixtures).
Expand Down
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest configuration file."""

import datetime
from collections.abc import Generator

Expand All @@ -9,7 +10,7 @@
from actigraphy.database import database, models


@pytest.fixture()
@pytest.fixture
def session(in_memory_db: database.Database) -> Generator[orm.Session, None, None]:
"""Returns a database session in memory.
Expand Down Expand Up @@ -50,7 +51,7 @@ def _fill_database(session: orm.Session) -> None:
session.commit()


@pytest.fixture()
@pytest.fixture
def file_manager() -> dict[str, str]:
"""Return a file manager dictionary."""
return {
Expand Down

0 comments on commit 6bbd034

Please sign in to comment.