Skip to content

Commit 6d5bd16

Browse files
committed
Use config file for codespell
This allows running it without tox.
1 parent afcecd4 commit 6d5bd16

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = .tox,.venv,*.de.html,*.de.rst
3+
quiet-level = 2

.github/workflows/test_with_tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- run: pip install tox
1818
- run: tox -e py
1919
- if: matrix.python == 3.9
20-
run: TOXENV=codespell,flake8,manifest,docs tox
20+
run: TOXENV=flake8,manifest,docs,spell tox

tests/test_steady_db.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ def test_connection(self):
237237
self.assertTrue(cursor.valid)
238238
self.assertEqual(db._usage, 1)
239239
self.assertEqual(db._con.num_uses, 1)
240-
cursor.execute('set doit')
240+
cursor.execute('set this')
241241
db.commit()
242-
cursor.execute('set dont')
242+
cursor.execute('set that')
243243
db.rollback()
244244
self.assertEqual(
245-
db._con.session, ['doit', 'commit', 'dont', 'rollback'])
245+
db._con.session, ['this', 'commit', 'that', 'rollback'])
246246

247247
def test_connection_context_handler(self):
248248
db = SteadyDBconnect(

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,35,36,37,38,39}, flake8, manifest, docs
2+
envlist = py{27,35,36,37,38,39}, flake8, manifest, docs, spell
33

44
[testenv]
55
setenv =
@@ -8,11 +8,11 @@ deps = pytest
88
commands =
99
pytest {posargs}
1010

11-
[testenv:codespell]
11+
[testenv:spell]
1212
basepython = python3.9
1313
deps = codespell
1414
commands =
15-
codespell --ignore-words-list="dont'" --quiet-level=2 --skip="./.*,./docs/main.de.*"
15+
codespell .
1616

1717
[testenv:flake8]
1818
basepython = python3.9

0 commit comments

Comments
 (0)