[tor-commits] [sbws/maint-1.1] fix: tests: Add codespell configuration

juga at torproject.org juga at torproject.org
Thu Mar 18 08:10:18 UTC 2021


commit f6b40b7fa22c4f3574ad297b64f7f13b3b938a7d
Author: juga0 <juga at riseup.net>
Date:   Wed Mar 17 12:44:25 2021 +0000

    fix: tests: Add codespell configuration
---
 setup.cfg | 4 ++++
 tox.ini   | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index 578a389..2ba9548 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -40,6 +40,7 @@ install_requires =
 [options.extras_require]
 test =
   black
+  codespell
   coverage
   flake8
   flake8-docstrings
@@ -78,6 +79,9 @@ max-line-length = 79
 extend-ignore = E203, W503, D1, D2, D4
 exclude = docs/*,sbws/_version.py,sbws/__init__.py,versioneer.py
 
+[codespell]
+skip = versioneer.py,sbws/_version.py,sbws/util/iso3166.py,tests/data,*.puml,*.svg,docs/build,docs/source/proposals,docs/source/torflow_aggr.rst
+
 [coverage:run]
 # Do not give error on empty __init__ files
 omit = */__init__.py
diff --git a/tox.ini b/tox.ini
index 3a4fb27..87d0828 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@ envlist =
     black,
     isort,
     flake8,
+    codespell,
     doc,
     stats
 
@@ -62,6 +63,12 @@ deps = flake8-docstrings
 commands =
   flake8 sbws tests
 
+[testenv:codespell]
+skip_install = True
+deps = codespell
+commands =
+  codespell sbws tests docs
+
 [testenv:clean]
 skip_install = True
 deps = coverage





More information about the tor-commits mailing list