1
0
AMUseBot/.pre-commit-config.yaml

75 lines
2.1 KiB
YAML
Raw Normal View History

2023-04-23 09:38:21 +02:00
default_language_version:
python: python3.10.10
2023-03-12 07:31:02 +01:00
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: [ ]
submodules: false
default_stages: [ commit, push ]
2023-04-16 03:13:14 +02:00
files: ^(ai_talks/)
2023-03-12 07:31:02 +01:00
exclude_types: [ css, toml, template ]
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
2023-04-26 11:31:16 +02:00
- id: check-added-large-files
2023-03-12 07:31:02 +01:00
- id: detect-private-key
- id: requirements-txt-fixer
2023-04-15 22:55:58 +02:00
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-toml
- id: check-xml
- id: debug-statements
- id: destroyed-symlinks
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: name-tests-test
- id: check-docstring-first
- id: check-json
- id: check-yaml
args: [ --unsafe ]
- id: debug-statements
2023-03-12 07:31:02 +01:00
- repo: https://github.com/charliermarsh/ruff-pre-commit
2023-04-23 21:33:19 +02:00
rev: v0.0.262
2023-03-12 07:31:02 +01:00
hooks:
- id: ruff
2023-04-15 22:55:58 +02:00
exclude: ^tests/
2023-04-23 21:33:19 +02:00
# args: [--fix, --exit-non-zero-on-fix]
2023-03-12 07:31:02 +01:00
- repo: https://github.com/abravalheri/validate-pyproject
2023-04-15 22:55:58 +02:00
rev: v0.12.2
2023-03-12 07:31:02 +01:00
hooks:
- id: validate-pyproject
- repo: https://github.com/pre-commit/pygrep-hooks
2023-04-15 22:55:58 +02:00
rev: v1.10.0
2023-03-12 07:31:02 +01:00
hooks:
- id: python-check-mock-methods
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- id: text-unicode-replacement-char
2023-04-26 11:31:16 +02:00
2023-04-29 11:53:35 +02:00
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.2.0
# hooks:
# - id: mypy
# additional_dependencies: [ types-PyYAML==6.0.10, types_requests==2.28.8, types-ujson==5.6.0 ]
# args: [ --ignore-missing-imports, --warn-no-return, --warn-redundant-casts, --disallow-incomplete-defs ]
# exclude: ^setup.py