Skip to content

Commit 4121905

Browse files
committed
Make lint happy?
1 parent 86f8899 commit 4121905

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ private_*
5454
readthedocs/htmlcov
5555
tags
5656
.python-version
57+
.tool-versions
5758
*.pyo
5859
.pytest_cache/
5960
scripts/travis/elasticsearch*
@@ -66,6 +67,8 @@ venv/
6667
ENV/
6768
env.bak/
6869
venv.bak/
70+
.direnv/
71+
.envrc
6972

7073
dev.db-journal
7174
/readthedocs/settings/build_docker.py

docs/conf.py

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@
1818

1919
sys.path.insert(0, os.path.abspath('..'))
2020
sys.path.append(os.path.dirname(__file__))
21-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.dev")
22-
23-
from django.utils import timezone
24-
25-
import django
26-
django.setup()
21+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'readthedocs.settings.dev')
2722

23+
try:
24+
# Nesting in try to avoid isort inflicting unwanted changes. It tries to
25+
# move these imports above the very necessary sys.path manipulation.
26+
import django
27+
from django.utils import timezone
28+
django.setup()
29+
except ImportError:
30+
raise
2831

2932
# Set here the variables you want for each docset.
3033
docsets = {
@@ -67,7 +70,7 @@
6770
copyright = '2010-{}, Read the Docs, Inc & contributors'.format(
6871
timezone.now().year
6972
)
70-
version = "7.4.2"
73+
version = '7.4.2'
7174
release = version
7275
exclude_patterns = ['_build']
7376
default_role = 'obj'
@@ -92,15 +95,15 @@
9295
'rtd-dev': ('https://dev.readthedocs.io/en/latest/', None),
9396
}
9497
myst_enable_extensions = [
95-
"deflist",
98+
'deflist',
9699
]
97100
hoverxref_intersphinx = [
98-
"sphinx",
99-
"pip",
100-
"nbsphinx",
101-
"myst-nb",
102-
"ipywidgets",
103-
"jupytext",
101+
'sphinx',
102+
'pip',
103+
'nbsphinx',
104+
'myst-nb',
105+
'ipywidgets',
106+
'jupytext',
104107
]
105108
htmlhelp_basename = 'ReadTheDocsdoc'
106109
latex_documents = [

readthedocs/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Read the Docs."""
22

3-
import os.path
43

5-
__version__ = "7.4.2"
4+
__version__ = '7.4.2'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = Read the Docs builds and hosts documentation
66
author = Read the Docs, Inc
77
author_email = [email protected]
88
url = http://readthedocs.org
9-
classifiers =
9+
classifiers =
1010
Development Status :: 5 - Production/Stable
1111
Environment :: Web Environment
1212
Intended Audience :: Developers

0 commit comments

Comments
 (0)