Add pre-commit.ci configs.

This commit is contained in:
Allison Piper
2025-04-14 12:16:04 -04:00
parent 87dd03254f
commit de36f1a248
2 changed files with 94 additions and 0 deletions

24
pyproject.toml Normal file
View File

@@ -0,0 +1,24 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
[tool.ruff]
target-version = "py310"
fix = true
show-fixes = true
exclude = ["docs/tools"]
[tool.ruff.lint]
extend-select = ["I"]
[tool.codespell]
# To run codespell interactively and fix errors that pre-commit reports, try
# `codespell -i 3 -w -H`. This will run with interactive review (-i 3), writes
# changes to disk (-w), and includes hidden files (-H).
# Note: pre-commit passes explicit lists of files here, which this skip file
# list doesn't override - the skip list is only to allow you to run codespell
# interactively.
skip = "./.git,./build,./CITATION.md"
# ignore short words, and typename parameters like OffsetT
ignore-regex = "\\b(.{1,4}|[A-Z]\\w*T)\\b"
ignore-words-list = "inout,imovable,optionN,aCount,quitted,Invokable,countr,unexpect,numer,euclidian,couldn,OffsetT,FromM"
builtin = "clear"
quiet-level = 3