Skip to content

Commit d38b5c3

Browse files
committed
Fix linting errors
1 parent e99673a commit d38b5c3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ def venv_bin(self, filename=None):
9999
return os.path.join(*parts)
100100

101101
def environment_json_path(self):
102-
"""
103-
Return the path to the ``environment.json`` file for this venv.
104-
"""
102+
"""Return the path to the ``environment.json`` file for this venv."""
105103
return os.path.join(
106104
self.venv_path(),
107105
'environment.json',
@@ -137,7 +135,7 @@ def is_obsolete(self):
137135
return False
138136

139137
# TODO: remove getattr when https://github.com/rtfd/readthedocs.org/pull/3339 got merged
140-
build_image = getattr(self.config, 'build_image', self.version.project.container_image) or DOCKER_IMAGE
138+
build_image = getattr(self.config, 'build_image', self.version.project.container_image) or DOCKER_IMAGE # noqa
141139

142140
# If the user define the Python version just as a major version
143141
# (e.g. ``2`` or ``3``) we won't know exactly which exact version was
@@ -149,11 +147,9 @@ def is_obsolete(self):
149147
])
150148

151149
def save_environment_json(self):
152-
"""
153-
Save on disk Python and build image versions used to create the venv.
154-
"""
150+
"""Save on disk Python and build image versions used to create the venv."""
155151
# TODO: remove getattr when https://github.com/rtfd/readthedocs.org/pull/3339 got merged
156-
build_image = getattr(self.config, 'build_image', self.version.project.container_image) or DOCKER_IMAGE
152+
build_image = getattr(self.config, 'build_image', self.version.project.container_image) or DOCKER_IMAGE # noqa
157153

158154
data = {
159155
'python': {
@@ -167,7 +163,6 @@ def save_environment_json(self):
167163
json.dump(data, fpath)
168164

169165

170-
171166
class Virtualenv(PythonEnvironment):
172167

173168
"""

0 commit comments

Comments
 (0)