Skip to content

Commit

Permalink
Fix flake8 so it runs and then fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Dec 24, 2024
1 parent d229ec7 commit 8d37908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sphinx_js/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def fix_staticfunction_objtype():
from sphinx.domains.javascript import JavaScriptDomain, JSObject
from sphinx.locale import _

if "staticfunction" in JavaScriptDomain.object_types:
if 'staticfunction' in JavaScriptDomain.object_types:
return
JavaScriptDomain.object_types["staticfunction"] = ObjType(_('static function'), 'func')
JavaScriptDomain.object_types['staticfunction'] = ObjType(_('static function'), 'func')

orig_get_index_text = JSObject.get_index_text

Expand Down
1 change: 1 addition & 0 deletions tests/test_build_js/test_build_js.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from sphinx import __version__ as sphinx_version

from tests.testing import SphinxBuildTestCase


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ commands =
[testenv:flake8]
# Pinned so new checks aren't added by surprise:
deps =
flake8>=3.8,<3.9
flake8==7.1.1
flake8-quotes
flake8-import-order
skip_install=True
Expand Down

0 comments on commit 8d37908

Please sign in to comment.