You've already forked matrix-docker-ansible-deploy
							
							
				mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-30 23:37:40 +02:00 
			
		
		
		
	Enable pre-commit
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
		
				
					committed by
					
						 Slavi Pantaleev
						Slavi Pantaleev
					
				
			
			
				
	
			
			
			
						parent
						
							cb7db82fe9
						
					
				
				
					commit
					17e14a4b89
				
			
							
								
								
									
										2
									
								
								.codespellrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.codespellrc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| [codespell] | ||||
| ignore-words-list = aNULL,brose,doub,Udo,re-use,re-used | ||||
							
								
								
									
										5
									
								
								.github/renovate.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/renovate.json
									
									
									
									
										vendored
									
									
								
							| @@ -28,5 +28,8 @@ | ||||
| 	], | ||||
| 	"ignoreDeps": [ | ||||
| 		"ghcr.io/matrixgpt/matrix-chatgpt-bot" | ||||
| 	] | ||||
| 	], | ||||
| 	"pre-commit": { | ||||
| 		"enabled": true | ||||
| 	} | ||||
| } | ||||
|   | ||||
							
								
								
									
										12
									
								
								.github/workflows/matrix.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/matrix.yml
									
									
									
									
										vendored
									
									
								
							| @@ -7,9 +7,7 @@ | ||||
| --- | ||||
| name: Matrix CI | ||||
|  | ||||
| on:  # yamllint disable-line rule:truthy | ||||
|   push: | ||||
|   pull_request: | ||||
| on: [push, pull_request]  # yamllint disable-line rule:truthy | ||||
|  | ||||
| jobs: | ||||
|   yamllint: | ||||
| @@ -30,3 +28,11 @@ jobs: | ||||
|         uses: ansible-community/ansible-lint-action@v6.17.0 | ||||
|         with: | ||||
|           path: roles/custom | ||||
|   precommit: | ||||
|     name: Run pre-commit | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v4 | ||||
|       - name: Run pre-commit | ||||
|         uses: pre-commit/action@v3.0.1 | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/reuse.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/reuse.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,20 +0,0 @@ | ||||
| # SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org> | ||||
| # | ||||
| # SPDX-License-Identifier: CC0-1.0 | ||||
| --- | ||||
| name: REUSE Compliance Check | ||||
|  | ||||
| on: [push, pull_request]  # yamllint disable-line rule:truthy | ||||
|  | ||||
| permissions: | ||||
|   contents: read | ||||
|  | ||||
| jobs: | ||||
|   reuse-compliance-check: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: REUSE Compliance Check | ||||
|         uses: fsfe/reuse-action@v5 | ||||
							
								
								
									
										26
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| --- | ||||
| default_install_hook_types: [pre-push] | ||||
|  | ||||
| exclude: "LICENSES/" | ||||
|  | ||||
| # See: https://pre-commit.com/hooks.html | ||||
| repos: | ||||
|   - repo: https://github.com/pre-commit/pre-commit-hooks | ||||
|     rev: v5.0.0 | ||||
|     hooks: | ||||
|       # - id: check-executables-have-shebangs | ||||
|       - id: check-added-large-files | ||||
|       - id: check-case-conflict | ||||
|       - id: check-json | ||||
|       - id: check-toml | ||||
|       - id: trailing-whitespace | ||||
|       - id: end-of-file-fixer | ||||
|   - repo: https://github.com/codespell-project/codespell | ||||
|     rev: v2.4.1 | ||||
|     hooks: | ||||
|       - id: codespell | ||||
|         args: ["--skip=*.po,*.pot,i18n/"] | ||||
|   - repo: https://github.com/fsfe/reuse-tool  # https://reuse.software/dev/#pre-commit-hook | ||||
|     rev: v5.0.2 | ||||
|     hooks: | ||||
|       - id: reuse | ||||
| @@ -13,10 +13,12 @@ path = [ | ||||
|     "i18n/PUBLISHED_LANGUAGES", | ||||
|     "i18n/requirements.txt", | ||||
|     "roles/custom/**/*.repo", | ||||
|     ".codespellrc", | ||||
|     ".editorconfig", | ||||
|     ".envrc", | ||||
|     ".gitattributes", | ||||
|     ".gitignore", | ||||
|     ".pre-commit-config.yaml", | ||||
|     ".yamllint", | ||||
|     "ansible.cfg", | ||||
|     "flake.lock", | ||||
|   | ||||
| @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later | ||||
| # Setting up MX Puppet Discord bridging (optional) | ||||
|  | ||||
| **Note**: bridging to [Discord](https://discordapp.com/) can also happen via the [matrix-appservice-discord](configuring-playbook-bridge-appservice-discord.md)and [mautrix-discord](configuring-playbook-bridge-mautrix-discord.md) bridges supported by the playbook. | ||||
| - For using as a Bot we recommend the [Appservice Discord](configuring-playbook-bridge-appservice-discord.md), because it supports plumbing.   | ||||
| - For using as a Bot we recommend the [Appservice Discord](configuring-playbook-bridge-appservice-discord.md), because it supports plumbing. | ||||
| - For personal use with a discord account we recommend the [mautrix-discord](configuring-playbook-bridge-mautrix-discord.md) bridge, because it is the most fully-featured and stable of the 3 Discord bridges supported by the playbook. | ||||
|  | ||||
| The playbook can install and configure [mx-puppet-discord](https://gitlab.com/mx-puppet/discord/mx-puppet-discord) for you. | ||||
|   | ||||
| @@ -15,4 +15,4 @@ This is a helper component which is part of the [Matrix RTC stack](configuring-p | ||||
| Take a look at: | ||||
|  | ||||
| - `roles/custom/matrix-livekit-jwt-service/defaults/main.yml` for some variables that you can customize via your `vars.yml` file | ||||
| - `roles/custom/matrix-livekit-jwt-service/templates/env.j2` for the component's default configuration. | ||||
| - `roles/custom/matrix-livekit-jwt-service/templates/env.j2` for the component's default configuration. | ||||
|   | ||||
| @@ -35,4 +35,4 @@ To ensure LiveKit Server functions correctly, the following firewall rules and p | ||||
|  | ||||
| For some reason, LiveKit Server's TURN ports (`3479/udp` and `5350/tcp`) are not reachable over IPv6 regardless of whether you've [enabled IPv6](./configuring-ipv6.md) for your server. | ||||
|  | ||||
| It seems like LiveKit Server intentionally only listens on `udp4` and `tcp4` as seen [here](https://github.com/livekit/livekit/blob/154b4d26b769c68a03c096124094b97bf61a996f/pkg/service/turn.go#L128) and [here](https://github.com/livekit/livekit/blob/154b4d26b769c68a03c096124094b97bf61a996f/pkg/service/turn.go#L92). | ||||
| It seems like LiveKit Server intentionally only listens on `udp4` and `tcp4` as seen [here](https://github.com/livekit/livekit/blob/154b4d26b769c68a03c096124094b97bf61a996f/pkg/service/turn.go#L128) and [here](https://github.com/livekit/livekit/blob/154b4d26b769c68a03c096124094b97bf61a996f/pkg/service/turn.go#L92). | ||||
|   | ||||
| @@ -56,4 +56,4 @@ The shortcut commands with the [`just` program](just.md) are also available: `ju | ||||
|  | ||||
| Once installed, Matrix clients which support Element Call (like [Element Web](configuring-playbook-client-element-web.md) and Element X on mobile (iOS and Android)) will automatically use the Matrix RTC stack. | ||||
|  | ||||
| These clients typically embed the Element Call frontend UI within them, so installing [Element Call](configuring-playbook-element-call.md) is only necessary if you'd like to use it standalone - directly via a browser. | ||||
| These clients typically embed the Element Call frontend UI within them, so installing [Element Call](configuring-playbook-element-call.md) is only necessary if you'd like to use it standalone - directly via a browser. | ||||
|   | ||||
| @@ -48,4 +48,4 @@ traefik.http.routers.matrix-element-call.tls.certResolver={{ matrix_element_call | ||||
|  | ||||
| {% endif %} | ||||
|  | ||||
| {{ matrix_element_call_container_labels_additional_labels }} | ||||
| {{ matrix_element_call_container_labels_additional_labels }} | ||||
|   | ||||
| @@ -1300,4 +1300,4 @@ | ||||
|   "uid": "xJUZ3xfmk", | ||||
|   "version": 15, | ||||
|   "weekStart": "" | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -1702,4 +1702,4 @@ | ||||
|   "uid": "x2_jWNF4k", | ||||
|   "version": 12, | ||||
|   "weekStart": "" | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -1702,4 +1702,4 @@ | ||||
|   "uid": "x2_jWNF4k", | ||||
|   "version": 12, | ||||
|   "weekStart": "" | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -2743,4 +2743,4 @@ | ||||
|   "uid": "c84624d7-3935-4470-83c0-c10d1cee35ff", | ||||
|   "version": 2, | ||||
|   "weekStart": "" | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user