dvershinin / lastversion

Line too long FLK-E501
Style
Minor
2 months ago2 years old
line too long (91 > 88 characters)
 58        "php": {
 59            "repo": "php/php-src",
 60            # get URL from the official website because it is a "prepared" source
 61            "release_url_format": "https://www.php.net/distributions/php-{version}.tar.gz", 62        },
 63        "linux": {"repo": "torvalds/linux"},
 64        "kernel": {"repo": "torvalds/linux"},
line too long (94 > 88 characters)
197        ):
198            if self.rate_limited_count > 2:
199                raise ApiCredentialsError(
200                    f"API requests were denied after retrying {self.rate_limited_count} times"201                )
202            remaining = int(r.headers["X-RateLimit-Remaining"])
203            # One sec to account for skewed clock between GitHub and client
line too long (106 > 88 characters)
101        "Programming Language :: Python :: 3.12",
102    ],
103    python_requires='>=3.6',
104    keywords="version, release, latest, stable, pypi, github, gitlab, bitbucket, mercurial, hg, wordpress"105)
line too long (93 > 88 characters)
 56
 57base_dir = os.path.join(os.path.dirname(__file__), "src")
 58
 59with open(os.path.join(base_dir, "lastversion", "__about__.py"), "r", encoding="utf-8") as f: 60    version = _version_re.search(f.read()).group(1)
 61
 62setup(
line too long (93 > 88 characters)
238                return repo_arg
239            if len(repo_components) < cls.REPO_URL_PROJECT_COMPONENTS:
240                raise ValueError(
241                    f"Repo arg {repo_arg} does not have enough components for {cls.__name__}"242                )
243            return "/".join(
244                repo_components[