Skip to content

Commit

Permalink
Added ruff to the pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephine-Rutten authored and Josephine.Rutten committed Oct 28, 2024
1 parent 51cd87a commit 4916854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ repos:
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix, --show-fixes ]
exclude: (alembic/.*)
2 changes: 1 addition & 1 deletion src/cnaas_nms/db/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from urllib.parse import urldefrag

import yaml
from git.exc import GitCommandError, NoSuchPathError

from cnaas_nms.app_settings import app_settings
from cnaas_nms.db.device import Device, DeviceType
Expand All @@ -28,7 +29,6 @@
from cnaas_nms.tools.event import add_event
from cnaas_nms.tools.log import get_logger
from git import InvalidGitRepositoryError, Repo
from git.exc import GitCommandError, NoSuchPathError


class RepoType(enum.Enum):
Expand Down

0 comments on commit 4916854

Please sign in to comment.