2023-05-16 13:55:53 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-09 22:53:19 +03:00
|
|
|
rev: v4.5.0
|
2023-05-16 13:55:53 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
exclude: nextcloudappstore/scaffolding/app-templates/.*
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
\.tx/.*|
|
|
|
|
\.idea/.*|
|
|
|
|
locale/.*|
|
|
|
|
nextcloudappstore/core/static/.*|
|
|
|
|
nextcloudappstore/core/templates/.*|
|
|
|
|
nextcloudappstore/templates/.*|
|
|
|
|
nextcloudappstore/user/templates/.*
|
|
|
|
)$
|
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
\.tx/.*|
|
|
|
|
\.idea/.*|
|
|
|
|
locale/.*|
|
|
|
|
nextcloudappstore/core/static/.*|
|
|
|
|
nextcloudappstore/core/templates/.*|
|
|
|
|
nextcloudappstore/templates/.*|
|
|
|
|
nextcloudappstore/user/templates/.*
|
|
|
|
)$
|
|
|
|
- id: mixed-line-ending
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
\.tx/.*|
|
|
|
|
\.idea/.*|
|
|
|
|
locale/.*|
|
|
|
|
nextcloudappstore/core/static/.*|
|
|
|
|
nextcloudappstore/core/templates/.*|
|
|
|
|
nextcloudappstore/templates/.*|
|
|
|
|
nextcloudappstore/user/templates/.*
|
|
|
|
)$
|
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-12-18 22:55:25 +03:00
|
|
|
rev: 5.13.2
|
2023-05-16 13:55:53 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2023-05-17 11:42:35 +03:00
|
|
|
|
2023-05-17 13:29:33 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2024-02-13 01:59:28 +03:00
|
|
|
rev: 24.2.0
|
2023-05-17 13:29:33 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
exclude: nextcloudappstore/core/migrations
|
|
|
|
|
2023-07-08 13:35:13 +03:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2024-01-22 22:23:24 +03:00
|
|
|
rev: 1.7.0
|
2023-07-08 13:35:13 +03:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
|
|
|
|
2023-10-04 10:09:59 +03:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-03-13 18:54:36 +03:00
|
|
|
rev: v0.3.2
|
2023-10-04 10:09:59 +03:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
|
2023-05-17 12:25:53 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-03-13 18:54:36 +03:00
|
|
|
rev: v1.9.0
|
2023-05-17 12:25:53 +03:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
files: nextcloudappstore/(api/v1/release|certificate)/
|
|
|
|
additional_dependencies: [types-pyOpenSSL, types-requests, types-Markdown, types-bleach]
|
|
|
|
args:
|
|
|
|
- --ignore-missing-imports
|
|
|
|
|
2023-05-17 12:42:25 +03:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2024-01-08 22:41:14 +03:00
|
|
|
rev: 7.0.0
|
2023-05-17 12:42:25 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
files: nextcloudappstore
|
|
|
|
exclude: nextcloudappstore/core/migrations
|
|
|
|
types: [file, python]
|
|
|
|
args:
|
|
|
|
- --max-line-length=120
|
|
|
|
- --ignore=E203,W503
|
|
|
|
- --per-file-ignores=__init__.py:F401,F403
|
|
|
|
|
2023-05-17 11:42:35 +03:00
|
|
|
- repo: https://github.com/PyCQA/bandit
|
2024-03-13 18:54:36 +03:00
|
|
|
rev: 1.7.8
|
2023-05-17 11:42:35 +03:00
|
|
|
hooks:
|
|
|
|
- id: bandit
|
|
|
|
files: nextcloudappstore
|
|
|
|
args: [-r, -c, .bandit.yml]
|