Skip to content

Pin flake8 to version 4.x to avoid pytest-flake8 breakage#598

Merged
osma merged 1 commit intomasterfrom
fix-pin-flake8-version4
Aug 2, 2022
Merged

Pin flake8 to version 4.x to avoid pytest-flake8 breakage#598
osma merged 1 commit intomasterfrom
fix-pin-flake8-version4

Conversation

@osma
Copy link
Copy Markdown
Member

@osma osma commented Aug 2, 2022

This PR fixes a recently surfaced incompatibility that causes CI tests to fail. pytest-flake8 (version 1.1.1) is not compatible with flake8 version 5, released a few days ago. The PR pins the version of flake8 to 4.x, which fixes the issue for now but is probably not a good long term solution.

I think we need to reconsider the use of pytest-flake8. Many folks seem to be abandoning this flaky (heh) integration and instead switching to a setup where flake8 is run outside pytest. I will open a separate issue about this.

@osma osma added this to the 0.58 milestone Aug 2, 2022
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 2, 2022

Codecov Report

Merging #598 (340ce58) into master (aa50441) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #598   +/-   ##
=======================================
  Coverage   99.48%   99.48%           
=======================================
  Files          86       86           
  Lines        5636     5636           
=======================================
  Hits         5607     5607           
  Misses         29       29           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa50441...340ce58. Read the comment docs.

@osma osma merged commit 90007d7 into master Aug 2, 2022
@osma osma deleted the fix-pin-flake8-version4 branch August 2, 2022 12:04
juhoinkinen added a commit that referenced this pull request Aug 3, 2022
Merge to include pytest-flake8 fix #598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant