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

Update Pre-commit updates #708

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2024

This PR contains the following updates:

Package Type Update Change
PyCQA/flake8 repository minor 7.0.0 -> 7.1.1
Riverside-Healthcare/djLint repository minor v1.24.0 -> v1.36.1
Yelp/detect-secrets repository minor v1.4.0 -> v1.5.0
ambv/black repository minor 24.3.0 -> 24.10.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

PyCQA/flake8 (PyCQA/flake8)

v7.1.1

Compare Source

v7.1.0

Compare Source

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

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
ambv/black (ambv/black)

v24.10.0

Compare Source

Highlights
  • Black is now officially tested with Python 3.13 and provides Python 3.13
    mypyc-compiled wheels. (#​4436) (#​4449)
  • Black will issue an error when used with Python 3.12.5, due to an upstream memory
    safety issue in Python 3.12.5 that can cause Black's AST safety checks to fail. Please
    use Python 3.12.6 or Python 3.12.4 instead. (#​4447)
  • Black no longer supports running with Python 3.8 (#​4452)
Stable style
  • Fix crashes involving comments in parenthesised return types or X | Y style unions.
    (#​4453)
  • Fix skipping Jupyter cells with unknown %% magic (#​4462)
Preview style
  • Fix type annotation spacing between * and more complex type variable tuple (i.e. def fn(*args: *tuple[*Ts, T]) -> None: pass) (#​4440)
Caching
  • Fix bug where the cache was shared between runs with and without --unstable (#​4466)
Packaging
  • Upgrade version of mypyc used to 1.12 beta (#​4450) (#​4449)
  • blackd now requires a newer version of aiohttp. (#​4451)
Output
  • Added Python target version information on parse error (#​4378)
  • Add information about Black version to internal error messages (#​4457)

v24.8.0

Compare Source

Stable style
  • Fix crash when # fmt: off is used before a closing parenthesis or bracket. (#​4363)
Packaging
  • Packaging metadata updated: docs are explictly linked, the issue tracker is now also
    linked. This improves the PyPI listing for Black. (#​4345)
Parser
  • Fix regression where Black failed to parse a multiline f-string containing another
    multiline string (#​4339)
  • Fix regression where Black failed to parse an escaped single quote inside an f-string
    (#​4401)
  • Fix bug with Black incorrectly parsing empty lines with a backslash (#​4343)
  • Fix bugs with Black's tokenizer not handling \{ inside f-strings very well (#​4422)
  • Fix incorrect line numbers in the tokenizer for certain tokens within f-strings
    (#​4423)
Performance
  • Improve performance when a large directory is listed in .gitignore (#​4415)
Blackd
  • Fix blackd (and all extras installs) for docker container (#​4357)

v24.4.2

Compare Source

This is a bugfix release to fix two regressions in the new f-string parser introduced in
24.4.1.

Parser
  • Fix regression where certain complex f-strings failed to parse (#​4332)
Performance
  • Fix bad performance on certain complex string literals (#​4331)

v24.4.1

Compare Source

Highlights
  • Add support for the new Python 3.12 f-string syntax introduced by PEP 701 (#​3822)
Stable style
  • Fix crash involving indented dummy functions containing newlines (#​4318)
Parser
  • Add support for type parameter defaults, a new syntactic feature added to Python 3.13
    by PEP 696 (#​4327)
Integrations
  • Github Action now works even when git archive is skipped (#​4313)

v24.4.0

Compare Source

Stable style
  • Fix unwanted crashes caused by AST equivalency check (#​4290)
Preview style
  • if guards in case blocks are now wrapped in parentheses when the line is too long.
    (#​4269)
  • Stop moving multiline strings to a new line unless inside brackets (#​4289)
Integrations
  • Add a new option use_pyproject to the GitHub Action psf/black. This will read the
    Black version from pyproject.toml. (#​4294)
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 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.

0 participants