Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Update Pre-commit updates #735

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 10, 2024

This PR contains the following updates:

Package Type Update Change
Riverside-Healthcare/djLint repository minor v1.24.0 -> v1.36.3
Yelp/detect-secrets repository minor v1.4.0 -> v1.5.0
pre-commit/pre-commit-hooks repository minor v4.5.0 -> v4.6.0

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

Riverside-Healthcare/djLint (Riverside-Healthcare/djLint)

v1.36.3

Compare Source

This release reverts the following changes from the last release as they caused issues:

  • Fix specific mixture of quotes and escaped quotes (e.g. in a json string in an html attribute) breaks the html. Issue #​1048.
  • Resolve exclude paths. Issue #​1047.

v1.36.2

Compare Source

Fix:

  • Fix specific mixture of quotes and escaped quotes (e.g. in a json string in an html attribute) breaks the html. Thanks, @​oliverhaas.
  • Resolve exclude paths. Thanks, @​antoineauger.

Performance:

v1.36.1

Compare Source

v1.36.0

Compare Source

Feature
  • Add support for djlint.toml config file. The format is identical to pyproject.toml, but it does not use [tool.djlint] table.
Fix
  • Do not format HTML in attributes. Thanks, @​oliverhaas.
  • Fix using js_config instead of css_config.
Performance
  • Increase performance by ~30% by using regex more efficiently and caching more stuff.

v1.35.4

Compare Source

Compiled mypyc wheels are now also available, which improve performance by ~21% over Pure Python. They will be automatically installed by your package manager when available for your platform. Pure Python wheel is still available.

Other changes have been made to improve performance, thanks to @​JCWasmx86. See the commits for more details.

Formatting performance comparison with the previous version (tested on https://github.com/openedx/edx-platform with single thread):

Version Seconds
v1.35.3 20.39
v1.35.4 pure Python 14.39
v1.35.4 compiled 11.35

v1.35.3

Compare Source

This release significantly improves performance, especially for large files and large projects.

Formatting https://github.com/openedx/edx-platform took 87 seconds in the previous version, now it takes only 4 seconds (>2000% speedup)! Tested on a 32-core computer.

  • Performance improved by caching some functions. Thanks to @​JCWasmx86!
  • Removed the limitation on the number of workers introduced in v1.35.0.
  • Drop Python 3.8 support.

v1.35.2

Compare Source

  • Unpin dependencies upper bounds.
  • Use min(cpu_count, files_count, 4) workers. Use a thread instead of a process if only one worker will be used. This gives the best performance and low resource usage.
  • Refactor the code.
  • Fix max attribute length with longer regex custom html tags (#​884)
  • Fix Jinja formatting issues (#​715)
  • Fix: not detecting tabs as a valid seperation between tags (#​813)
  • Fix: Add ignore for sms links (#​815)
  • Fix: Allow attributes on <title> (#​830)

v1.35.1

Compare Source

v1.35.0

Compare Source

v1.34.5

Compare Source

v1.34.2

Compare Source

Bug Fixes
  • max attribute length with longer regex custom html tags (#​884) (a8e3835)

v1.34.1

Compare Source

Bug Fixes
  • formatter: Avoid rewriting the file if it has not been changed (6965ba5)
  • linter: fix missed H025 for double closing (cf52faf), closes #​786

v1.34.0

Compare Source

Bug Fixes
  • configuration: Fix formatting, unused import and forgotten print (f6dbef2)
Features
  • configuration: Accept pyproject.toml as a --configuration argument (d8a059a)

v1.33.0

Compare Source

Bug Fixes
  • formatter: fixed extra breaks added around html tags inside template tags (6091ffb), closes #​742
  • formatter: fixed extra indend in script tags (9d04d51), closes #​733
  • formatter: fixed formatting on functions that used python keywords as the param name (183a7c0), closes #​756
  • h033: fix rull to not match data-action (f6881e0)
  • linter: fixed false positive on DJ018 (78d81dc), closes #​755
Features
  • formatter: added support for nunjucks async loop tags (5a32bb3)

v1.32.1

Compare Source

Bug Fixes

v1.32.0

Compare Source

Bug Fixes
  • formatter: fixed formatting on chained function (7c2756d), closes #​704
  • linter: fixed false positive on h026 data-id (400882a), closes #​711
  • linter: fixed golang false positive on T027 (232f4bc), closes #​712
Features
  • formatter: added support for jazzband's sorl-thumbnail tags (86122dc), closes #​714

v1.31.1

Compare Source

Bug Fixes
  • formatter: fixed formatter formatting ignored code (5c75d87), closes #​655
  • formatter: fixed function formatting with nested quoted parenthesis (6d63a6a), closes #​698
  • formatter: fixed overgrabbing on template tag condensing (75c3134), closes #​686
  • formatter: function index was not formatted correctly (a197200), closes #​693

v1.31.0

Compare Source

Bug Fixes
  • formatter: fixed line_break_after_multiline_tag to force break in all cases (3b37ec8), closes #​680
  • formatter: fixed isolated quotes being deleted from attributes (19425f9), closes #​652
  • formatter: fixed wild match on template tags (d288b78), closes #​686
  • linter: fixed false positive on t001 (1caf4c4), closes #​606
Features
  • formatter: added max-blank-lines flag to consolidate blank lines (4a7897f), closes #​675
  • formatter: added support for symphony forms (e716ddc), closes #​476

v1.30.2

Compare Source

Bug Fixes
  • formatter: added quotes to json keys, added option to disable set/function formatting (6f7df03), closes #​682

v1.30.1

Compare Source

Bug Fixes

v1.30.0

Compare Source

Bug Fixes
  • formatter: fixed endset indent level (cdebe42), closes #​670
  • formatter: fixed issue with spaceless macro tags having spacess added before - (5593937), closes #​667
  • npm: install exact version of djlint (0727279)
Features
  • npm: add script to update djlint version in postinstall using semantic-release/exec (040ffc6)

v1.29.0

Compare Source

Bug Fixes
  • formatter: fix cases where ignore was still formatting set and function code (ab878ea), closes #​659
  • formatter: fix extra parenth being added in a function call (faba4f4), closes #​660
  • linter: fixed missing positive on a few <img rules (5f33d08)
Features
  • formatter: added option to disable newlines after yaml front matter (9bf64ac), closes #​662
  • linter: allow codes to be ignored for remainder of file (4637a0f), closes #​655

v1.28.0

Compare Source

Bug Fixes
  • formatter: allow djlint:off to exluce the rest of a file (17faf5f), closes #​649
  • formatter: don't add blank line to empty files (8ea5fd2), closes #​635
Features
  • formatter: added ability to format objects/arrays in function tags (d446efc), closes #​370
  • formatter: format set blocks (d88371c), closes #​646

v1.27.2

Compare Source

Bug Fixes
  • formatter: fixed an edge case wild regex grab (0d57e75), closes #​640
  • formatter: fixed formatting of plural tag in blocktrans (92c083b), closes #​641
  • formatter: fixed js/css being formatted even inside ignored blocks (cbf5796), closes #​613
  • linter: fixed a few false positives/missing positives, added tests (30f8d31), closes #​643 #​642
  • linter: fixed false postive in alpinejs tags for H037 (6520f63), closes #​639

v1.27.1

Compare Source

Bug Fixes

v1.27.0

Compare Source

Bug Fixes
  • linter: fixed overly greedy H037, improved linter tests (66c9187), closes #​631
Features
  • formatter: Add option to not condense multi-line-tags (4973a32)

v1.26.0

Compare Source

Bug Fixes
  • blocktrans: fixes whitespace issues on blocktrans, allows indenting on blocktrans trimmed (249c8e8), closes #​623
Features
  • formatter: added white space cleanup for template tags (13d0d4f), closes #​485
  • linter: added rule H037 (6048c46)
  • void tags: added option to auto close void tags (linter rule H017) (9050d30), closes #​252

v1.25.1

Compare Source

Bug Fixes

v1.25.0

Compare Source

Bug Fixes
  • formatter: fixed extra indent on endblocktrans tags (35e1041), closes #​611
Features
Yelp/detect-secrets (Yelp/detect-secrets)

v1.5.0

Compare Source

May 6th, 2024

We apologise for the extreme delay in publishing a new release for our beloved detect-secrets. We at Yelp appreciate your continued support and your contributions to this valuable project!

📰 News
  • We're adding support for Python 3.10, 3.11 and 3.12 and we dropped support for Python 3.6 and 3.7! We hope this won't be too disruptive for you all. Be aware that in a next release, we'll remove support for Python 3.8 too, as it'll reach EOL in October 2024.
📣 Release Highlights
  • Added support for OS-agnostic baseline files (#​586)
🎉 New Features
  • Added a detector for IP addresses (#​692)
  • Added a detector for GitLab tokens (#​782)
  • Added a detector for Telegram tokens (#​808)
  • Added a detector for Pypi and TestPypi tokens (#​819)
  • Added a detector for OpenAI tokens (#​823)
✨ Usability
  • Added filenames in errors thrown when a plugin file specified in the .secrets.baseline is not found. (#​719)
  • Changed the wording of the audit prompt (#​738)
🔭 Accuracy
  • Improved DiscordBotTokenDetector to reduce false negatives (#​628)
  • Improved KeywordDetector to reduce false positive for Golang (#​675)
  • Improved AWSKeyDetector by adding more access key formats (#​796)
🐛 Bugfixes
  • Fixed NotImplementedError in StatisticsAggregator (#​678)
  • Fixed bug in YAMLTransformer related to parsing YAML files with achors and tags (#​679)
  • Fixed IndexError in is_prefixed_with_dollar_sign caused by passing empty strings (#​712)
🐍 Miscellaneous
  • Dropped support for Python 3.6 (#​672)
  • Dropped support for Python 3.7 (#​724)
  • Added support for Python 3.10 (#​724)
  • Added support for Python 3.11 (#​730)
  • Added support for Python 3.12 (#​810)
  • Multiple dependency updates
pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)

v4.6.0: pre-commit-hooks v4.6.0

Compare Source

Features
Migrating

Configuration

📅 Schedule: Branch creation - "before 9am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant