generated from dadocracia/template_python_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
68 lines (51 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
68 lines (51 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
exclude: 'docs/|uv.lock|.venv|mkdocs.yaml'
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
name: Prevenção para Commits de Arquivos Grandes
- id: check-ast
name: Analisa Arquivos Python Válidos
- id: check-docstring-first
name: Previne Código Antes da Docstring
- id: check-json
name: Verificação de Arquivos JSON
- id: check-toml
name: Verificação de Arquivos TOML
- id: check-xml
name: Verificação de Arquivos XML
- id: check-yaml
name: Verificação de Arquivos YAML
- id: detect-private-key
name: Previne a Existência de Credenciais
- id: double-quote-string-fixer
name: Substitui Aspas Duplas por Aspas Simples
- id: end-of-file-fixer
name: Garante Arquivos com Última Linha em Branco
- id: name-tests-test
name: Verifica Se os Arquivos de Teste Foram Nomeados Adequadamente
- id: no-commit-to-branch
name: Previne Commit na Branch Main
args: [--branch, main]
- id: pretty-format-json
name: Formata Arquivos JSON
args: [--indent]
- id: requirements-txt-fixer
name: Ordena Importações dos Requirements.txt
- id: sort-simple-yaml
name: Ordena Conteúdo dos Arquivos YAML
- id: trailing-whitespace
name: Remove Espaços em Branco à Direita
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff
name: Linter do Ruff
types_or: [ python, pyi ]
args: [ --fix ]
- id: ruff-format
name: Formater do Ruff
types_or: [ python, pyi ]