Avoid bikeshedding about the best way to suppress flake8 messages

This commit is contained in:
Kovid Goyal 2019-04-24 23:46:24 +05:30
parent 8b56f1ced6
commit d5846282a9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -6,6 +6,7 @@
# full list see the documentation:
# https://www.sphinx-doc.org/en/master/config
import importlib
import os
import re
import subprocess
@ -25,8 +26,7 @@ from sphinx.util.logging import getLogger
kitty_src = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if kitty_src not in sys.path:
sys.path.insert(0, kitty_src)
if True:
from kitty.constants import str_version
str_version = importlib.import_module('kitty.constants').str_version
# config {{{
# -- Project information -----------------------------------------------------