Skip to content

Commit 37b6baf

Browse files
sync: update from python-copier-template
1 parent 7e25892 commit 37b6baf

3 files changed

Lines changed: 136 additions & 47 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,9 @@ repos:
5757
require_serial: true
5858
language: unsupported
5959
pass_filenames: false
60+
- id: deptry
61+
name: deptry
62+
entry: uv run deptry .
63+
language: unsupported
64+
always_run: true
65+
pass_filenames: false

pyproject.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,32 @@ select = [
5454
"C404", # flake8-comprehensions: unnecessary-list-comprehension-dict
5555
"C405", # flake8-comprehensions: unnecessary-literal-set
5656
"W605", # pycodestyle: invalid-escape-sequence
57+
"S", # flake8-bandit (security)
58+
"RUF", # ruff-specific rules
59+
"T20", # flake8-print (no print statements)
60+
"PT", # flake8-pytest-style
61+
"A", # flake8-builtins (no builtin shadowing)
62+
"PERF", # perflint (performance anti-patterns)
63+
"N", # pep8-naming
64+
"RET", # flake8-return
65+
"PIE", # flake8-pie
66+
"LOG", # flake8-logging
67+
"NPY", # numpy-specific rules
68+
"PD", # pandas-vet
69+
"ISC001", # flake8-implicit-str-concat: single-line implicit string concatenation
70+
"TRY", # tryceratops (exception handling best practices)
71+
"PLE", # pylint errors
72+
"PLW", # pylint warnings
73+
"PLC", # pylint convention
74+
"FAST", # fastapi
5775
]
5876

5977
# Ignore D100 Missing docstring in public module
60-
ignore = ["D100"]
78+
ignore = ["D100", "TRY003"]
6179
[tool.ruff.lint.per-file-ignores]
6280
# Also ignore `D104` in all `__init__.py` files.
6381
"__init__.py" = ["D104"]
64-
"tests/*.py" = ["D"]
82+
"tests/*.py" = ["D", "S101"]
6583

6684
[tool.ruff.lint.pydocstyle]
6785
convention = "numpy"
@@ -84,4 +102,5 @@ dev = [
84102
"prek",
85103
"ipykernel",
86104
"ty",
105+
"deptry>=0.25",
87106
]

0 commit comments

Comments
 (0)