Skip to content

Commit

Permalink
Add typos package and configuration for spell checking
Browse files Browse the repository at this point in the history
Make checking typos part of lint tests.
  • Loading branch information
153957 committed Oct 8, 2023
1 parent 7f6737c commit d5faa2b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ coveragetests: unittests
.PHONY: linttest
linttest:
ruff check .
typos .

.PHONY: doctest
doctest:
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,14 @@ omit = [
show_missing = true
skip_empty = true
skip_covered = true

[tool.typos.files]
extend-exclude = [
'publicdb/default/static/scripts/',
'provisioning/roles/openvpn/files/dnsmasq.conf',
'provisioning/roles/openvpn/files/openvpn/',
'provisioning/roles/openvpn/files/openvpn/README.md', # Dutch
]

[tool.typos.default.extend-words]
sur = 'sur'
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# lint & format
ruff==0.0.292
typos==1.16.17

# unittests
coverage
Expand Down

0 comments on commit d5faa2b

Please sign in to comment.