Skip to content

Commit a1f5ee6

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent 9c89b46 commit a1f5ee6

7 files changed

Lines changed: 125 additions & 4 deletions

File tree

.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright © Michal Čihař <michal@weblate.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# This file is maintained in https://github.com/WeblateOrg/meta/
6+
7+
root = true
8+
9+
[*]
10+
indent_style = space
11+
indent_size = 2
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true
16+
spaces_around_operators = true
17+
18+
[*.bat]
19+
end_of_line = crlf
20+
21+
[*.html]
22+
indent_size = 2
23+
24+
[*.py]
25+
indent_size = 4
26+
27+
[*.rst]
28+
indent_size = 3
29+
30+
[*.js]
31+
quote_type = double
32+
33+
[*.{markdown,md}]
34+
trim_trailing_whitespace = false
35+
36+
[[shell]]
37+
indent_style = space
38+
indent_size = 4
39+
space_redirects = true
40+
simplify = true

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ jobs:
250250
path: dist
251251

252252
sdist:
253-
runs-on: ubuntu-latest
253+
runs-on: ubuntu-24.04
254254
name: Package sdist
255255
steps:
256256
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -282,7 +282,7 @@ jobs:
282282

283283
release:
284284
name: Release
285-
runs-on: ubuntu-latest
285+
runs-on: ubuntu-24.04
286286
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
287287
needs: all-tests
288288
permissions:
@@ -309,7 +309,7 @@ jobs:
309309
args: --non-interactive --skip-existing wheels-*/*
310310

311311
release_github:
312-
runs-on: ubuntu-latest
312+
runs-on: ubuntu-24.04
313313
name: Create release on GitHub
314314
permissions:
315315
contents: write
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright © Michal Čihař <michal@weblate.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# This file is maintained in https://github.com/WeblateOrg/meta/
6+
name: Dependency Review
7+
on:
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-slim
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
with:
20+
persist-credentials: false
21+
- name: Dependency Review
22+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
python-version: '3.14'
4545
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
4646
with:
47+
version: 0.9.25
4748
enable-cache: false
4849
- name: detect method
4950
id: detect
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright © Michal Čihař <michal@weblate.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# This file is maintained in https://github.com/WeblateOrg/meta/
6+
7+
name: Pull request automation
8+
9+
on: # zizmor: ignore[dangerous-triggers]
10+
pull_request_target:
11+
types: opened
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
weblate_automerge:
18+
runs-on: ubuntu-slim
19+
name: Weblate automerge
20+
if: github.actor == 'weblate'
21+
steps:
22+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23+
with:
24+
persist-credentials: false
25+
- name: Enable Pull Request Automerge
26+
run: gh pr merge --rebase --auto "${{ github.event.pull_request.number }}"
27+
env:
28+
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }}

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repos:
1010
- id: check-toml
1111
- id: check-merge-conflict
1212
- id: check-json
13-
- id: debug-statements
1413
- id: mixed-line-ending
1514
args: [--fix=lf]
1615
- id: pretty-format-json
@@ -66,3 +65,5 @@ repos:
6665
- id: gitleaks
6766
ci:
6867
autoupdate_schedule: quarterly
68+
skip:
69+
- reuse

SECURITY.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
Copyright © Michal Čihař <michal@weblate.org>
3+
4+
SPDX-License-Identifier: CC0-1.0
5+
6+
This file is maintained in https://github.com/WeblateOrg/meta/
7+
-->
8+
9+
# Weblate security
10+
11+
The Weblate team takes security and related transparency very seriously.
12+
We welcome any peer review of our 100% open-source code to ensure nobody's Weblate
13+
is ever compromised or hacked.
14+
15+
If you think you have identified a security issue with a Weblate project, **do
16+
not open a public issue**.
17+
18+
To responsibly report a security issue, please navigate to the Security tab for
19+
the repository and click “Report a vulnerability”.
20+
21+
Be sure to include as much detail as necessary in your report. As with
22+
reporting normal issues, a minimal reproducible example will help the
23+
maintainers address the issue faster.
24+
25+
More information about practices for reporting and fixing security issues is
26+
described in [our documentation][1]. This ensures all vulnerabilities are
27+
solved securely, quickly, and transparently.
28+
29+
[1]: https://docs.weblate.org/en/latest/security/issues.html

0 commit comments

Comments
 (0)