Skip to content

Commit

Permalink
chore(deps): update dependency ruff to v0.3.1 (#543)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <[email protected]>
  • Loading branch information
renovate[bot] and xoxys authored Mar 7, 2024
1 parent a2485d8 commit a2f5131
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 25 deletions.
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.

1 change: 1 addition & 0 deletions prometheuspvesd/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Proxmox Client."""

import requests
from prometheus_client import Counter

Expand Down
7 changes: 2 additions & 5 deletions prometheuspvesd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,8 @@ def _validate(self, config):
try:
anyconfig.validate(config, self.schema, ac_schema_safe=False)
except jsonschema.exceptions.ValidationError as e:
schema_error = "Failed validating '{validator}' in schema{schema}\n{message}".format(
validator=e.validator,
schema=format_as_index(list(e.relative_schema_path)[:-1], 0),
message=e.message,
)
schema = format_as_index(list(e.relative_schema_path)[:-1], 0)
schema_error = f"Failed validating '{e.validator}' in schema {schema}\n{e.message}"
raise prometheuspvesd.exception.ConfigError("Configuration error", schema_error) from e

return True
Expand Down
1 change: 1 addition & 0 deletions prometheuspvesd/test/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest conftest fixtures."""

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions prometheuspvesd/test/unit/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test CLI class."""

import json

import pytest
Expand Down
1 change: 1 addition & 0 deletions prometheuspvesd/test/unit/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Config class."""

import pytest
import ruamel.yaml

Expand Down
1 change: 1 addition & 0 deletions prometheuspvesd/test/unit/test_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Host class."""

import pytest

from prometheuspvesd.model import Host
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ requests = "2.31.0"
prometheus-pve-sd = "prometheuspvesd.cli:main"

[tool.poetry.group.dev.dependencies]
ruff = "0.2.2"
ruff = "0.3.1"
pytest = "8.0.2"
pytest-mock = "3.12.0"
pytest-cov = "4.1.0"
Expand Down

0 comments on commit a2f5131

Please sign in to comment.