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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 17, 2022
2 parents 7cd167f + 436e0eb commit e91a929
Show file tree
Hide file tree
Showing 11 changed files with 458 additions and 6 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,22 @@ jobs:
env:
PULL_REQUEST_NUMBER: ${{ github.event.number }}

lint-pydantic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: matrix-org/setup-python-poetry@v1
with:
extras: "all"
- run: poetry run scripts-dev/check_pydantic_models.py

# Dummy step to gate other tests on without repeating the whole list
linting-done:
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
needs: [lint, lint-crlf, lint-newsfile, check-sampleconfig, check-schema-delta]
needs: [lint, lint-crlf, lint-newsfile, lint-pydantic, check-sampleconfig, check-schema-delta]
runs-on: ubuntu-latest
steps:
- run: "true"
Expand Down
1 change: 1 addition & 0 deletions changelog.d/13502.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a linter script which will reject non-strict types in Pydantic models.
1 change: 1 addition & 0 deletions changelog.d/13538.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the doc and some warnings that were referring to the nonexistent `custom_templates_directory` setting (instead of `custom_template_directory`).
1 change: 1 addition & 0 deletions changelog.d/13547.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of sending messages in rooms with thousands of local users.
2 changes: 1 addition & 1 deletion docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ in, allowing them to specify custom templates:

```yaml
templates:
custom_templates_directory: /path/to/custom/templates/
custom_template_directory: /path/to/custom/templates/
```
If this setting is not set, or the files named below are not found within the directory,
Expand Down
Loading

0 comments on commit e91a929

Please sign in to comment.