Skip to content

[MNT] Handle updates to pre-commit linters#120

Merged
fkiraly merged 5 commits into
sktime:mainfrom
RNKuhns:fix_new_flake8_B028_error
Jan 24, 2023
Merged

[MNT] Handle updates to pre-commit linters#120
fkiraly merged 5 commits into
sktime:mainfrom
RNKuhns:fix_new_flake8_B028_error

Conversation

@RNKuhns
Copy link
Copy Markdown
Contributor

@RNKuhns RNKuhns commented Jan 23, 2023

Reference Issues/PRs

Fixes error in #119.

What does this implement/fix? Explain your changes.

There were changes in a few of the linters used in skbase's continuous integration process.

  • pydocstyle moved to the use of tomli or tomllib for parsing pyproject.toml files (we are going to use tomli since tomllib is not available in older Python versions)

  • flake8-bugbear validation B028 was catching cases of manual quotes in string formatting. It caused [pre-commit.ci] pre-commit autoupdate #119 to fail. flake8-bugbear has since moved this to an optional validation. This enables that validation, along with two others. And fixes the resulting items flagged by the CI.

    • Note that B028 was changed to B907. And optional validations B03 and B904 were also turned on. flake8-bugbear readme has a description. This PR includes fixes issues identified by B904.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 23, 2023

Codecov Report

Merging #120 (39d907e) into main (471000d) will not change coverage.
The diff coverage is 14.28%.

@@           Coverage Diff           @@
##             main     #120   +/-   ##
=======================================
  Coverage   77.93%   77.93%           
=======================================
  Files          23       23           
  Lines        1867     1867           
=======================================
  Hits         1455     1455           
  Misses        412      412           
Impacted Files Coverage Δ
skbase/base/_base.py 82.54% <0.00%> (ø)
skbase/base/_meta.py 15.27% <0.00%> (ø)
skbase/lookup/_lookup.py 95.48% <0.00%> (ø)
skbase/testing/utils/deep_equals.py 63.88% <0.00%> (ø)
skbase/testing/utils/_dependencies.py 57.42% <50.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Copy Markdown
Contributor

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Sorry, thought I already approved this.

@fkiraly fkiraly merged commit 4803b2f into sktime:main Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants