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

[pre-commit] Add ruff specific rules in ruff configuration #8449

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Mar 13, 2023

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

Depends on #8448, permitted to detect astral-sh/ruff#3496

@Pierre-Sassoulas Pierre-Sassoulas added Blocked 🚧 Blocked by a particular issue Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry labels Mar 13, 2023
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #8449 (9cfb80c) into main (0d463f6) will not change coverage.
The diff coverage is 90.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8449   +/-   ##
=======================================
  Coverage   95.73%   95.73%           
=======================================
  Files         174      174           
  Lines       18396    18396           
=======================================
  Hits        17612    17612           
  Misses        784      784           
Impacted Files Coverage Ξ”
pylint/reporters/ureports/nodes.py 94.66% <0.00%> (ΓΈ)
pylint/checkers/base/basic_checker.py 97.87% <100.00%> (ΓΈ)
pylint/checkers/stdlib.py 96.70% <100.00%> (ΓΈ)
pylint/checkers/typecheck.py 96.45% <100.00%> (ΓΈ)
pylint/checkers/utils.py 95.87% <100.00%> (ΓΈ)
pylint/checkers/variables.py 97.36% <100.00%> (ΓΈ)
pylint/config/find_default_config_files.py 89.47% <100.00%> (ΓΈ)
pylint/lint/expand_modules.py 95.18% <100.00%> (ΓΈ)
pylint/lint/parallel.py 92.64% <100.00%> (ΓΈ)
pylint/lint/pylinter.py 96.12% <100.00%> (ΓΈ)

DanielNoord
DanielNoord previously approved these changes Mar 14, 2023
@@ -25,7 +25,7 @@
DeprecationDict = Dict[Tuple[int, int, int], Set[str]]

OPEN_FILES_MODE = ("open", "file")
OPEN_FILES_FUNCS = OPEN_FILES_MODE + ("read_text", "write_text")
OPEN_FILES_FUNCS = (*OPEN_FILES_MODE, "read_text", "write_text")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I actually like this style, but oh well

@github-actions
Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 9cfb80c

@Pierre-Sassoulas Pierre-Sassoulas merged commit 1eef227 into pylint-dev:main Mar 14, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the add-ruff-rules branch March 14, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants