-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock pydocstyle
to <6.2.
#38
Lock pydocstyle
to <6.2.
#38
Conversation
Pydocstyle is a pylama dependency. However pylama doesn't support the newest pydocstyle version. See klen/pylama#232. * poetry.lock: Update. * pyproject.toml: Lock pydocstyle version.
Isort must be updated since the latest poetry version rejects its configuration. See #2077.
Hi @real-yfprojects, thank you for submitting this update!
|
I checked out your branch and ran
any idea why? I am surprised to see that since it worked fine locally. |
Pylama fails on my machine too. Did you sync your poetry environment with the lock file? |
I reviewed the errors from the failed linting pipeline... their critique is legitimate. It boils down to the following three problems that are luckily easy to fix: 1.) To solve # we should use this definition:
class InvalidWheelFilename(ValueError):
"""An invalid wheel filename was found, users should refer to PEP 427."""
# instead of:
InvalidWheelFilename = Exception 2.) To solve @classmethod
def from_python_version_and_arch(
cls, minor_version: Optional[int] = None, arch="x86_64"
) -> Platform: 3.) The same solution applies to @classmethod
def _cp3_linux_tags(
cls, minor_version: Optional[int] = None, arch="x86_64"
) -> Generator[str, None, None]: ...the above changes should make pylint and mypy happy again... can you implement them in your branch to get the CI green again? |
Of course. I was wondering though, why the ci didn't fail for previous commits/PRs. I didn't introduce these linting errors. |
thank you for pointing it out... that was the missing step :-) |
my guess is that this has to do with updated dependencies. your pull request updates mypy. and mypy's output states explicitely that they changed their behavior to forbid implicit optionals:
|
Ah yes, pylint also introduced new checks with |
What do you think about sync_with_poetry? |
* .pre-commit-config.yaml * poetry.lock: Updated by `poetry-lock` hook.
* req2flatpak.py : Add `InvalidWheelFilename` exception. * req2flatpak.py: Adjust type hints of `from_python_version_and_arch` and `_cp3_linux_tags`.
looks good! (I always found it weird to maintain different sets of package versions for pre-commit hooks versus other dev dependencies). if you are willing to give it a try, go at it! |
Pydocstyle is a pylama dependency. However pylama doesn't support the newest pydocstyle version. See klen/pylama#232.
poetry.lock: Update.
pyproject.toml: Lock pydocstyle version.
update isort hook