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

pre-commit hook updates #25

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

bencipher
Copy link

Description

Related resources

  • #...
  • #...

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

@codecov
Copy link

codecov bot commented Oct 31, 2022

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 32.10%. Comparing base (b11589f) to head (8c85f39).
Report is 9 commits behind head on master.

Files Patch % Lines
djangocms_transfer/cms_plugins.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   32.19%   32.10%   -0.10%     
==========================================
  Files          11       11              
  Lines         382      380       -2     
  Branches       56       56              
==========================================
- Hits          123      122       -1     
+ Misses        259      258       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

rev: '1.4.0'
hooks:
- id: django-upgrade
args: [--target-version, "2.2"]
Copy link
Member

Choose a reason for hiding this comment

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

I think this is one of the things you asked about on Slack and its a bit easier to respond here.
This version is the minimum supported version. This tool will optimise the Django specific code in a commit, using the features available in Django 2.2.

rev: v3.2.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Copy link
Member

Choose a reason for hiding this comment

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

Just like the Django version, this is the minimum supported python version. Python code in a commit is then optimised to match the features in this python version.

Copy link
Author

Choose a reason for hiding this comment

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

Alright Mark, thanks for clarifying

Pipfile.lock Outdated
@@ -0,0 +1,146 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this file.

Pipfile Outdated
@@ -0,0 +1,12 @@
[[source]]
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this file.

@@ -0,0 +1,44 @@
repos:
Copy link
Member

Choose a reason for hiding this comment

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

Could you add the ci config from here please?

https://github.com/django-cms/django-cms/blob/develop/.pre-commit-config.yaml

And you can just remove the black section rather than comment out as we've no plans to use black

Copy link
Author

@bencipher bencipher Nov 1, 2022

Choose a reason for hiding this comment

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

I already removed the commented code in my last commit.

Copy link
Author

Choose a reason for hiding this comment

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

will add the ci now

Copy link
Author

Choose a reason for hiding this comment

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

latest commit: 297069d

@bencipher
Copy link
Author

bencipher commented Nov 1, 2022 via email

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