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
13 changes: 13 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
target-version = "py312"

[lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations (ANN)
"COM812", # missing-trailing-comma
"D", # pydocstyle (D)
"RET504", # Unnecessary assignment to X before `return` statement
]

[lint.per-file-ignores]
"tests/**" = ["S101"] # assert is expected in tests
2 changes: 1 addition & 1 deletion src/git_commit_guard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import re
import subprocess
import sys
import tomllib
from argparse import ArgumentParser
from dataclasses import dataclass, field
from enum import StrEnum
from pathlib import Path

import nltk
import tomllib
from nltk.corpus import wordnet

TYPES = frozenset(
Expand Down
3 changes: 1 addition & 2 deletions tests/test_git_commit_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from unittest.mock import MagicMock, patch

import pytest

from git_commit_guard import (
Result,
_download_if_missing,
Expand All @@ -21,8 +22,6 @@
main,
)

# ruff: noqa: S101 # Use of `assert` detected


@pytest.fixture(scope="session", autouse=True)
def nltk_data():
Expand Down
Loading