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

[ruff] Add 'flake8-pathlib' disable the messages that need fixing later #9602

Merged
merged 1 commit into from May 7, 2024

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

There's some cleanup to do, but we can wait for ruff to autofix most of it. (We need to be careful when performance is a convern i.e. in loops). In the meantime this will make sure that we don't regress on what's already clean.

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry labels May 6, 2024
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.82%. Comparing base (df5533f) to head (9742dee).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9602   +/-   ##
=======================================
  Coverage   95.82%   95.82%           
=======================================
  Files         173      173           
  Lines       18833    18833           
=======================================
  Hits        18046    18046           
  Misses        787      787           
Files Coverage Ξ”
pylint/config/config_initialization.py 98.88% <100.00%> (ΓΈ)

Copy link
Contributor

github-actions bot commented May 6, 2024

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

This comment was generated for commit 9742dee

@@ -6,7 +6,7 @@

from contributors_txt import create_contributors_txt

CWD = Path(".").absolute()
CWD = Path().absolute()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I actually prefer the old version but that might be personal preference.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you have to know the default value so implicit vs explicit. The worst check is the only one autofixxed.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 1198113 into main May 7, 2024
48 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the ruff-pth branch May 7, 2024 06:50
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.

None yet

2 participants