mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-24 16:58:52 +00:00
Add pre-commit.ci configs.
This commit is contained in:
24
pyproject.toml
Normal file
24
pyproject.toml
Normal 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
|
||||
Reference in New Issue
Block a user