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

  1. exclude: |
  2. (?x)
  3. # NOT INSTALLABLE ADDONS
  4. # END NOT INSTALLABLE ADDONS
  5. # Files and folders generated by bots, to avoid loops
  6. ^setup/|/static/description/index\.html$|
  7. # We don't want to mess with tool-generated files
  8. .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
  9. # Maybe reactivate this when all README files include prettier ignore tags?
  10. ^README\.md$|
  11. # Library files can have extraneous formatting (even minimized)
  12. /static/(src/)?lib/|
  13. # Repos using Sphinx to generate docs don't need prettying
  14. ^docs/_templates/.*\.html$|
  15. # You don't usually want a bot to modify your legal texts
  16. (LICENSE.*|COPYING.*)
  17. default_language_version:
  18. python: python3
  19. repos:
  20. - repo: https://github.com/oca/maintainer-tools
  21. rev: ab1d7f6
  22. hooks:
  23. # update the NOT INSTALLABLE ADDONS section above
  24. - id: oca-update-pre-commit-excluded-addons
  25. - id: oca-fix-manifest-website
  26. args: ["https://github.com/OCA/bank-statement-import"]
  27. - repo: https://github.com/acsone/setuptools-odoo
  28. rev: 3.0.6
  29. hooks:
  30. - id: setuptools-odoo-make-default
  31. - id: setuptools-odoo-get-requirements
  32. args:
  33. - --output
  34. - requirements.txt
  35. - --header
  36. - "# generated from manifests external_dependencies"
  37. - repo: https://github.com/OCA/mirrors-flake8
  38. rev: v3.4.1
  39. hooks:
  40. - id: flake8
  41. name: flake8 excluding __init__.py
  42. exclude: __init__\.py
  43. - repo: https://github.com/pre-commit/mirrors-pylint
  44. rev: v2.5.3
  45. hooks:
  46. - id: pylint
  47. name: pylint with optional checks
  48. args:
  49. - --rcfile=.pylintrc
  50. - --exit-zero
  51. verbose: true
  52. additional_dependencies: &pylint_deps
  53. - pylint-odoo==3.5.0
  54. - id: pylint
  55. name: pylint with mandatory checks
  56. args:
  57. - --rcfile=.pylintrc-mandatory
  58. additional_dependencies: *pylint_deps