Skip to content

Commit 7b8efe3

Browse files
humitosagjohnson
authored andcommitted
Fix linting issues (#3838)
* Fix linting issues * Small lint fix
1 parent 8a34d5e commit 7b8efe3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readthedocs/core/validators.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ def __call__(self, value):
6161
valid_schemes += private_schemes
6262
url = urlparse(value)
6363
if (
64-
(
65-
url.scheme not in valid_schemes and \
66-
'@' not in value and \
64+
( # pylint: disable=too-many-boolean-expressions
65+
url.scheme not in valid_schemes and
66+
'@' not in value and
6767
not value.startswith('lp:')
68-
) or \
68+
) or
6969
(
70-
value.startswith('/') or \
71-
value.startswith('file://') or \
70+
value.startswith('/') or
71+
value.startswith('file://') or
7272
value.startswith('.')
7373
)
7474
):

0 commit comments

Comments
 (0)