Giteabot
4ca706d6a9
chore(deps): update dependency djlint to v1.39.0 ( #38124 )
...
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/ ) |
[Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [djlint](https://redirect.github.com/djlint/djLint ) | `==1.36.4` →
`==1.39.0` |

|

|
---
### Release Notes
<details>
<summary>djlint/djLint (djlint)</summary>
###
[`v1.39.0`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1390---2026-06-05 )
[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.38.2...v1.39.0 )
##### Feature
- Add `preserve_class_newlines` / `--preserve-class-newlines` to keep
authored line breaks inside multiline `class` attributes.
##### Fix
- Fix Django 6.0 `{% partialdef %}` block indentation so `{%
endpartialdef %}` aligns with its opener.
- Preserve multiline Django/Jinja control-flow blocks instead of
condensing short bodies onto one line.
- Preserve single-line inline HTML and template tag bodies during
expansion, even when they exceed `max_line_length`.
###
[`v1.38.2`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1382---2026-06-05 )
[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.38.1...v1.38.2 )
##### Fix
- Fix `python -m djlint` not working due to mypyc compilation.
###
[`v1.38.1`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1381---2026-06-04 )
[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.38.0...v1.38.1 )
##### Fix
- Match exclude paths on path boundaries.
###
[`v1.38.0`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1380---2026-06-04 )
[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.37.0...v1.38.0 )
##### Feature
- Add support for `.djlint.toml` project and global config files.
##### Fix
- Preserve single-line inline HTML tag bodies when they fit within
`max_line_length`.
- Avoid evaluating template expressions while formatting tag contents.
##### Packaging
- Fix npm publish workflow.
###
[`v1.37.0`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1370---2026-06-04 )
[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.36.4...v1.37.0 )
##### Feature
- Add `--format-attribute-js-json` for formatting JavaScript and JSON
inside HTML attributes. It also supports
`format_attribute_js_json_pattern` and
`format_attribute_js_json_min_props` for tuning which attributes are
formatted. Thanks,
[@​oliverhaas](https://redirect.github.com/oliverhaas ).
- Add `--github-output` for GitHub Actions annotations. Thanks,
[@​iloveitaly](https://redirect.github.com/iloveitaly ).
##### Fix
- Fix `ignore_blocks` matching when ignored blocks are indented. Thanks,
[@​tdryer](https://redirect.github.com/tdryer ).
- Use relative paths for `--exclude` and `--use-gitignore` matching so
path filters work consistently from nested directories. Thanks,
[@​satya-waylit](https://redirect.github.com/satya-waylit ).
- Stop D018/J018 from flagging root links such as `href="/"`. Thanks,
[@​SAY-5](https://redirect.github.com/SAY-5 ).
- Do not treat soft hyphen entities as text for H023. Thanks,
[@​kotutuloro](https://redirect.github.com/kotutuloro ).
- Fix Handlebars `{{#unless}}` indentation. Thanks,
[@​S1mplePixels](https://redirect.github.com/S1mplePixels ).
- Fix formatting when `/>` appears inside an HTML attribute value.
Thanks, [@​novucs](https://redirect.github.com/novucs ).
- Improve CPU count handling for worker setup.
##### Performance
- Improve formatter caching and reduce cache memory usage. Formatting is
about 19% faster.
##### Documentation
- Add Chinese translation. Thanks,
[@​Twisuki](https://redirect.github.com/Twisuki ).
- Add Homebrew installation instructions. Thanks,
[@​alfawal](https://redirect.github.com/alfawal ).
- Add EFM Neovim integration documentation. Thanks,
[@​danielebra](https://redirect.github.com/danielebra ).
- Add copy-pastable pre-commit YAML to the README. Thanks,
[@​Pierre-Sassoulas](https://redirect.github.com/Pierre-Sassoulas ).
- Polish linter and CLI documentation. Thanks,
[@​jasonaowen](https://redirect.github.com/jasonaowen ) and
[@​dotWee](https://redirect.github.com/dotWee ).
##### Packaging
- Drop Python 3.9 support.
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- Only on Monday (`* * * * 1`)
- 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.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://redirect.github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDEuNSIsInVwZGF0ZWRJblZlciI6IjQzLjE0MS41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Co-authored-by: bircni <bircni@icloud.com >
2026-06-15 04:58:34 +00:00
Giteabot
420a6eb5ab
chore(deps): update dependency zizmor to v1.25.2 ( #37839 )
...
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/ ) |
[Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [zizmor](https://docs.zizmor.sh )
([source](https://redirect.github.com/zizmorcore/zizmor )) | `==1.25.1` →
`==1.25.2` |

|

|
---
### Release Notes
<details>
<summary>zizmorcore/zizmor (zizmor)</summary>
###
[`v1.25.2`](https://redirect.github.com/zizmorcore/zizmor/releases/tag/v1.25.2 )
[Compare
Source](https://redirect.github.com/zizmorcore/zizmor/compare/v1.25.1...v1.25.2 )
#### Bug Fixes 🐛 [🔗 ](https://docs.zizmor.sh/release-notes/#bug-fixes )
- Fixed a bug where the
[unpinned-tools](https://docs.zizmor.sh/audits/#unpinned-tools ) audit
would incorrectly flag the
[aquasecurity/trivy-action](https://redirect.github.com/aquasecurity/trivy-action )
action as installing an unpinned tool version, rather than
[aquasecurity/setup-trivy](https://redirect.github.com/aquasecurity/setup-trivy )
([#​2018](https://redirect.github.com/zizmorcore/zizmor/issues/2018 ))
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- Only on Monday (`* * * * 1`)
- 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.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://redirect.github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDEuNSIsInVwZGF0ZWRJblZlciI6IjQzLjE0MS41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2026-05-25 09:32:24 +00:00
silverwind
02be228ed6
ci: add zizmor to lint-actions ( #37720 )
...
Adds [zizmor](https://docs.zizmor.sh/ ) to `make lint-actions` with
`--min-confidence=medium`. Fixes the remaining findings:
- Pin floating-tag service images in `pull-db-tests.yml` to
`tag@sha256:digest`
- Move `github.ref` / `github.ref_name` (and surrounding secrets/step
outputs for consistency) out of `run:` into `env:`
---
This PR was written with the help of Claude Opus 4.7
---------
Signed-off-by: silverwind <me@silverwind.io >
Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com >
Co-authored-by: Nicolas <bircni@icloud.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2026-05-16 10:38:46 +02:00
silverwind
49edbbbc2e
Update JS and PY deps ( #36383 )
...
- Update JS and PY dependencies
- Workaround https://github.com/stylelint/stylelint/issues/8893 by
moving the stylint config file to JS
- Regenerate SVGs
- Bump to python 3.14 in devcontainer and actions
- Verified `@github/text-expander-element`
- Removed obsolete type stub
2026-01-16 11:00:16 +00:00
silverwind
7413e8583d
Replace poetry with uv ( #35084 )
2025-07-15 21:19:39 +00:00
silverwind
dd886d729f
Update JS and PY dependencies ( #34391 )
...
Result of `make update-js update-py svg`. Quick test of the UI worked.
2025-05-07 13:21:38 -04:00
silverwind
90b509aafb
Update JS and PY deps ( #34143 )
...
- Update selected dependencies.
- Ran `make svg && git add --all`.
- Tested mermaid and swagger.
- Mark `fileicon` assets as generated so they don't spam the diff.
- Webpack is not upgraded because it has some regression.
2025-04-07 21:42:32 -07:00
silverwind
52663113d4
Update JS and PY deps, misc tweaks ( #33903 )
...
- Update all updateable dependencies
- Add a few more unupgradable ones to updates blocklist
- Adapt to breaking changes
- Update to typescript 5.8, enable `erasableSyntaxOnly` which
necessitated a change because of forbidden syntax
- Misc cleanups
- Tested htmx, easymde, swagger, chart.js
2025-03-16 10:04:18 +01:00
silverwind
ab347fd0f7
Update JS and PY dependencies ( #33249 )
...
- Update all JS and PY dependencies
- Tested affected dependencies
- Disabled `async-preventdefault` lint rule because it brought up new
false-positives.
2025-01-16 09:56:41 +00:00
silverwind
5cada75596
Update dependencies, tweak eslint ( #32719 )
...
- ~~Remove `eslint-plugin-sonarjs`. I lost faith in it since they moved
it to their monorepo and I can't recall the last time when this plugin
raised a useful error.~~
- Add new rules from `no-jquery`
- ~~Tweak typescript config to prevent temp files in root directory in
certain situations~~ File is just gitignored now.
- Tested all relevant dependencies
2024-12-05 16:13:10 +00:00
silverwind
5bed7b9ec0
Update JS and PY dependencies ( #32482 )
...
Result of `make update-js update-py`.
Fixes: https://github.com/go-gitea/gitea/security/dependabot/80
Fixes: https://github.com/go-gitea/gitea/security/dependabot/81
Tested build and swagger ui.
2024-11-12 21:03:22 +00:00
silverwind
9914c9ab08
Update JS and PY dependencies ( #32388 )
...
- Update all JS dependencies excluding stylelint (because of
https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379 ).
- Update all PY dependencies.
- Replace `eslint-plugin-deprecation` with
`@typescript-eslint/no-deprecated` rule.
- Enabled `unicorn/prefer-math-min-max` and autofixed issues.
- Tested all dependencies.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-10-31 04:19:15 +00:00
silverwind
f46e7eae93
Update JS and PY dependencies ( #31940 )
...
- `stylelint` is excluded because of deprecation warnings added in
16.8.2, depending on
https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379
- `eslint-plugin-sonarjs@2` adds a lot of new rules, but I have not
gotten around to reviewing them yet, so rule config is unchanged.
- Fixes https://github.com/go-gitea/gitea/security/dependabot/70
- Tested code editor and contributor graph
2024-08-29 14:51:51 +00:00
silverwind
15debbbe4e
Enable poetry non-package mode ( #31282 )
...
[Poetry
1.8.0](https://github.com/python-poetry/poetry/releases/tag/1.8.0 ) added
support for [non-package
mode](https://python-poetry.org/docs/basic-usage/#operating-modes ), e.g.
projects that are not python packages themselves like we are. Make use
of that and remove the previous workaround via `--no-root`.
2024-06-07 15:37:33 +02:00
silverwind
efa631aeea
Update js and py dependencies, bump python ( #29561 )
...
- Update js and py dependencies excluding `@mcaptcha/vanilla-glue`,
`eslint-plugin-array-func`
- Update stylelint config
- Require python 3.10 and use 3.12 on CI, bump setup-python as well
- Tested markdown toolbar, charts, clipboard, swagger ui, vue
2024-03-03 17:23:14 +01:00
silverwind
8f9c9d3a5f
Update JS and PY dependencies ( #29184 )
...
- Update all excluding `@mcaptcha/vanilla-glue` and
`eslint-plugin-array-func`
- Tested pdf, chart.js, swagger
2024-02-16 02:20:50 +00:00
silverwind
4fe37124e9
Update JS and PY dependencies ( #29127 )
...
- Update all excluding `@mcaptcha/vanilla-glue` and
`eslint-plugin-array-func`
- Remove deprecated and duplicate eslint rule
- Tested Monaco, Mermaid and Swagger
2024-02-11 12:55:11 +00:00
silverwind
a062725758
Update JS and PY dependencies, build for es2020 browsers ( #28977 )
...
- Update all JS dependencies minus @mcaptcha/vanilla-glue
- Fix new lint errors
- Regenerate SVGs
- Switch to maintained stylelint stylistic plugin
- Tested Mermaid, Citation, Swagger, sorting
- Raise ESBuild target to `es2020` as dictated by `pretty-ms`
dependency.
2024-02-02 09:36:32 +00:00
silverwind
06dcb251f3
Update JS and PY dependencies ( #28120 )
...
- Update all JS and PY dependencies minus `@mcaptcha/vanilla-glue`
- Adapt to eslint rule rename
- Regenerate all SVGs because of [new
optimizations](https://github.com/svg/svgo/releases/tag/v3.0.4 ) from
svgo.
- Tested mentions, mermaid, vue, api docs
2023-11-20 01:02:57 +01:00
silverwind
a101dbaa79
Update JS and Poetry dependencies and eslint ( #27200 )
...
- Update all JS and Poetry dependencies
- Remove deprecated `eslint-plugin-custom-elements` and replace it with
rules from `eslint-plugin-wc`
- Add a convenience `make update` to update both js and py dependencies
- Tested markdown toolbar, swagger and citation
2023-09-22 22:51:48 +02:00
silverwind
b8ad558c93
Lock yamllint and update indirect python deps ( #26979 )
...
I forgot to lock `yamllint` to exact version, so did that and
regenerated `poetry.lock` as well.
2023-09-08 15:36:40 -04:00
silverwind
3c0c279658
Add yamllint ( #26965 )
...
So that https://github.com/go-gitea/gitea/pull/26964 does not happen
again. Merge this after that PR. Config is based on
[node's](https://github.com/nodejs/node/blob/main/.yamllint.yaml ).
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2023-09-07 22:24:06 -04:00
silverwind
a625f3a761
Enable djlint H008 and fix issues ( #26869 )
...
Enable `H008 | Attributes should be double quoted` and fix issues.
2023-09-01 17:32:39 +00:00
silverwind
8e644d3460
Update js and py dependencies ( #26243 )
...
- Update all JS and PY dependencies minus
`eslint-plugin-eslint-comments` (because of
https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/89 )
- Regenerate SVGs
- Remove depreacted eslint rule
- Tested mermaid and swagger
2023-07-31 01:16:12 +02:00
silverwind
06df92b5af
Update djlint, enable H026 and T027 ( #25980 )
...
New rules enabled as the bugs I reported were fixed:
- H026 | Empty id and class tags can be removed.
- T027 | Unclosed string found in template syntax.
Refs:
https://github.com/Riverside-Healthcare/djLint/issues/711
https://github.com/Riverside-Healthcare/djLint/issues/712
2023-07-19 10:35:25 +02:00
silverwind
61e0d1a767
Enable H014 and H023 djlint rules ( #25786 )
...
Enable these rules:
- H014 | More than 2 blank lines.
- H023 | Do not use entity references.
There are more potential rules to enable but they are blocked by bugs in
the linter:
- https://github.com/Riverside-Healthcare/djLint/issues/711
- https://github.com/Riverside-Healthcare/djLint/issues/712
2023-07-09 20:33:25 +00:00
silverwind
02ef14bea2
Add make poetry-update, upgrade djlint ( #25399 )
...
[updates](https://github.com/silverwind/updates ) now supports poetry as
well so we can use it for a new `make poetry-update` to update all
poetry dependencies.
2023-06-26 21:14:00 +00:00
silverwind
1a0a205466
Clean up pyproject.toml and package.json, fix poetry options ( #25327 )
...
- Reduce `pyproject.toml` and `package.json` to the minimal required
format, removing unneeded properties. `build-system` is not needed as
per
[this](https://github.com/python-poetry/poetry/issues/8110#issuecomment-1595846841 ).
- Fix `poetry.toml` options they were wrong previously.
- Add dependencies of poetry files to templates `files-changed`.
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-06-18 18:13:08 +00:00
silverwind
e24f651c86
Add template linting via djlint ( #25212 )
...
So I found this [linter](https://github.com/Riverside-Healthcare/djlint )
which features a mode for go templates, so I gave it a try and it did
find a number of valid issue, like unbalanced tags etc. It also has a
number of bugs, I had to disable/workaround many issues.
Given that this linter is written in python, this does add a dependency
on `python` >= 3.8 and `poetry` to the development environment to be
able to run this linter locally.
- `e.g.` prefixes on placeholders are removed because the linter had a
false-positive on `placeholder="e.g. cn=Search"` for the `attr=value`
syntax and it's not ideal anyways to write `e.g.` into a placeholder
because a placeholder is meant to hold a sample value.
- In `templates/repo/settings/options.tmpl` I simplified the logic to
not conditionally create opening tags without closing tags because this
stuff confuses the linter (and possibly the reader as well).
2023-06-14 18:17:58 +00:00