Skip to content

Commit 27a9136

Browse files
committed
pre-commit and codespell tweaks
1 parent 5bea1e0 commit 27a9136

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: "docs/_legacy/"
34
repos:
45
- repo: https://github.com/PyCQA/bandit
56
rev: '1.9.4'
@@ -46,9 +47,10 @@ repos:
4647
rev: v2.4.1
4748
hooks:
4849
- id: codespell
49-
args: ["-L", "nd,hart,elemente,wirth"]
50+
args: ["-L", "ba,som,xWindows"] # ignore some variable names
5051
additional_dependencies:
5152
- tomli
53+
exclude: "docs/doxyrest-config.lua.in"
5254
- repo: https://github.com/psf/black
5355
rev: 26.3.1
5456
hooks:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ Repository = "https://github.com/IntelPython/dpctl.git"
8686
exclude = "dpctl/_version.py"
8787
line-length = 80
8888

89+
[tool.codespell]
90+
builtin = "clear,rare,informal,names"
91+
check-filenames = true
92+
ignore-words-list = "nd"
93+
quiet-level = 3
94+
8995
[tool.coverage.report]
9096
omit = [
9197
"dpctl/tests/*",

0 commit comments

Comments
 (0)