Skip to content

Commit

Permalink
Update Ruff linter to 0.6.x series
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Sep 23, 2024
1 parent 7355c87 commit d9b07d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
"commit": "b4b9b4f83b624cfd7728a3f1527d272be28ee916",

This comment has been minimized.

Copy link
@rlaboiss

rlaboiss Sep 23, 2024

Collaborator

Thanks for your commit. If I understand correctly, the commit hash comes from the cookiecutter-pelican-plugin repository. I have some question. How is the .cruft.json file updated? Should it be done manually, each time something in the project configuration is changed? Should I change my workflow by adding commands to update the "commit" line?

This comment has been minimized.

Copy link
@justinmayer

justinmayer Sep 23, 2024

Author Contributor

The idea is that plugins can be periodically updated with "upstream" changes to the plugin template via cruft update. I just added documentation that should clarify this manual process in detail: https://github.com/getpelican/cookiecutter-pelican-plugin#updating-existing-project-via-cruft

This comment has been minimized.

Copy link
@rlaboiss

rlaboiss Sep 23, 2024

Collaborator

Thanks!

"commit": "84fcf4f1645af2a8e1c22d4b68e3438ca28bf31f",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.6.7
hooks:
- id: ruff
- id: ruff-format
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ markdown = ["markdown>=3.4"]
[tool.pdm.dev-dependencies]
lint = [
"invoke>=2.2",
"ruff>=0.5.0,<0.6.0"
"ruff>=0.6.7,<0.7.0",
]
test = [
"markdown>=3.4",
Expand Down

0 comments on commit d9b07d3

Please sign in to comment.