Skip to content

Commit 8a72588

Browse files
authored
Merge pull request #166 from DeepLabCut/cy/lint-config
Update pre-commit & linting configuration
1 parent 5511f7d commit 8a72588

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v6.0.0
44
hooks:
5-
- id: check-docstring-first
5+
- id: check-added-large-files
6+
- id: check-yaml
7+
- id: check-toml
68
- id: end-of-file-fixer
9+
- id: name-tests-test
710
- id: trailing-whitespace
811
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.14.10
12+
rev: v0.15.4
1013
hooks:
1114
# Run the formatter.
1215
- id: ruff-format
1316
# Run the linter.
1417
- id: ruff-check
1518
args: [--fix,--unsafe-fixes]
1619
- repo: https://github.com/tox-dev/pyproject-fmt
17-
rev: v2.15.2
20+
rev: v2.16.2
1821
hooks:
1922
- id: pyproject-fmt
2023
- repo: https://github.com/abravalheri/validate-pyproject

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ fix = true
8686
[tool.ruff.lint]
8787
select = [ "E", "F", "B", "I", "UP" ]
8888
ignore = [ "E741" ]
89+
[tool.ruff.lint.pydocstyle]
90+
convention = "google"
8991

9092
[tool.pyproject-fmt]
9193
max_supported_python = "3.12"

0 commit comments

Comments
 (0)