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 checks #517

Merged
merged 4 commits into from
Jan 31, 2024
Merged

Conversation

raffaellasuardini
Copy link
Contributor

update pre-commit-config.yaml
add linter rules

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cfc0747) 100.00% compared to head (c33f18e) 100.00%.

❗ Current head c33f18e differs from pull request most recent head b065b60. Consider uploading reports for the commit b065b60 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #517   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           33        33           
  Branches         3         3           
=========================================
  Hits            33        33           

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

Copy link
Member

@marksweb marksweb left a comment

Choose a reason for hiding this comment

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

Just a few versions that we should keep at the higher number

@@ -9,34 +9,46 @@ ci:

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v2.31.0
Copy link
Member

Choose a reason for hiding this comment

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

Ok this highlights the need to upgrade the version in the repo where you've taken this code from as it's old.

Suggested change
rev: v2.31.0
rev: v3.15.0


- repo: https://github.com/adamchainz/django-upgrade
rev: '1.15.0'
rev: '1.4.0'
Copy link
Member

Choose a reason for hiding this comment

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

Keep an eye out for these, and if the version is lower on one repo, update it so that we are using the later versions everywhere. So what I'm seeing here makes it look like the pre-commit file in django-cms may need it's version upgrading.

Suggested change
rev: '1.4.0'
rev: '1.15.0'


- repo: https://github.com/asottile/yesqa
rev: v1.5.0
rev: v1.3.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rev: v1.3.0
rev: v1.5.0

hooks:
- id: yesqa

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.1.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rev: v4.1.0
rev: v4.5.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm making these modify and upgrading also codespell and ruff-pre-commit

@marksweb marksweb merged commit e1a55f8 into django-cms:master Jan 31, 2024
18 of 19 checks passed
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.

2 participants