pre-commit-vauxoo 8.3.22__tar.gz → 8.3.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.bumpversion.cfg +1 -1
  2. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ChangeLog +18 -0
  3. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/PKG-INFO +19 -1
  4. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/README.rst +2 -2
  5. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/conf.py +1 -1
  6. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/__manifest__.py +1 -1
  7. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/setup.py +1 -1
  8. pre_commit_vauxoo-8.3.24/src/pre_commit_vauxoo/__init__.py +1 -0
  9. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc-optional.jinja +3 -3
  10. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.flake8-optional.jinja → pre_commit_vauxoo-8.3.24/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.flake8.jinja +21 -21
  11. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.oca_hooks-autofix.cfg.jinja +1 -0
  12. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config-autofix.yaml.jinja +2 -2
  13. pre_commit_vauxoo-8.3.24/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config-optional.yaml.jinja +42 -0
  14. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config.yaml.jinja +36 -4
  15. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pylintrc.jinja +16 -9
  16. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-autofix.toml.jinja +4 -4
  17. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-experimental.toml.jinja +11 -9
  18. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff.toml.jinja +219 -26
  19. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/pre_commit_vauxoo.py +35 -12
  20. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/PKG-INFO +19 -1
  21. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/SOURCES.txt +1 -3
  22. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/data_ruff/ruff_mandatory_use_cases.txt +10 -0
  23. pre_commit_vauxoo-8.3.24/tests/data_ruff/ruff_odoo_method_use_cases.txt +24 -0
  24. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/test_pre_commit_vauxoo.py +190 -91
  25. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/variables.sh +5 -1
  26. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/__init__.py +0 -1
  27. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.flake8.jinja +0 -17
  28. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config-optional.yaml.jinja +0 -105
  29. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pylintrc-optional.jinja +0 -75
  30. pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-optional.toml.jinja +0 -239
  31. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.appveyor.yml +0 -0
  32. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.cookiecutterrc +0 -0
  33. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.coveragerc +0 -0
  34. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.github/workflows/github-actions.yml +0 -0
  35. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.readthedocs.yml +0 -0
  36. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/.travis.yml +0 -0
  37. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/AUTHORS.rst +0 -0
  38. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/CONTRIBUTING.rst +0 -0
  39. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/LICENSE +0 -0
  40. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/MANIFEST.in +0 -0
  41. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/bootstrap.py +0 -0
  42. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/requirements.txt +0 -0
  43. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/templates/.appveyor.yml +0 -0
  44. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/templates/.github/workflows/github-actions.yml +0 -0
  45. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/templates/.travis.yml +0 -0
  46. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/ci/templates/tox.ini +0 -0
  47. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/authors.rst +0 -0
  48. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/changelog.rst +0 -0
  49. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/contributing.rst +0 -0
  50. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/index.rst +0 -0
  51. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/readme.rst +0 -0
  52. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/requirements.txt +0 -0
  53. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/docs/spelling_wordlist.txt +0 -0
  54. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/pytest.ini +0 -0
  55. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/requirements.txt +0 -0
  56. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/README.rst +0 -0
  57. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/__init__.py +0 -0
  58. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/__manifest__.py +0 -0
  59. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/demo/demo.xml +0 -0
  60. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/models/__init__.py +0 -0
  61. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/models/models.py +0 -0
  62. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/security/ir.model.access.csv +0 -0
  63. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_autofix1/views/views.xml +0 -0
  64. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/README.rst +0 -0
  65. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/__init__.py +0 -0
  66. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/deactivate.jinja +0 -0
  67. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/demo/demo.xml +0 -0
  68. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/models/__init__.py +0 -0
  69. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/models/markupsafe_sanitized.py +0 -0
  70. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/models/models.py +0 -0
  71. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/security/ir.model.access.csv +0 -0
  72. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/static/src/js/example.js +0 -0
  73. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_example1/views/views.xml +0 -0
  74. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_uninstallable/__init__.py +0 -0
  75. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_uninstallable/__manifest__.py +0 -0
  76. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_uninstallable/models/__init__.py +0 -0
  77. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_uninstallable/models/non_install.py +0 -0
  78. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/README.rst +0 -0
  79. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/__init__.py +0 -0
  80. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/__manifest__.py +0 -0
  81. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/demo/demo.xml +0 -0
  82. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/models/__init__.py +0 -0
  83. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/models/models.py +0 -0
  84. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/security/ir.model.access.csv +0 -0
  85. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/tests/data/ruff_optional_use_cases.py +0 -0
  86. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/resources/module_warnings1/views/views.xml +0 -0
  87. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/setup.cfg +0 -0
  88. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/__main__.py +0 -0
  89. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.bandit-optional.yml +0 -0
  90. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.editorconfig +0 -0
  91. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.eslintrc.config.mjs +0 -0
  92. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.isort.cfg +0 -0
  93. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.markdownlint-autofix.yaml.jinja +0 -0
  94. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg.jinja +0 -0
  95. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/.prettierrc.config.cjs.jinja +0 -0
  96. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/doc8.ini +0 -0
  97. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/pyproject.toml.jinja +0 -0
  98. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.bandit-experimental.yml.jinja +0 -0
  99. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.flake8-optional.jinja +0 -0
  100. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.flake8.jinja +0 -0
  101. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.oca_hooks-autofix.cfg.jinja +0 -0
  102. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config-autofix.yaml.jinja +0 -0
  103. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config-optional.yaml.jinja +0 -0
  104. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config.yaml.jinja +0 -0
  105. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc-experimental.jinja +0 -0
  106. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc.jinja +0 -0
  107. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.bandit-experimental.yml.jinja +0 -0
  108. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/cli.py +0 -0
  109. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/git_hook_pre_commit +0 -0
  110. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/hooks/__init__.py +0 -0
  111. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/hooks/check_commit_msg.py +0 -0
  112. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/hooks/check_deactivate_jinja.py +0 -0
  113. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/logging_colored.py +0 -0
  114. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo/version_check.py +0 -0
  115. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/dependency_links.txt +0 -0
  116. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/entry_points.txt +0 -0
  117. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/not-zip-safe +0 -0
  118. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/requires.txt +0 -0
  119. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/src/pre_commit_vauxoo.egg-info/top_level.txt +0 -0
  120. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/data_ruff/ruff_migrations_security_use_cases.txt +0 -0
  121. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/data_ruff/ruff_optional_bandit_use_cases.txt +0 -0
  122. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/diffs/module_autofix1_expected_10.diff +0 -0
  123. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/diffs/module_autofix1_expected_20.diff +0 -0
  124. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tests/diffs/module_autofix1_expected_30.diff +0 -0
  125. {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.24}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 8.3.22
2
+ current_version = 8.3.24
3
3
  commit = True
4
4
  tag = True
5
5
  sign_tags = True
@@ -1,6 +1,24 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ v8.3.24
5
+ -------
6
+
7
+ * Bump version: 8.3.23 → 8.3.24
8
+ * [IMP] cfg: report the removed, invalid and m2m label Odoo calls with ruff (#310)
9
+ * [IMP] cfg: report a field declared twice in the same class with ruff (#309)
10
+ * [IMP] cfg: Update oca-checks-odoo-module to v0.2.27 (#306)
11
+ * [IMP] cfg: Update ruff-odoo to 0.17.0.35 (#308)
12
+ * [IMP] cfg: converge the optional checks into the mandatory ones for ruff (#304)
13
+
14
+ v8.3.23
15
+ -------
16
+
17
+ * Bump version: 8.3.22 → 8.3.23
18
+ * [IMP] cfg: Update ruff-odoo to 0.16.3.35
19
+ * [IMP] pre\_commit\_vauxoo: do not log every file of a "--files" list
20
+ * [FIX] pre\_commit\_vauxoo: keep "--all" as the default scope
21
+
4
22
  v8.3.22
5
23
  -------
6
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pre-commit-vauxoo
3
- Version: 8.3.22
3
+ Version: 8.3.24
4
4
  Summary: pre-commit script to run automatically the configuration and variables custom from Vauxoo
5
5
  Home-page: https://github.com/Vauxoo/pre-commit-vauxoo
6
6
  Author: Vauxoo
@@ -439,6 +439,24 @@ without touching the package's own ``.bumpversion.cfg``.
439
439
  CHANGES
440
440
  =======
441
441
 
442
+ v8.3.24
443
+ -------
444
+
445
+ * Bump version: 8.3.23 → 8.3.24
446
+ * [IMP] cfg: report the removed, invalid and m2m label Odoo calls with ruff (#310)
447
+ * [IMP] cfg: report a field declared twice in the same class with ruff (#309)
448
+ * [IMP] cfg: Update oca-checks-odoo-module to v0.2.27 (#306)
449
+ * [IMP] cfg: Update ruff-odoo to 0.17.0.35 (#308)
450
+ * [IMP] cfg: converge the optional checks into the mandatory ones for ruff (#304)
451
+
452
+ v8.3.23
453
+ -------
454
+
455
+ * Bump version: 8.3.22 → 8.3.23
456
+ * [IMP] cfg: Update ruff-odoo to 0.16.3.35
457
+ * [IMP] pre\_commit\_vauxoo: do not log every file of a "--files" list
458
+ * [FIX] pre\_commit\_vauxoo: keep "--all" as the default scope
459
+
442
460
  v8.3.22
443
461
  -------
444
462
 
@@ -50,9 +50,9 @@ Overview
50
50
  :alt: Supported versions
51
51
  :target: https://pypi.org/project/pre-commit-vauxoo
52
52
 
53
- .. |commits-since| image:: https://img.shields.io/github/commits-since/Vauxoo/pre-commit-vauxoo/v8.3.22.svg
53
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/Vauxoo/pre-commit-vauxoo/v8.3.24.svg
54
54
  :alt: Commits since latest release
55
- :target: https://github.com/Vauxoo/pre-commit-vauxoo/compare/v8.3.22...main
55
+ :target: https://github.com/Vauxoo/pre-commit-vauxoo/compare/v8.3.24...main
56
56
 
57
57
 
58
58
 
@@ -18,7 +18,7 @@ project = "pre-commit-vauxoo"
18
18
  year = "2022"
19
19
  author = "Vauxoo"
20
20
  copyright = f"{year}, {author}"
21
- version = release = "8.3.22"
21
+ version = release = "8.3.24"
22
22
 
23
23
  pygments_style = "trac"
24
24
  templates_path = ["."]
@@ -13,7 +13,7 @@
13
13
  "depends": ["base"],
14
14
  # always loaded
15
15
  "data": [
16
- # 'security/ir.model.access.csv',
16
+ "security/ir.model.access.csv",
17
17
  "views/views.xml",
18
18
  ],
19
19
  # only loaded in demonstration mode
@@ -37,7 +37,7 @@ def read(*names, **kwargs):
37
37
 
38
38
  setup(
39
39
  name="pre-commit-vauxoo",
40
- version="8.3.22",
40
+ version="8.3.24",
41
41
  license="LGPL-3.0-or-later",
42
42
  description="pre-commit script to run automatically the configuration and variables custom from Vauxoo",
43
43
  long_description_content_type="text/x-rst",
@@ -0,0 +1 @@
1
+ __version__ = "8.3.24"
@@ -32,9 +32,9 @@ enable=deprecated-method,
32
32
  use-symbolic-message-instead,
33
33
  useless-parent-delegation,
34
34
  # The following checks are migrated to ruff when it is enabled
35
- # They keep the same optional level running from .config/.ruff-optional.toml, except the ones
36
- # annotated as "mandatory .ruff.toml": those were also enabled by the "enable=all" of
37
- # .config/.pylintrc so they keep the mandatory level
35
+ # They all run from .config/.ruff.toml there: the ruff optional configuration was merged into
36
+ # the mandatory one, so the "mandatory .ruff.toml" annotations below only record which ones
37
+ # were already enabled by the "enable=all" of .config/.pylintrc before that merge
38
38
  # The autofixable ones are also fixed from .config/.ruff-autofix.toml (annotated as "autofix")
39
39
  attribute-deprecated, # ruff ODW8105
40
40
  attribute-string-redundant, # ruff ODW8113 (autofix .ruff-autofix.toml)
@@ -1,4 +1,25 @@
1
1
  [flake8]
2
+ # The pyflakes (F) and most of the pycodestyle (E,W) checks were migrated to ruff (.config/.ruff.toml)
3
+ # Only the continuation-line indentation rules (E12x/E13x) and E704 keep running here
4
+ # since ruff does not implement them https://github.com/astral-sh/ruff/issues/2402
5
+ # The optional flake8 configuration was merged into this one, so the bugbear checks without a
6
+ # ruff implementation run from here too (B040, B042, B906, B908, B910 and any future one)
7
+ # B = bugbear
8
+ # B9 = bugbear opinionated (incl line length +10% tolerance)
9
+ select = E12,E13,E704,B,B9
10
+ # E123,E133 keep being ignored (same as before the ruff migration)
11
+ # - B001 is covered by ruff E722 and B902 by ruff N804/N805 (both from .config/.ruff.toml)
12
+ # - B037 is covered by the ruff return-in-init and yield-in-init, and B041 by the ruff
13
+ # multi-value-repeated-key-literal and multi-value-repeated-key-variable (the pyflakes F601/F602
14
+ # selected from the "F" of .config/.ruff.toml). Both were reported twice, by ruff and by bugbear
15
+ # - B043 is implemented in ruff as del-attr-with-constant, now selected from .config/.ruff.toml
16
+ # - B912: map(strict=True) only works in python >= 3.14 (same reason as B905)
17
+ # - B023,B024,B036,B904,B905,B907 were already ignored before the ruff migration (see comments below)
18
+ # - B950 (line length with a 10% tolerance) is reproduced by the ruff line-too-long selected in
19
+ # .config/.ruff.toml, where "line-length" is the 119 the formatter targets and
20
+ # [lint.pycodestyle] "max-line-length" the 130 where the check starts reporting
21
+ # - The remaining B0xx/B9xx checks are implemented in ruff (.config/.ruff.toml)
22
+ ignore = E123,E133,B001,B002,B003,B004,B005,B006,B007,B008,B009,B010,B011,B012,B013,B014,B015,B016,B017,B018,B019,B020,B021,B022,B023,B024,B025,B026,B027,B028,B029,B030,B031,B032,B033,B034,B035,B036,B037,B039,B041,B043,B901,B902,B903,B904,B905,B907,B909,B911,B912,B950
2
23
  max-line-length = 119
3
24
  # flake8 spells its parallel mode "auto", not 0 like pylint does: a numeric 0 is taken
4
25
  # literally as "0 jobs", which makes flake8 fall back to run_serial() and check every file
@@ -9,24 +30,3 @@ jobs = auto
9
30
  # Names injected at runtime, from LINT_ADDITIONAL_BUILTINS
10
31
  builtins = {{ additional_builtins | join(",") }}
11
32
  {%- endif %}
12
- # The E,W,F and most of the bugbear (B) checks were migrated to ruff
13
- # (.config/.ruff.toml for the mandatory ones and .config/.ruff-optional.toml for the optional ones)
14
- # Only the bugbear checks without a ruff implementation keep running here: B040, B042, B906,
15
- # B908, B910 and any future bugbear check
16
- # B = bugbear
17
- # B9 = bugbear opinionated (incl line length +10% tolerance)
18
- select = B,B9
19
- # - B001 is covered by ruff E722 and B902 by ruff N804/N805 (both mandatory .config/.ruff.toml)
20
- # - B037 is covered by the ruff return-in-init and yield-in-init, and B041 by the ruff
21
- # multi-value-repeated-key-literal and multi-value-repeated-key-variable (the pyflakes F601/F602
22
- # selected from the "F" of the mandatory .config/.ruff.toml). Both were reported twice, by ruff
23
- # at the mandatory level and by bugbear at this one
24
- # - B043 is implemented in ruff as del-attr-with-constant, now selected from
25
- # .config/.ruff-optional.toml so it keeps the very same optional level it had here
26
- # - B912: map(strict=True) only works in python >= 3.14 (same reason as B905)
27
- # - B023,B024,B036,B904,B905,B907 were already ignored before the ruff migration (see comments below)
28
- # - B950 (line length with a 10% tolerance) is reproduced by the ruff line-too-long selected in
29
- # .config/.ruff-optional.toml, where "line-length" is the 119 the formatter targets and
30
- # [lint.pycodestyle] "max-line-length" the 130 where the check starts reporting
31
- # - The remaining B0xx/B9xx checks are implemented in ruff (.config/.ruff-optional.toml)
32
- ignore = B001,B002,B003,B004,B005,B006,B007,B008,B009,B010,B011,B012,B013,B014,B015,B016,B017,B018,B019,B020,B021,B022,B023,B024,B025,B026,B027,B028,B029,B030,B031,B032,B033,B034,B035,B036,B037,B039,B041,B043,B901,B902,B903,B904,B905,B907,B909,B911,B912,B950
@@ -3,6 +3,7 @@ enable=po-pretty-format,
3
3
  {%- if oca_hooks_matrix_value >= 20 %}
4
4
  prefer-readme-rst,
5
5
  xml-deprecated-qweb-directive-15,
6
+ xml-deprecated-res-groups-category-id,
6
7
  xml-field-bool-without-eval,
7
8
  xml-field-numeric-without-eval,
8
9
  xml-header-missing,
@@ -32,7 +32,7 @@ default_language_version:
32
32
  node: "26.7.0"
33
33
  repos:
34
34
  - repo: https://github.com/Vauxoo/ruff-odoo-pre-commit
35
- rev: 0.16.3.34{# b2v-ruff #}
35
+ rev: 0.17.0.35{# b2v-ruff #}
36
36
  hooks:
37
37
  - id: ruff-check
38
38
  name: ruff-odoo autofix checks
@@ -45,7 +45,7 @@ repos:
45
45
  args:
46
46
  - --config=.config/.ruff-autofix.toml
47
47
  - repo: https://github.com/OCA/odoo-pre-commit-hooks
48
- rev: v0.2.26
48
+ rev: v0.2.27
49
49
  hooks:
50
50
  - id: oca-checks-odoo-module
51
51
  args:
@@ -0,0 +1,42 @@
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/|
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
+ (\.travis\.yml|\.gitlab\-ci\.yml|\.pre\-commit\-config*\.yaml)|
18
+ # It was ignored from original MQT since that there is not init file
19
+ (/migrations/1[0-4])|
20
+ {% if exclude_lint_regex -%}
21
+ {{ "# EXCLUDE_LINT" }}
22
+ {{ exclude_lint_regex }}
23
+ {%- endif %}
24
+ (/doc/|/docs/)
25
+ )
26
+ default_language_version:
27
+ python: python3
28
+ node: "26.7.0"
29
+ repos:
30
+ # Every optional hook was converged into .pre-commit-config.yaml: the checks it used to run
31
+ # are reported by the mandatory ruff-odoo, flake8 and pylint hooks now, and the oca-checks,
32
+ # doc8 and commit-log hooks moved there as they were. Only the EXPERIMENTAL checks keep a
33
+ # level that does not affect the build status, which is what this configuration runs
34
+ - repo: https://github.com/Vauxoo/ruff-odoo-pre-commit
35
+ rev: 0.17.0.35{# b2v-ruff #}
36
+ hooks:
37
+ - id: ruff-check
38
+ name: ruff-odoo EXPERIMENTAL checks (Won't affect CI status)!
39
+ verbose: True # exit-zero needs verbose
40
+ args:
41
+ - --config=.config/.ruff-experimental.toml
42
+ - --exit-zero
@@ -28,10 +28,10 @@ default_language_version:
28
28
  node: "26.7.0"
29
29
  repos:
30
30
  - repo: https://github.com/Vauxoo/ruff-odoo-pre-commit
31
- rev: 0.16.3.34{# b2v-ruff #}
31
+ rev: 0.17.0.35{# b2v-ruff #}
32
32
  hooks:
33
33
  - id: ruff-check
34
- name: ruff-odoo mandatory checks
34
+ name: ruff-odoo checks
35
35
  args:
36
36
  - --config=.config/.ruff.toml
37
37
  - repo: https://github.com/PyCQA/flake8
@@ -42,7 +42,12 @@ repos:
42
42
  {%- endif %}
43
43
  hooks:
44
44
  - id: flake8
45
- name: flake8 mandatory checks
45
+ name: flake8 + bugbear checks
46
+ {%- if flake8_matrix_value >= 20 %}
47
+ additional_dependencies: ["flake8-bugbear==25.11.29"]
48
+ {%- else %}
49
+ additional_dependencies: ["flake8-bugbear==23.9.16"]
50
+ {%- endif %}
46
51
  args:
47
52
  - --config=.config/.flake8
48
53
  - repo: https://github.com/OCA/pylint-odoo
@@ -53,13 +58,33 @@ repos:
53
58
  {%- endif %}
54
59
  hooks:
55
60
  - id: pylint_odoo
56
- name: pylint mandatory checks
61
+ name: pylint checks
57
62
  args:
58
63
  - --rcfile=.config/.pylintrc
59
64
  - --disable={{ pylint_disable_checks | join(",") if pylint_disable_checks else "R0000" }}
60
65
  {%- if pylint_matrix_value >= 20 %}
61
66
  - --jobs=3
62
67
  {%- endif %}
68
+ - repo: https://github.com/OCA/odoo-pre-commit-hooks
69
+ {%- if oca_hooks_matrix_value >= 20 %}
70
+ rev: v0.2.27
71
+ {%- else %}
72
+ rev: v0.1.7
73
+ {%- endif %}
74
+ hooks:
75
+ - id: oca-checks-odoo-module
76
+ args:
77
+ - --config=.config/.oca_hooks.cfg
78
+ - id: oca-checks-po
79
+ args:
80
+ - --config=.config/.oca_hooks.cfg
81
+ - repo: https://github.com/PyCQA/doc8
82
+ rev: v2.0.0
83
+ hooks:
84
+ - id: doc8
85
+ name: RST lint
86
+ args:
87
+ - --config=.config/doc8.ini
63
88
  - repo: https://github.com/pre-commit/mirrors-eslint
64
89
  rev: v10.8.1
65
90
  hooks:
@@ -84,6 +109,13 @@ repos:
84
109
  language: python
85
110
  types: [text]
86
111
  files: (^deactivate\.jinja$|/data/neutralize\.sql$)
112
+ - id: vx-check-commit-log
113
+ name: commit message range check
114
+ description: Validate commit messages from VERSION..HEAD using the Odoo/Vauxoo structure.
115
+ entry: vx-check-commit-log
116
+ language: python
117
+ pass_filenames: false
118
+ always_run: true
87
119
  - repo: https://github.com/pre-commit/pre-commit-hooks
88
120
  {%- if pre_commit_matrix_value >= 20 %}
89
121
  rev: v6.0.0
@@ -13,9 +13,21 @@ py-version={{ py_version }}
13
13
 
14
14
 
15
15
  [ODOOLINT]
16
+ # The checks using license-allowed, manifest-required-authors and manifest-deprecated-keys are
17
+ # migrated to ruff, so the values actually running are the [lint.odoo] ones of
18
+ # .config/.ruff.toml, kept here in sync for the external scripts replacing this section
19
+ license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,
20
+ GPL-3,GPL-3 or any later version,LGPL-3,
21
+ Other OSI approved licence,Other proprietary,
22
+ OEEL-1, OPL-1,
16
23
  manifest-required-authors=Vauxoo,
17
24
  Odoo Community Association (OCA),
18
25
  Jarsa,
26
+ manifest-deprecated-keys=active,
27
+ description,
28
+ {% if odoo_version and odoo_version|float >= 16.0 -%}
29
+ qweb,
30
+ {%- endif %}
19
31
  # External scripts odoo_lint replace
20
32
 
21
33
  [MESSAGES CONTROL]
@@ -37,8 +49,6 @@ disable=abstract-method,
37
49
  consider-using-ternary,
38
50
  consider-using-generator,
39
51
  cyclic-import,
40
- deprecated-pragma,
41
- deprecated-method,
42
52
  docstring-first-line-empty,
43
53
  duplicate-code,
44
54
  file-ignored,
@@ -80,17 +90,16 @@ disable=abstract-method,
80
90
  unused-private-member,
81
91
  use-dict-literal,
82
92
  use-implicit-booleaness-not-comparison-to-string,
83
- use-implicit-booleaness-not-comparison-to-zero,
84
93
  useless-option-value,
85
94
  unknown-option-value,
86
- use-symbolic-message-instead,
87
95
  useless-suppression,
88
96
  wrong-import-order,
89
97
  wrong-import-position,
90
98
  # Disabled here because enabled from Experimental
91
99
  manifest-superfluous-key,
92
100
  no-search-all,
93
- # odoolint disable all to be enabled from optional
101
+ # odoolint checks reported by ruff-odoo from .config/.ruff.toml (they were the optional
102
+ # pylint-odoo ones before the optional configuration was merged into the mandatory one)
94
103
  # Comment to enable
95
104
  attribute-deprecated,
96
105
  attribute-string-redundant,
@@ -135,9 +144,7 @@ disable=abstract-method,
135
144
  use-vim-comment,
136
145
  website-manifest-key-not-valid-uri,
137
146
  # Checks migrated to ruff (see .config/.ruff.toml)
138
- # They are disabled here to avoid duplicated reports since ruff runs them as mandatory checks,
139
- # except the ones annotated with the configuration file running them (e.g. use-list-literal,
140
- # which a single ruff rule reports together with the optional use-dict-literal)
147
+ # They are disabled here to avoid duplicated reports since ruff runs them as mandatory checks
141
148
  anomalous-backslash-in-string, # ruff W605
142
149
  assert-on-string-literal, # ruff PLW0129
143
150
  assert-on-tuple, # ruff F631
@@ -324,7 +331,7 @@ disable=abstract-method,
324
331
  unused-variable, # ruff F841
325
332
  use-a-generator, # ruff C419
326
333
  use-implicit-booleaness-not-len, # ruff PLC1802
327
- use-list-literal, # ruff C408 (moved to the optional level with use-dict-literal)
334
+ use-list-literal, # ruff C408 (a single rule reports it together with use-dict-literal)
328
335
  use-maxsplit-arg, # ruff PLC0207
329
336
  use-sequence-for-iteration, # ruff PLC0208
330
337
  use-yield-from, # ruff UP028
@@ -21,9 +21,9 @@ line-ending = "lf"
21
21
  # manifest-deprecated-key, use-vim-comment, unused-logger, attribute-string-redundant,
22
22
  # prefer-env-translation, manifest-superfluous-key, header-comments, deprecated-self-cr,
23
23
  # manifest-data-duplicated and translation-not-lazy
24
- # The remaining Odoo checks keep the same level they had in pylint-odoo: the mandatory ones from
25
- # .ruff.toml and the optional ones from .ruff-optional.toml. no-search-all is the exception: it
26
- # was experimental in pylint-odoo and now runs as mandatory from .ruff.toml
24
+ # The remaining Odoo checks are reported from .ruff.toml, the mandatory ones of pylint-odoo and
25
+ # the optional ones alike (the optional configuration was merged into it). no-search-all was
26
+ # experimental in pylint-odoo and now runs as mandatory from .ruff.toml too
27
27
  # Version-dependent gating (prefer-env-translation only applies for odoo >= 18.0,
28
28
  # deprecated-self-cr for odoo >= 19.0 and translation-not-lazy for odoo >= 14.0) is handled
29
29
  # by ruff-odoo's internal logic when --odoo-version
@@ -146,7 +146,7 @@ ignore = [
146
146
  # reason). It is the only one of those with an autofix, so the
147
147
  # "ALL" above would keep rewriting the translation terms even
148
148
  # though no level reports it
149
- "triple-single-quotes", # Reported from the optional configuration (bad-docstring-quotes)
149
+ "triple-single-quotes", # Reported from .ruff.toml (bad-docstring-quotes)
150
150
  "true-false-comparison", # "var != True" is different than "not var"
151
151
  "type-alias-without-annotation", # We are not using typing entirely yet
152
152
  "uncapitalized-environment-variables", # It could generate issues and we are not using WIN
@@ -2,6 +2,8 @@
2
2
  # It replaces the pylint-odoo and bandit experimental checks already implemented in ruff, keeping
3
3
  # the same level they had before the ruff migration (see .config/.pylintrc-experimental and
4
4
  # .config/.bandit-experimental.yml without ruff)
5
+ # It is the only ruff configuration left with a level of its own: the optional one was merged
6
+ # into the mandatory .config/.ruff.toml
5
7
  line-length = 119
6
8
  # Required to select the checks by name instead of by code (selecting rules by name requires
7
9
  # preview mode)
@@ -10,7 +12,7 @@ target-version = "{{ py_target_version }}" # Mapped from the odoo version (VERS
10
12
 
11
13
  [lint]
12
14
  # Only the experimental checks are selected, the "all" default would report the mandatory
13
- # and optional ones twice
15
+ # ones twice
14
16
  # manifest-superfluous-key was experimental too but it is autofixable, so it keeps running
15
17
  # from .ruff-autofix.toml (removing the superfluous keys is part of the autofixes enabled by
16
18
  # the compatibility version 30, see the --compatibility-version option)
@@ -55,14 +57,14 @@ ignore = [
55
57
  # and B311)
56
58
  "exec-builtin", # mandatory from .ruff.toml
57
59
  "suspicious-eval-usage", # mandatory from .ruff.toml
58
- "try-except-pass", # optional from .ruff-optional.toml, where it also replaces the
59
- # deprecated ruff-odoo except-pass, which reported the same handler
60
- "unsafe-markup-use", # optional from .ruff-optional.toml
61
- # Moved to the optional configuration: both are worth a look on every merge request and not
62
- # only when the developer opts into this hook, an assert being dropped by "python -O" and a
63
- # Mersenne Twister random being unfit for anything secret
64
- "assert", # optional from .ruff-optional.toml
65
- "suspicious-non-cryptographic-random-usage", # optional from .ruff-optional.toml
60
+ "try-except-pass", # mandatory from .ruff.toml, where it also replaces the deprecated
61
+ # ruff-odoo except-pass, which reported the same handler
62
+ "unsafe-markup-use", # mandatory from .ruff.toml
63
+ # Moved to the mandatory configuration: both are worth a look on every merge request and
64
+ # not only when the developer opts into this hook, an assert being dropped by "python -O"
65
+ # and a Mersenne Twister random being unfit for anything secret
66
+ "assert", # mandatory from .ruff.toml
67
+ "suspicious-non-cryptographic-random-usage", # mandatory from .ruff.toml
66
68
  ]
67
69
 
68
70
  [lint.per-file-ignores]