Skip to content

Commit 8d37908

Browse files
committed
Fix flake8 so it runs and then fix linting issues
1 parent d229ec7 commit 8d37908

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sphinx_js/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def fix_staticfunction_objtype():
8686
from sphinx.domains.javascript import JavaScriptDomain, JSObject
8787
from sphinx.locale import _
8888

89-
if "staticfunction" in JavaScriptDomain.object_types:
89+
if 'staticfunction' in JavaScriptDomain.object_types:
9090
return
91-
JavaScriptDomain.object_types["staticfunction"] = ObjType(_('static function'), 'func')
91+
JavaScriptDomain.object_types['staticfunction'] = ObjType(_('static function'), 'func')
9292

9393
orig_get_index_text = JSObject.get_index_text
9494

tests/test_build_js/test_build_js.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from sphinx import __version__ as sphinx_version
2+
23
from tests.testing import SphinxBuildTestCase
34

45

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ commands =
3939
[testenv:flake8]
4040
# Pinned so new checks aren't added by surprise:
4141
deps =
42-
flake8>=3.8,<3.9
42+
flake8==7.1.1
4343
flake8-quotes
4444
flake8-import-order
4545
skip_install=True

0 commit comments

Comments
 (0)