@@ -99,9 +99,7 @@ def venv_bin(self, filename=None):
99
99
return os .path .join (* parts )
100
100
101
101
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."""
105
103
return os .path .join (
106
104
self .venv_path (),
107
105
'environment.json' ,
@@ -137,7 +135,7 @@ def is_obsolete(self):
137
135
return False
138
136
139
137
# 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
141
139
142
140
# If the user define the Python version just as a major version
143
141
# (e.g. ``2`` or ``3``) we won't know exactly which exact version was
@@ -149,11 +147,9 @@ def is_obsolete(self):
149
147
])
150
148
151
149
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."""
155
151
# 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
157
153
158
154
data = {
159
155
'python' : {
@@ -167,7 +163,6 @@ def save_environment_json(self):
167
163
json .dump (data , fpath )
168
164
169
165
170
-
171
166
class Virtualenv (PythonEnvironment ):
172
167
173
168
"""
0 commit comments