forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
82 lines (81 loc) · 3.12 KB
/
.pre-commit-config.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# __version__=2.0.4
# python2
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
^account_invoice_report_ddt_group/|
^l10n_eu_trial_balance/|
^l10n_it_CEE_balance_generic/|
^l10n_it_ateco/|
^l10n_it_base_crm/|
^l10n_it_bill_of_entry/|
^l10n_it_partially_deductible_vat/|
^l10n_it_prima_nota_cassa/|
^l10n_it_riba_commission/|
^l10n_it_vat_registries_cash_basis/|
^l10n_it_website_sale_corrispettivi/|
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/logs/|/static/description/index\.html$|
# No virtual environment, cache, sphynx, dist
^venv_odoo/|__pycache__/|_?build/|dist/|
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|README\.rst$
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
docs/|
# Examples and test data
/examples/|/tests/data/|
# PYPI
odoo_shell.py|z0lib/z0lib/tests/tmp[0-9]?.py|wok_code/wok_code/scripts/to_pep8.py|clodoo/clodoo/export_db_model.py|clodoo/clodoo/migrate_odoo_db.py|clodoo/clodoo/update_coa.py|
_check4deps_.py|testenv.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)|
# official goverment specs
(l10n_it_fatturapa/data/xsd|l10n_it_einvoice_base/data|l10n_it_ade/data|l10n_it_ade/bindings|l10n_it_vat_statement_communication/data|l10n_it_vat_statement_communication/data)|
# external stylesheets
(l10n_it_fatturapa/data/fatturaordinaria_v1.2.1.xsl|l10n_it_einvoice_base/static/src/fatturaordinaria_v1.2.1.xsl)|
(l10n_it_fatturapa/data/FoglioStileAssoSoftware_v1.1.xsl|l10n_it_einvoice_base/static/src/FoglioStileAssoSoftware_v1.1.xsl)|
default_language_version:
python: python3
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
# exclude autogenerated files
exclude: /README\.rst$|\.pot?$
- id: end-of-file-fixer
# exclude autogenerated files
exclude: /README\.rst$|\.pot?$
# - id: debug-statements
# - id: fix-encoding-pragma
# exclude: /testenv\.py$|/_check4deps_\.py$|conf\.py$|/tests/data/
- id: check-case-conflict
# - id: check-docstring-first
- id: check-executables-have-shebangs
# - id: check-shebang-scripts-are-executable
- id: check-merge-conflict
# exclude files where underlines are not distinguishable from merge conflicts
exclude: /README\.rst$|^docs/.*\.rst$
- id: check-symlinks
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
- id: requirements-txt-fixer
- repo: local
hooks:
- id: arcangelo
name: arcangelo
language: python
entry: arcangelo -i -b7.0
# odoo repositories
- id: please_docs
name: please docs
language: python
entry: please docs