Skip to content

Commit

Permalink
Add a tbump step to automatically normalize line ending (#8942)
Browse files Browse the repository at this point in the history
Permanent solution to #8883
  • Loading branch information
Pierre-Sassoulas authored Aug 9, 2023
1 parent 499646b commit fc97635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/user_guide/checkers/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ See also :ref:`refactoring checker's options' documentation <refactoring-options

Refactoring checker Messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:simplifiable-condition (R1726): *Boolean condition '%s' may be simplified to '%s'*
:simplifiable-condition (R1726): *Boolean condition "%s" may be simplified to "%s"*
Emitted when a boolean condition is able to be simplified.
:condition-evals-to-constant (R1727): *Boolean condition '%s' will always evaluate to '%s'*
Emitted when a boolean condition can be simplified to a constant value.
Expand Down
5 changes: 5 additions & 0 deletions tbump.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ src = "pylint/__pkginfo__.py"
# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made

[[before_commit]]
name = "Normalize file ending"
cmd = "git add --renormalize ."

[[before_commit]]
name = "Upgrade changelog"
cmd = "python3 script/bump_changelog.py {new_version}"
Expand Down

0 comments on commit fc97635

Please sign in to comment.