Skip to content

Commit

Permalink
Improve codespell support: adjust and concentrate config to pyproject…
Browse files Browse the repository at this point in the history
….toml and fix more typos (#2583)

Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
  • Loading branch information
yarikoptic authored Aug 6, 2024
1 parent da50206 commit d6675be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ repos:
"--write",
]
language: python
additional_dependencies:
- tomli

# python
- repo: https://github.com/psf/black
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,10 @@ files.extend-exclude = ["_build", "*/build/*", "*/node_modules/*", "nebari.egg-i
default.extend-ignore-re = ["(?Rm)^.*(#|//)\\s*typos: ignore$"]
default.extend-ignore-words-re = ["aks", "AKS"]
default.check-filename = false # Turn off initially, enable once https://github.com/nebari-dev/nebari/issues/2598 is addressed

[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '_build,*/build/*,*/node_modules/*,nebari.egg-info,*.git,package-lock.json,*.lock'
check-hidden = true
ignore-regex = '^\s*"image/\S+": ".*'
ignore-words-list = 'aks'
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"refId": "A"
}
],
"title": "Buliding",
"title": "Building",
"type": "stat"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Comitted",
"legendFormat": "Committed",
"refId": "C"
},
{
Expand Down

0 comments on commit d6675be

Please sign in to comment.