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

Install linting tools with Poetry in CI/CD pipeline #656

Merged
merged 3 commits into from
Jan 2, 2023

Conversation

juhoinkinen
Copy link
Member

@juhoinkinen juhoinkinen commented Dec 22, 2022

As discussed in #650, this PR switches installing isort and Black from PyPI with Poetry (instead of using the GH Actions) and flake8 with Poetry, so now the versions of these tools are the same in CI/CD and in local installations (maybe depending on the Python versions in the environments; in CI/CD linting job I chose to use Python 3.10). Also this approach might be a little more secure way to install the tools as it does not rely on the GH Actions.

Downside is longer and more complex definition.

@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

Base: 99.55% // Head: 99.55% // No change to project coverage 👍

Coverage data is based on head (3632bfe) compared to base (45be34d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #656   +/-   ##
=======================================
  Coverage   99.55%   99.55%           
=======================================
  Files          87       87           
  Lines        6006     6006           
=======================================
  Hits         5979     5979           
  Misses         27       27           

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@juhoinkinen juhoinkinen force-pushed the drop-linting-gh-actions branch from c6a6f61 to 3632bfe Compare December 22, 2022 08:23
@sonarqubecloud
Copy link

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
No Duplication information No Duplication information

@juhoinkinen juhoinkinen added this to the 0.60 milestone Dec 22, 2022
@juhoinkinen juhoinkinen marked this pull request as ready for review December 22, 2022 09:10
@juhoinkinen juhoinkinen changed the title Use linting tools installed with Poetry in CI/CD pipeline Install linting tools with Poetry in CI/CD pipeline Dec 22, 2022
@juhoinkinen juhoinkinen merged commit 6644c7d into master Jan 2, 2023
@juhoinkinen juhoinkinen deleted the drop-linting-gh-actions branch January 2, 2023 10:11
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