Skip to content

Commit 50de056

Browse files
authored
Merge pull request #34 from DanielAvdar/pre-c
Enhance docstrings checks & Fix pre-commit execution on commit
2 parents abff33a + 6871431 commit 50de056

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ default: install
66
install:
77
uv sync --all-extras --all-groups --frozen
88
uv tool install pre-commit --with pre-commit-uv --force-reinstall
9+
uv run pre-commit install
910

1011
install-docs:
1112
uv sync --group docs --frozen --no-group dev

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ line-length = 120
6464
include = ["pyproject.toml", "tests/**", ]
6565

6666
[tool.ruff.lint]
67-
select = ["F", "B", "I", "F", "W", "E", "A", "N", "D"]
67+
select = ["F", "B", "I", "F", "W", "E", "A", "N", "D","DOC"]
6868

6969
fixable = ["ALL"]
7070
[tool.ruff.lint.per-file-ignores]
71-
"tests/*" = ["D"]
72-
"docs/*" = ["D"]
71+
"tests/*" = ["D", "DOC"]
72+
"docs/*" = ["D", "DOC"]
7373
[tool.ruff.lint.isort]
7474
combine-as-imports = true
7575
[tool.mypy]

0 commit comments

Comments
 (0)