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

Add Flake8-pyproject to fix python annotation workflow #6123

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Sep 20, 2023

Approach
Add Flake8-pyproject to fix python annotation workflow

Pre review checklist

  • Read through the code changes carefully after finishing work
  • Make sure tests pass locally (after every commit!)
  • Prepare changes in small commits for more convenient review (optional)
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Updated documentation
  • Ensured that unit tests are added for all new behavior (See
    Ground Rules),
    and changes to existing code have good test coverage.

Pre merge checklist

  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.

@JHolba JHolba added the release-notes:skip If there should be no mention of this in release notes label Sep 20, 2023
@JHolba JHolba force-pushed the fix-flake8-workflow branch from 264a5c2 to 5223121 Compare September 20, 2023 11:57
@@ -18,7 +18,7 @@ jobs:
with:
python-version: "3.11"
- name: Install flake8
run: pip install flake8 flake8-bugbear flake8-simplify flake8-debugger flake8-pep3101
run: pip install flake8 flake8-bugbear flake8-simplify flake8-debugger flake8-pep3101 Flake8-pyproject
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be simplified into pip install -r style-requirements.txt and then only -pep3101 and -debugger is needed

Copy link
Contributor

Choose a reason for hiding this comment

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

If @dafeda beats you, there will probably be a pip install .[style] or something similar instead of style-requirements.txt.

Copy link
Contributor

Choose a reason for hiding this comment

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

That is indeed the plan 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you want me to wait or close this PR then @dafeda?

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2023

Codecov Report

Merging #6123 (acd92f5) into main (1a4d3f4) will increase coverage by 41.28%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #6123       +/-   ##
===========================================
+ Coverage   41.17%   82.45%   +41.28%     
===========================================
  Files          20      350      +330     
  Lines        2186    21442    +19256     
  Branches      834      834               
===========================================
+ Hits          900    17680    +16780     
- Misses        988     3464     +2476     
  Partials      298      298               

see 330 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JHolba JHolba force-pushed the fix-flake8-workflow branch from 5223121 to acd92f5 Compare September 20, 2023 12:36
Copy link
Contributor

@dafeda dafeda left a comment

Choose a reason for hiding this comment

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

No reason to wait I think.

@JHolba JHolba merged commit 4fb8f62 into equinor:main Sep 20, 2023
39 checks passed
@JHolba JHolba deleted the fix-flake8-workflow branch September 20, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:skip If there should be no mention of this in release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants