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

[deprecation] setup.cfgand tox.ini sections need to start by 'pylint' #8465

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
✓ 🔨 Refactoring

Description

Enacting planned deprecations.

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Mar 20, 2023
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.0.0a6 milestone Mar 20, 2023
@@ -41,23 +40,13 @@ def _parse_ini_file(self, file_path: Path) -> tuple[dict[str, str], list[str]]:

config_content: dict[str, str] = {}
options: list[str] = []
ini_file_with_sections = self._ini_file_with_sections(file_path)
Copy link
Member Author

Choose a reason for hiding this comment

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

There's a perf increase here, we calculate the boolean once instead of for each sections 😄

doc/whatsnew/fragments/8464.user_action Outdated Show resolved Hide resolved
DanielNoord
DanielNoord previously approved these changes Mar 20, 2023
@Pierre-Sassoulas Pierre-Sassoulas changed the title [deprecation] ini file sections need to start by 'pylint' [deprecation] setup.cfgand tox.ini sections need to start by 'pylint' Mar 20, 2023
@Pierre-Sassoulas Pierre-Sassoulas enabled auto-merge (squash) March 20, 2023 21:15
@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Merging #8465 (8d2ead2) into main (66f46bf) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8465      +/-   ##
==========================================
- Coverage   95.73%   95.73%   -0.01%     
==========================================
  Files         174      174              
  Lines       18373    18371       -2     
==========================================
- Hits        17589    17587       -2     
  Misses        784      784              
Impacted Files Coverage Δ
pylint/config/config_file_parser.py 100.00% <100.00%> (ø)

@Pierre-Sassoulas Pierre-Sassoulas merged commit a479303 into pylint-dev:main Mar 20, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the deprecate-master-in-configuration branch March 20, 2023 21:56
@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 8d2ead2

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants