Skip to content
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

Ignore more rules for stub files #14541

Merged
merged 7 commits into from
Nov 23, 2024
Merged

Ignore more rules for stub files #14541

merged 7 commits into from
Nov 23, 2024

Conversation

dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Nov 22, 2024

This PR causes the following rules to ignore stub files, on the grounds that it is not under the author's control to appease these lints:

Progress towards #14535

@MichaReiser MichaReiser added the rule Implementing or modifying a lint rule label Nov 22, 2024
Copy link
Contributor

github-actions bot commented Nov 22, 2024

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+0 -19 violations, +0 -0 fixes in 2 projects; 52 projects unchanged)

apache/airflow (+0 -3 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --no-preview --select ALL

- airflow/decorators/__init__.pyi:185:9: PLR0913 Too many arguments in function definition (9 > 5)
- airflow/decorators/__init__.pyi:379:9: PLR0913 Too many arguments in function definition (47 > 5)
- airflow/decorators/__init__.pyi:537:9: PLR0913 Too many arguments in function definition (59 > 5)

bokeh/bokeh (+0 -16 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --no-preview --select ALL

- src/typings/IPython/core/history.pyi:5:38: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:6:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:8:38: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:9:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/bs4.pyi:21:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:14:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:15:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:16:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:17:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:4:5: PLR0913 Too many arguments in function definition (13 > 5)
- src/typings/json5.pyi:6:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:7:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:8:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:9:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/selenium/webdriver/support/expected_conditions.pyi:103:43: FBT001 Boolean-typed positional argument in function definition
- src/typings/selenium/webdriver/support/expected_conditions.pyi:99:45: FBT001 Boolean-typed positional argument in function definition

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
FBT001 15 0 15 0 0
PLR0913 4 0 4 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+0 -23 violations, +0 -0 fixes in 2 projects; 52 projects unchanged)

apache/airflow (+0 -4 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

- airflow/decorators/__init__.pyi:185:9: PLR0913 Too many arguments in function definition (9 > 5)
- airflow/decorators/__init__.pyi:379:9: PLR0913 Too many arguments in function definition (47 > 5)
- airflow/decorators/__init__.pyi:537:9: PLR0913 Too many arguments in function definition (59 > 5)
- airflow/decorators/__init__.pyi:67:1: PLR0904 Too many public methods (26 > 20)

bokeh/bokeh (+0 -19 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

- src/typings/IPython/core/history.pyi:5:38: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:6:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:8:38: FBT001 Boolean-typed positional argument in function definition
- src/typings/IPython/core/history.pyi:9:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/bs4.pyi:21:9: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:14:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:15:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:16:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:17:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:4:5: PLR0913 Too many arguments in function definition (13 > 5)
- src/typings/json5.pyi:4:5: PLR0917 Too many positional arguments (13/5)
- src/typings/json5.pyi:6:5: FBT001 Boolean-typed positional argument in function definition
- src/typings/json5.pyi:7:5: FBT001 Boolean-typed positional argument in function definition
... 6 additional changes omitted for rule FBT001
- src/typings/selenium/webdriver/remote/webelement.pyi:21:1: PLR0904 Too many public methods (22 > 20)

Changes by rule (4 rules affected)

code total + violation - violation + fix - fix
FBT001 16 0 16 0 0
PLR0913 4 0 4 0 0
PLR0904 2 0 2 0 0
PLR0917 1 0 1 0 0

@dylwil3 dylwil3 enabled auto-merge (squash) November 23, 2024 07:37
@dylwil3 dylwil3 merged commit e1838aa into astral-sh:main Nov 23, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants