dvershinin / lastversion

Line too long FLK-E501
Style
Minor
18 days ago2 years old
line too long (91 > 88 characters)
 59        "php": {
 60            "repo": "php/php-src",
 61            # get URL from the official website because it is a "prepared" source
 62            "release_url_format": "https://www.php.net/distributions/php-{version}.tar.gz", 63        },
 64        "linux": {"repo": "torvalds/linux"},
 65        "kernel": {"repo": "torvalds/linux"},
line too long (94 > 88 characters)
198        ):
199            if self.rate_limited_count > 2:
200                raise ApiCredentialsError(
201                    f"API requests were denied after retrying {self.rate_limited_count} times"202                )
203            remaining = int(r.headers["X-RateLimit-Remaining"])
204            # One sec to account for skewed clock between GitHub and client
line too long (93 > 88 characters)
239                return repo_arg
240            if len(repo_components) < cls.REPO_URL_PROJECT_COMPONENTS:
241                raise ValueError(
242                    f"Repo arg {repo_arg} does not have enough components for {cls.__name__}"243                )
244            return "/".join(
245                repo_components[
line too long (128 > 88 characters)
228            return repo_arg
229        if not repo_arg and cls.REPO_URL_PROJECT_COMPONENTS > 0:
230            raise ValueError(
231                f"Repo arg {repo_arg} does not have enouh URI components ({cls.REPO_URL_PROJECT_COMPONENTS}) for {cls.__name__}"232            )
233        if cls.REPO_URL_PROJECT_COMPONENTS >= 1:
234            repo_components = repo_arg.split("/")
line too long (94 > 88 characters)
195                if wait_for < 300:
196                    if wait_for < 0:
197                        log.warning(
198                            "Exceeded API quota. Repeating request because quota is about to "199                            "be reinstated"
200                        )
201                    else: