Init quality control tools (#1)
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m8s
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m8s
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
18
.gitea/workflows/lint.yaml
Normal file
18
.gitea/workflows/lint.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit-lint:
|
||||||
|
name: pre-commit Linting
|
||||||
|
runs-on: pi
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
- run: pip install pre-commit
|
||||||
|
shell: bash
|
||||||
|
- name: Pre Commit
|
||||||
|
run: SKIP=no-commit-to-branch pre-commit run -a
|
||||||
|
shell: bash
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -614,8 +614,8 @@ crash.log
|
|||||||
crash.*.log
|
crash.*.log
|
||||||
|
|
||||||
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
|
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
|
||||||
# password, private keys, and other secrets. These should not be part of version
|
# password, private keys, and other secrets. These should not be part of version
|
||||||
# control as they are data points which are potentially sensitive and subject
|
# control as they are data points which are potentially sensitive and subject
|
||||||
# to change depending on the environment.
|
# to change depending on the environment.
|
||||||
*.tfvars
|
*.tfvars
|
||||||
*.tfvars.json
|
*.tfvars.json
|
||||||
@@ -1073,4 +1073,3 @@ FodyWeavers.xsd
|
|||||||
|
|
||||||
# Built Visual Studio Code Extensions
|
# Built Visual Studio Code Extensions
|
||||||
*.vsix
|
*.vsix
|
||||||
|
|
||||||
|
|||||||
92
.pre-commit-config.yaml
Normal file
92
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v5.0.0
|
||||||
|
hooks:
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
exclude: (.txt$|.ipynb$|README.md$|readme.mde$)
|
||||||
|
- id: trailing-whitespace
|
||||||
|
exclude: (.txt$|README.md$)
|
||||||
|
# - id: check-yaml
|
||||||
|
- id: check-json
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-ast
|
||||||
|
- id: check-added-large-files
|
||||||
|
args: [--enforce-all]
|
||||||
|
- id: name-tests-test
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: check-docstring-first
|
||||||
|
- id: pretty-format-json
|
||||||
|
exclude: ipynb$
|
||||||
|
args: [--autofix, --no-sort-keys, --no-ensure-ascii]
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: no-commit-to-branch
|
||||||
|
args: [--branch, main]
|
||||||
|
|
||||||
|
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
# Ruff version.
|
||||||
|
rev: v0.12.3
|
||||||
|
hooks:
|
||||||
|
- id: ruff
|
||||||
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 25.1.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
args: [--config=pyproject.toml]
|
||||||
|
- id: black-jupyter
|
||||||
|
args: [--config=pyproject.toml]
|
||||||
|
|
||||||
|
|
||||||
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
|
rev: v2.15.0
|
||||||
|
hooks:
|
||||||
|
- id: pretty-format-ini
|
||||||
|
args: [--autofix]
|
||||||
|
- id: pretty-format-yaml
|
||||||
|
args: [--autofix]
|
||||||
|
- id: pretty-format-toml
|
||||||
|
args: [--autofix]
|
||||||
|
exclude: (^poetry.lock$)
|
||||||
|
|
||||||
|
- repo: https://github.com/frnmst/md-toc
|
||||||
|
rev: 9.0.0
|
||||||
|
hooks:
|
||||||
|
- id: md-toc
|
||||||
|
|
||||||
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-java
|
||||||
|
rev: 1.3.10
|
||||||
|
hooks:
|
||||||
|
- id: validate-html
|
||||||
|
|
||||||
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
||||||
|
rev: 0.3.4
|
||||||
|
hooks:
|
||||||
|
- id: auto-walrus
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: v4.0.0-alpha.8
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
types_or: [css, javascript]
|
||||||
|
|
||||||
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
|
rev: 0.27.3
|
||||||
|
hooks:
|
||||||
|
- id: check-jsonschema
|
||||||
|
name: Check Gitea Workflows
|
||||||
|
files: ^\.gitea/workflows/[^/]+$
|
||||||
|
types: [yaml]
|
||||||
|
args: [--builtin-schema, vendor.github-workflows]
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v5.0.0
|
||||||
|
hooks:
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
exclude: (.txt$|.ipynb$|README.md$|readme.mde$)
|
||||||
|
- id: trailing-whitespace
|
||||||
|
exclude: (.txt$|README.md$)
|
||||||
6
renovate.json
Normal file
6
renovate.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>server/Renovate-Template:renovate.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user