Skip to content

Changing flake8 to have max-line-length of 115 #8362

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

Merged
merged 5 commits into from
Mar 2, 2023

Conversation

ollie-iterators
Copy link
Contributor

Type of Changes

Type
πŸ› Bug fix
✨ New feature
βœ“ πŸ”¨ Refactoring
πŸ“œ Docs

Description

Changing flake8 to have a max-line-length of 115 because there are issues with changing it to 103. This makes the code easier to understand.

Refs #XXXX

Closes #XXXX

@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 Feb 28, 2023
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #8362 (65654f4) into main (cbdf7af) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8362   +/-   ##
=======================================
  Coverage   95.56%   95.56%           
=======================================
  Files         178      178           
  Lines       18763    18766    +3     
=======================================
+ Hits        17930    17933    +3     
  Misses        833      833           
Impacted Files Coverage Ξ”
pylint/checkers/base/basic_checker.py 97.87% <ΓΈ> (ΓΈ)
pylint/config/arguments_provider.py 94.87% <ΓΈ> (ΓΈ)
pylint/extensions/confusing_elif.py 100.00% <ΓΈ> (ΓΈ)
pylint/extensions/typing.py 97.67% <ΓΈ> (ΓΈ)
pylint/lint/run.py 86.36% <ΓΈ> (ΓΈ)
pylint/reporters/text.py 87.05% <ΓΈ> (ΓΈ)
pylint/checkers/utils.py 95.83% <100.00%> (ΓΈ)
pylint/config/config_initialization.py 100.00% <100.00%> (ΓΈ)
pylint/testutils/_primer/primer_compare_command.py 96.34% <100.00%> (ΓΈ)
pylint/testutils/lint_module_test.py 84.61% <100.00%> (ΓΈ)
... and 2 more

@github-actions

This comment has been minimized.

@ollie-iterators
Copy link
Contributor Author

Is there anything that needs to be done for this PR to be merged?

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for the cleanup ! It's hard to know when the MR is ready if you push new commits periodically and don't tell us when it's ready ;)

@Pierre-Sassoulas
Copy link
Member

The pre-commit fail seems genuine and not caused by my suggestion.

@github-actions

This comment has been minimized.

@ollie-iterators
Copy link
Contributor Author

Strange, when I check out the file that has an error, 'pylint/config/config_initialization.py', it says that it only has 124 lines, and the pre-commit error is about lines 127 and 128.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

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

This comment was generated for commit 65654f4

@Pierre-Sassoulas
Copy link
Member

This seem like a pre-commit.ci bug, maybe due to bad caching. It works locally too.

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