-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 11168_clean_unused_glossary_languages
- Loading branch information
Showing
86 changed files
with
2,138 additions
and
1,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "spectacular", | ||
"pattern": [ | ||
{ | ||
"file": 1, | ||
"line": 2, | ||
"severity": 3, | ||
"message": 4, | ||
"regexp": "^([^:]*):(\\d+): (Warning|Error) (.*)$" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Copyright © Michal Čihař <[email protected]> | ||
|
||
SPDX-License-Identifier: CC0-1.0 | ||
|
||
This file is maintained in https://github.com/WeblateOrg/meta/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright © Michal Čihař <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
name: API | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- deepsource-fix-** | ||
- renovate/** | ||
- weblate | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
api-lint: | ||
runs-on: ubuntu-24.04 | ||
name: API Lint | ||
env: | ||
CI_DATABASE: postgresql | ||
CI_REDIS_HOST: 127.0.0.1 | ||
CI_REDIS_PORT: '60001' | ||
CI_DB_PASSWORD: weblate | ||
CI_DB_HOST: 127.0.0.1 | ||
CI_DB_PORT: '60000' | ||
CI_SELENIUM: '1' | ||
DJANGO_SETTINGS_MODULE: weblate.settings_test | ||
PYTHONWARNINGS: default,ignore:unclosed:ResourceWarning | ||
PYTHONUNBUFFERED: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: '' | ||
cache-suffix: ${{ matrix.python-version }} | ||
- name: Start services | ||
run: ./ci/services-up $CI_DATABASE | ||
- name: Install apt dependencies | ||
run: sudo ./ci/apt-install $CI_DATABASE | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Used versions | ||
run: ./ci/print-versions | ||
- name: Install Python dependencies | ||
run: ./ci/pip-install latest | ||
- name: Prepare database | ||
run: ./ci/prepare-database | ||
- name: Migrate database | ||
run: coverage run ./manage.py migrate --noinput --traceback | ||
- name: Generate OpenAPI | ||
run: | | ||
echo "::add-matcher::.github/matchers/spectacular.json" | ||
./manage.py spectacular > weblate-openapi.yaml | ||
echo "::remove-matcher owner=spectacular::" | ||
- name: openapi-lint | ||
run: npx @redocly/cli lint --format github-actions weblate-openapi.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run FOSSA Scan | ||
uses: fossas/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,6 @@ jobs: | |
|
||
# Upload the results to GitHub's code scanning dashboard. | ||
- name: Upload to code-scanning | ||
uses: github/codeql-action/[email protected].9 | ||
uses: github/codeql-action/[email protected].10 | ||
with: | ||
sarif_file: results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ weblate-*.tar.* | |
/fil-result/ | ||
/weblate/static/js/vendor/oss-licenses.json | ||
*node_modules/ | ||
/weblate-openapi.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ repos: | |
hooks: | ||
- id: biome-check | ||
additional_dependencies: | ||
- '@biomejs/[email protected].2' | ||
- '@biomejs/[email protected].3' | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.20.2 | ||
hooks: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ Files: weblate/templates/* weblate/wladmin/templates/* weblate/legal/templates/* | |
Copyright: Michal Čihař <[email protected]> | ||
License: GPL-3.0-or-later | ||
|
||
Files: .editorconfig .gitattributes .gitignore .gitmodules .imgbotconfig .pre-commit-config.yaml .pylintrc .readthedocs.yml .weblate MANIFEST.in codecov.yml pyproject.toml requirements*.txt dev-docker/environment scripts/yarn/.gitignore scripts/yarn/package.json scripts/yarn/yarn.lock setup.cfg docs/requirements.txt biome.json | ||
Files: .editorconfig .gitattributes .gitignore .gitmodules .imgbotconfig .pre-commit-config.yaml .pylintrc .readthedocs.yml .weblate MANIFEST.in codecov.yml pyproject.toml requirements*.txt dev-docker/environment scripts/yarn/.gitignore scripts/yarn/package.json scripts/yarn/yarn.lock setup.cfg docs/requirements.txt biome.json redocly.yaml | ||
Copyright: Michal Čihař <[email protected]> | ||
License: GPL-3.0-or-later | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.