Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update pylint pre-commit hook to support py3.13 venvs#4590

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

nemacysts
Copy link
Contributor

Without this change, runningpre-commit inside a Python 3.13 venv results in errors as described inpylint-dev/pylint#10000

e.g.:

************* Module telegram._bottelegram/_bot.py:26:0: E0611: No name 'Sequence' in module 'collections.abc' (no-name-in-module)

Bumping this hook required ignoring a new check added in pylint 3.3.0:too-many-positional-arguments as there's a significant amount of violations and picking a value for--max-positional-arguments seems non-trivial as there are functions with 80+ args (e.g.,Message::__init__() intelegram/_message.py)

  • run pre-commit
  • run tests
  • add self to AUTHORS.rst

Without this change, running `pre-commit` inside a Python 3.13 venvresults in errors as described inpylint-dev/pylint#10000e.g.:```************* Module telegram._bottelegram/_bot.py:26:0: E0611: No name 'Sequence' in module 'collections.abc' (no-name-in-module)```Bumping this hook required ignoring a new check added in pylint 3.3.0:`too-many-positional-arguments` as there's a significant amount ofviolations and picking a value for `--max-positional-arguments` seemsnon-trivial as there are functions with 80+ args (e.g.,`Message::__init__()` in `telegram/_message.py`)
@Bibo-JoshiBibo-Joshi merged commit3709c2f intopython-telegram-bot:masterDec 4, 2024
22 checks passed
@Bibo-Joshi
Copy link
Member

Thank you for the contribution!

nemacysts reacted with hooray emoji

@Bibo-JoshiBibo-Joshi added ⚙️ dependenciesaffected functionality: dependencies 🛠 code-qualitychange type: code-quality labelsDec 4, 2024
cuevasrja pushed a commit to USB-CI3715/python-telegram-bot that referenced this pull requestDec 9, 2024
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 12, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@harshil21harshil21harshil21 approved these changes

Assignees
No one assigned
Labels
🛠 code-qualitychange type: code-quality⚙️ dependenciesaffected functionality: dependencies
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@nemacysts@Bibo-Joshi@harshil21

[8]ページ先頭

©2009-2025 Movatter.jp