You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.9 KiB
59 lines
1.9 KiB
exclude: |
|
|
(?x)
|
|
# NOT INSTALLABLE ADDONS
|
|
# END NOT INSTALLABLE ADDONS
|
|
# Files and folders generated by bots, to avoid loops
|
|
^setup/|/static/description/index\.html$|
|
|
# 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$|
|
|
# Library files can have extraneous formatting (even minimized)
|
|
/static/(src/)?lib/|
|
|
# Repos using Sphinx to generate docs don't need prettying
|
|
^docs/_templates/.*\.html$|
|
|
# You don't usually want a bot to modify your legal texts
|
|
(LICENSE.*|COPYING.*)
|
|
default_language_version:
|
|
python: python3
|
|
repos:
|
|
- repo: https://github.com/oca/maintainer-tools
|
|
rev: ab1d7f6
|
|
hooks:
|
|
# update the NOT INSTALLABLE ADDONS section above
|
|
- id: oca-update-pre-commit-excluded-addons
|
|
- id: oca-fix-manifest-website
|
|
args: ["https://github.com/OCA/bank-statement-import"]
|
|
- repo: https://github.com/acsone/setuptools-odoo
|
|
rev: 3.0.6
|
|
hooks:
|
|
- id: setuptools-odoo-make-default
|
|
- id: setuptools-odoo-get-requirements
|
|
args:
|
|
- --output
|
|
- requirements.txt
|
|
- --header
|
|
- "# generated from manifests external_dependencies"
|
|
- repo: https://github.com/OCA/mirrors-flake8
|
|
rev: v3.4.1
|
|
hooks:
|
|
- id: flake8
|
|
name: flake8 excluding __init__.py
|
|
exclude: __init__\.py
|
|
- repo: https://github.com/pre-commit/mirrors-pylint
|
|
rev: v2.5.3
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint with optional checks
|
|
args:
|
|
- --rcfile=.pylintrc
|
|
- --exit-zero
|
|
verbose: true
|
|
additional_dependencies: &pylint_deps
|
|
- pylint-odoo==3.5.0
|
|
- id: pylint
|
|
name: pylint with mandatory checks
|
|
args:
|
|
- --rcfile=.pylintrc-mandatory
|
|
additional_dependencies: *pylint_deps
|
|
|