pre-commit-vauxoo 8.3.22__tar.gz → 8.3.23__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.
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.bumpversion.cfg +1 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ChangeLog +8 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/PKG-INFO +9 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/README.rst +2 -2
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/conf.py +1 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/setup.py +1 -1
- pre_commit_vauxoo-8.3.23/src/pre_commit_vauxoo/__init__.py +1 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config-autofix.yaml.jinja +1 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config-optional.yaml.jinja +2 -2
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pre-commit-config.yaml.jinja +1 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/pre_commit_vauxoo.py +34 -11
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/PKG-INFO +9 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/test_pre_commit_vauxoo.py +49 -30
- pre_commit_vauxoo-8.3.22/src/pre_commit_vauxoo/__init__.py +0 -1
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.appveyor.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.cookiecutterrc +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.coveragerc +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.github/workflows/github-actions.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.readthedocs.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/.travis.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/AUTHORS.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/CONTRIBUTING.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/LICENSE +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/MANIFEST.in +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/bootstrap.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/requirements.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/templates/.appveyor.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/templates/.github/workflows/github-actions.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/templates/.travis.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/ci/templates/tox.ini +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/authors.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/changelog.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/contributing.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/index.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/readme.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/requirements.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/docs/spelling_wordlist.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/pytest.ini +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/requirements.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/README.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/__manifest__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/demo/demo.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/models/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/models/models.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/security/ir.model.access.csv +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/views/views.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/README.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/__manifest__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/deactivate.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/demo/demo.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/models/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/models/markupsafe_sanitized.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/models/models.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/security/ir.model.access.csv +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/static/src/js/example.js +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/views/views.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/__manifest__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/models/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/models/non_install.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/README.rst +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/__manifest__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/demo/demo.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/models/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/models/models.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/security/ir.model.access.csv +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/tests/data/ruff_optional_use_cases.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/views/views.xml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/setup.cfg +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/__main__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.bandit-optional.yml +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.editorconfig +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.eslintrc.config.mjs +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.isort.cfg +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.markdownlint-autofix.yaml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.prettierrc.config.cjs.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/doc8.ini +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/pyproject.toml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.bandit-experimental.yml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.flake8-optional.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.flake8.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.oca_hooks-autofix.cfg.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config-autofix.yaml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config-optional.yaml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pre-commit-config.yaml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc-experimental.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc-optional.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if not use_ruff %}no_ruff{% endif %}/.pylintrc.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.bandit-experimental.yml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.flake8-optional.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.flake8.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.oca_hooks-autofix.cfg.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pylintrc-optional.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.pylintrc.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-autofix.toml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-experimental.toml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff-optional.toml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/{% if use_ruff %}ruff{% endif %}/.ruff.toml.jinja +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cli.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/git_hook_pre_commit +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/hooks/__init__.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/hooks/check_commit_msg.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/hooks/check_deactivate_jinja.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/logging_colored.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/version_check.py +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/SOURCES.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/dependency_links.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/entry_points.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/not-zip-safe +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/requires.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/top_level.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/data_ruff/ruff_mandatory_use_cases.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/data_ruff/ruff_migrations_security_use_cases.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/data_ruff/ruff_optional_bandit_use_cases.txt +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_10.diff +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_20.diff +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_30.diff +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tox.ini +0 -0
- {pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/variables.sh +0 -0
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
v8.3.23
|
|
5
|
+
-------
|
|
6
|
+
|
|
7
|
+
* Bump version: 8.3.22 → 8.3.23
|
|
8
|
+
* [IMP] cfg: Update ruff-odoo to 0.16.3.35
|
|
9
|
+
* [IMP] pre\_commit\_vauxoo: do not log every file of a "--files" list
|
|
10
|
+
* [FIX] pre\_commit\_vauxoo: keep "--all" as the default scope
|
|
11
|
+
|
|
4
12
|
v8.3.22
|
|
5
13
|
-------
|
|
6
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre-commit-vauxoo
|
|
3
|
-
Version: 8.3.
|
|
3
|
+
Version: 8.3.23
|
|
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,14 @@ without touching the package's own ``.bumpversion.cfg``.
|
|
|
439
439
|
CHANGES
|
|
440
440
|
=======
|
|
441
441
|
|
|
442
|
+
v8.3.23
|
|
443
|
+
-------
|
|
444
|
+
|
|
445
|
+
* Bump version: 8.3.22 → 8.3.23
|
|
446
|
+
* [IMP] cfg: Update ruff-odoo to 0.16.3.35
|
|
447
|
+
* [IMP] pre\_commit\_vauxoo: do not log every file of a "--files" list
|
|
448
|
+
* [FIX] pre\_commit\_vauxoo: keep "--all" as the default scope
|
|
449
|
+
|
|
442
450
|
v8.3.22
|
|
443
451
|
-------
|
|
444
452
|
|
|
@@ -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.
|
|
53
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/Vauxoo/pre-commit-vauxoo/v8.3.23.svg
|
|
54
54
|
:alt: Commits since latest release
|
|
55
|
-
:target: https://github.com/Vauxoo/pre-commit-vauxoo/compare/v8.3.
|
|
55
|
+
:target: https://github.com/Vauxoo/pre-commit-vauxoo/compare/v8.3.23...main
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -37,7 +37,7 @@ def read(*names, **kwargs):
|
|
|
37
37
|
|
|
38
38
|
setup(
|
|
39
39
|
name="pre-commit-vauxoo",
|
|
40
|
-
version="8.3.
|
|
40
|
+
version="8.3.23",
|
|
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.23"
|
|
@@ -72,7 +72,7 @@ repos:
|
|
|
72
72
|
pass_filenames: false
|
|
73
73
|
always_run: true
|
|
74
74
|
- repo: https://github.com/Vauxoo/ruff-odoo-pre-commit
|
|
75
|
-
rev: 0.16.3.
|
|
75
|
+
rev: 0.16.3.35{# b2v-ruff #}
|
|
76
76
|
hooks:
|
|
77
77
|
- id: ruff-check
|
|
78
78
|
name: ruff-odoo optional checks
|
|
@@ -95,7 +95,7 @@ repos:
|
|
|
95
95
|
args:
|
|
96
96
|
- --config=.config/.flake8-optional
|
|
97
97
|
- repo: https://github.com/Vauxoo/ruff-odoo-pre-commit
|
|
98
|
-
rev: 0.16.3.
|
|
98
|
+
rev: 0.16.3.35{# b2v-ruff #}
|
|
99
99
|
hooks:
|
|
100
100
|
- id: ruff-check
|
|
101
101
|
name: ruff-odoo EXPERIMENTAL checks (Won't affect CI status)!
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/pre_commit_vauxoo.py
RENAMED
|
@@ -59,6 +59,9 @@ BASE_REF_ENVVAR = "PRECOMMIT_BASE_REF"
|
|
|
59
59
|
STABLE_REMOTE_NAME = "stb"
|
|
60
60
|
STABLE_URL_NAMESPACE = "vauxoo/"
|
|
61
61
|
|
|
62
|
+
# How many names of a "--files" list are printed when the command being run is logged
|
|
63
|
+
LOGGED_FILES_LIMIT = 10
|
|
64
|
+
|
|
62
65
|
# Commit message of "--autofixes-commit-by-module". "REF" is the tag for a change that
|
|
63
66
|
# does not modify the expected behavior and the target is the module the autofixes
|
|
64
67
|
# reformatted, both validated by the commit message check (see hooks/check_commit_msg.py)
|
|
@@ -679,9 +682,32 @@ def envfile2envdict(repo_dirname, source_file="variables.sh", no_overwrite_envir
|
|
|
679
682
|
return envdict
|
|
680
683
|
|
|
681
684
|
|
|
685
|
+
def format_command(command):
|
|
686
|
+
"""The command as a string, with a long "--files" list collapsed
|
|
687
|
+
|
|
688
|
+
A scope covering many files turns the logged command into a wall of paths that
|
|
689
|
+
buries the rest of the output, so only the first ones are printed and the rest
|
|
690
|
+
counted
|
|
691
|
+
"""
|
|
692
|
+
try:
|
|
693
|
+
first_file = command.index("--files") + 1
|
|
694
|
+
except ValueError:
|
|
695
|
+
return " ".join(command)
|
|
696
|
+
# The file names are not the last arguments ("-c <config>" is appended afterwards),
|
|
697
|
+
# so the list ends where the next option begins
|
|
698
|
+
last_file = first_file
|
|
699
|
+
while last_file < len(command) and not command[last_file].startswith("-"):
|
|
700
|
+
last_file += 1
|
|
701
|
+
hidden = last_file - first_file - LOGGED_FILES_LIMIT
|
|
702
|
+
if hidden <= 0:
|
|
703
|
+
return " ".join(command)
|
|
704
|
+
return " ".join(
|
|
705
|
+
command[: first_file + LOGGED_FILES_LIMIT] + ["... and %d more files" % hidden] + command[last_file:]
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
|
|
682
709
|
def subprocess_call(command, *args, **kwargs):
|
|
683
|
-
|
|
684
|
-
_logger.debug("Running command: %s", cmd_str)
|
|
710
|
+
_logger.debug("Running command: %s", format_command(command))
|
|
685
711
|
return subprocess.call(command, *args, **kwargs)
|
|
686
712
|
|
|
687
713
|
|
|
@@ -871,7 +897,7 @@ def run_autofix_hook(cmd, hook_id):
|
|
|
871
897
|
# The hook is a positional argument of "pre-commit run", so it goes before the
|
|
872
898
|
# options: "--files" would take it as one more file otherwise
|
|
873
899
|
hook_cmd = cmd[:2] + [hook_id] + cmd[2:]
|
|
874
|
-
_logger.debug("Running command: %s",
|
|
900
|
+
_logger.debug("Running command: %s", format_command(hook_cmd))
|
|
875
901
|
hook_run = subprocess.run(hook_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=False)
|
|
876
902
|
output = hook_run.stdout.decode(sys.stdout.encoding, errors="replace")
|
|
877
903
|
sys.stdout.write(output)
|
|
@@ -1098,14 +1124,11 @@ def main( # ruff: ignore[complex-structure]
|
|
|
1098
1124
|
included_files += get_files(included_path) or (included_path,)
|
|
1099
1125
|
cmd.extend(["--files"] + included_files)
|
|
1100
1126
|
else:
|
|
1101
|
-
#
|
|
1102
|
-
#
|
|
1103
|
-
#
|
|
1104
|
-
#
|
|
1105
|
-
|
|
1106
|
-
if not all_files:
|
|
1107
|
-
raise UserWarning("Not files detected in repository %s" % repo_dirname)
|
|
1108
|
-
cmd.extend(["--files"] + all_files)
|
|
1127
|
+
# Checking the whole repository is what "--all-files" means, so it is left to
|
|
1128
|
+
# pre-commit: it resolves the list itself and nothing has to be printed. Listing
|
|
1129
|
+
# it here does not scale either, since every path travels on the command line:
|
|
1130
|
+
# odoo/odoo alone is 49271 files, 2.3 MB of arguments against an ARG_MAX of 1 MB
|
|
1131
|
+
cmd.append("--all")
|
|
1109
1132
|
all_status = {}
|
|
1110
1133
|
|
|
1111
1134
|
if "fix" in precommit_hooks_type:
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre-commit-vauxoo
|
|
3
|
-
Version: 8.3.
|
|
3
|
+
Version: 8.3.23
|
|
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,14 @@ without touching the package's own ``.bumpversion.cfg``.
|
|
|
439
439
|
CHANGES
|
|
440
440
|
=======
|
|
441
441
|
|
|
442
|
+
v8.3.23
|
|
443
|
+
-------
|
|
444
|
+
|
|
445
|
+
* Bump version: 8.3.22 → 8.3.23
|
|
446
|
+
* [IMP] cfg: Update ruff-odoo to 0.16.3.35
|
|
447
|
+
* [IMP] pre\_commit\_vauxoo: do not log every file of a "--files" list
|
|
448
|
+
* [FIX] pre\_commit\_vauxoo: keep "--all" as the default scope
|
|
449
|
+
|
|
442
450
|
v8.3.22
|
|
443
451
|
-------
|
|
444
452
|
|
|
@@ -1259,11 +1259,6 @@ class TestPreCommitVauxoo:
|
|
|
1259
1259
|
# "as_posix" is required since that windows separates the paths with "\"
|
|
1260
1260
|
return sorted(Path(os.path.relpath(fname, self.tmp_dir)).as_posix() for fname in files)
|
|
1261
1261
|
|
|
1262
|
-
def tracked_files(self):
|
|
1263
|
-
"""Files tracked by the repository, sorted and without duplicates"""
|
|
1264
|
-
output = subprocess.check_output(["git", "ls-files"], cwd=self.tmp_dir).decode()
|
|
1265
|
-
return sorted(set(output.splitlines()))
|
|
1266
|
-
|
|
1267
1262
|
def test_get_files_keeps_names_outside_ascii(self):
|
|
1268
1263
|
"""git quotes those names unless asked not to, and a quoted name does not exist
|
|
1269
1264
|
|
|
@@ -1281,30 +1276,12 @@ class TestPreCommitVauxoo:
|
|
|
1281
1276
|
assert "module_example1/modulo_ñ.py" in files
|
|
1282
1277
|
assert not [name for name in files if "\\" in name or name.startswith('"')]
|
|
1283
1278
|
|
|
1284
|
-
def
|
|
1285
|
-
"""
|
|
1286
|
-
|
|
1287
|
-
The files are listed here instead of running "pre-commit run --all-files" since
|
|
1288
|
-
that one resolves them with "git ls-files --deduplicate", an option only
|
|
1289
|
-
available since git 2.31
|
|
1290
|
-
"""
|
|
1291
|
-
self.git_commit_all()
|
|
1292
|
-
self.write_file("module_example1/__init__.py")
|
|
1293
|
-
result, run_commands = self.invoke_scope(monkeypatch, [])
|
|
1294
|
-
assert not result.exit_code, "Exited with error %s - %s" % (result, result.output)
|
|
1295
|
-
assert run_commands, "The hooks were not run"
|
|
1296
|
-
for run_command in run_commands:
|
|
1297
|
-
assert "--all" not in run_command, "'--all-files' needs a git newer than the one of Ubuntu 20.04"
|
|
1298
|
-
assert self.scope_files(run_command) == self.tracked_files(), (
|
|
1299
|
-
"The default scope is not checking the whole repository"
|
|
1300
|
-
)
|
|
1301
|
-
|
|
1302
|
-
def test_scope_default_is_all_with_a_merge_conflict(self, monkeypatch):
|
|
1303
|
-
"""A file with a merge conflict is checked once, not once per stage of the index
|
|
1279
|
+
def test_get_files_deduplicates_a_merge_conflict(self):
|
|
1280
|
+
"""A file with a merge conflict is listed once, not once per stage of the index
|
|
1304
1281
|
|
|
1305
1282
|
"git ls-files" reports a conflicted path three times, one per stage of the index
|
|
1306
|
-
(the common ancestor, "ours" and "theirs"),
|
|
1307
|
-
|
|
1283
|
+
(the common ancestor, "ours" and "theirs"), so the hooks would be handed the very
|
|
1284
|
+
same file three times
|
|
1308
1285
|
"""
|
|
1309
1286
|
self.git_commit_all()
|
|
1310
1287
|
conflicted = "module_example1/__init__.py"
|
|
@@ -1318,13 +1295,55 @@ class TestPreCommitVauxoo:
|
|
|
1318
1295
|
self.git_call("merge", "-q", "conflicting")
|
|
1319
1296
|
stages = subprocess.check_output(["git", "ls-files", "--", conflicted], cwd=self.tmp_dir).decode()
|
|
1320
1297
|
assert stages.splitlines().count(conflicted) == 3, "The conflict did not duplicate the file in the index"
|
|
1298
|
+
|
|
1299
|
+
files = pre_commit_vauxoo.get_files(os.path.join(self.tmp_dir, "module_example1"))
|
|
1300
|
+
|
|
1301
|
+
assert files.count(conflicted) == 1, "The conflicted file is listed once per stage"
|
|
1302
|
+
|
|
1303
|
+
def test_format_command_collapses_the_files_list(self):
|
|
1304
|
+
"""The logged command counts the files it does not print
|
|
1305
|
+
|
|
1306
|
+
A scope can cover hundreds of files, which logs a wall of paths that buries the
|
|
1307
|
+
rest of the output
|
|
1308
|
+
"""
|
|
1309
|
+
files = ["module_example1/file%d.py" % index for index in range(25)]
|
|
1310
|
+
command = ["pre-commit", "run", "--color=always", "--files"] + files + ["-c", ".pre-commit-config.yaml"]
|
|
1311
|
+
|
|
1312
|
+
logged = pre_commit_vauxoo.format_command(command)
|
|
1313
|
+
|
|
1314
|
+
assert logged.startswith("pre-commit run --color=always --files module_example1/file0.py ")
|
|
1315
|
+
assert "module_example1/file9.py" in logged, "The first files are not printed"
|
|
1316
|
+
assert "module_example1/file10.py" not in logged, "The whole list is printed"
|
|
1317
|
+
assert "... and 15 more files" in logged, "The hidden files are not counted"
|
|
1318
|
+
assert logged.endswith("-c .pre-commit-config.yaml"), "The options after the files are lost"
|
|
1319
|
+
|
|
1320
|
+
def test_format_command_keeps_a_short_files_list(self):
|
|
1321
|
+
"""A list that fits is printed whole: it is what says which files were checked"""
|
|
1322
|
+
files = ["module_example1/file%d.py" % index for index in range(3)]
|
|
1323
|
+
command = ["pre-commit", "run", "--files"] + files + ["-c", ".pre-commit-config.yaml"]
|
|
1324
|
+
|
|
1325
|
+
assert pre_commit_vauxoo.format_command(command) == " ".join(command)
|
|
1326
|
+
|
|
1327
|
+
def test_format_command_without_files(self):
|
|
1328
|
+
"""A command that sends no files is logged as it is run"""
|
|
1329
|
+
command = ["git", "commit", "--no-verify", "-m", "[FIX] module_example1: something"]
|
|
1330
|
+
|
|
1331
|
+
assert pre_commit_vauxoo.format_command(command) == " ".join(command)
|
|
1332
|
+
|
|
1333
|
+
def test_scope_default_is_all(self, monkeypatch):
|
|
1334
|
+
"""Running the command without a scope delegates the whole repository to pre-commit
|
|
1335
|
+
|
|
1336
|
+
The file list belongs to the scope options only. Without one, "--all" is what is
|
|
1337
|
+
sent, so nothing is printed and pre-commit resolves the files itself
|
|
1338
|
+
"""
|
|
1339
|
+
self.git_commit_all()
|
|
1340
|
+
self.write_file("module_example1/__init__.py")
|
|
1321
1341
|
result, run_commands = self.invoke_scope(monkeypatch, [])
|
|
1322
1342
|
assert not result.exit_code, "Exited with error %s - %s" % (result, result.output)
|
|
1323
1343
|
assert run_commands, "The hooks were not run"
|
|
1324
1344
|
for run_command in run_commands:
|
|
1325
|
-
assert
|
|
1326
|
-
|
|
1327
|
-
)
|
|
1345
|
+
assert "--all" in run_command, "The default scope is not the whole repository"
|
|
1346
|
+
assert self.scope_files(run_command) is None, "The default scope is listing the files"
|
|
1328
1347
|
|
|
1329
1348
|
def test_scope_last_commit(self, monkeypatch):
|
|
1330
1349
|
"""'--last-commit' only checks the files of the last commit"""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "8.3.22"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/__manifest__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/demo/demo.xml
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/models/__init__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/models/models.py
RENAMED
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_autofix1/views/views.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/__manifest__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/deactivate.jinja
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/demo/demo.xml
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/models/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_example1/views/views.xml
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/__init__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_uninstallable/__manifest__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/__init__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/__manifest__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/demo/demo.xml
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/models/__init__.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/models/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/resources/module_warnings1/views/views.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.bandit-optional.yml
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.editorconfig
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.eslintrc.config.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg.jinja
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/cfg/pyproject.toml.jinja
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/git_hook_pre_commit
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/hooks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/logging_colored.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo/version_check.py
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/requires.txt
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/src/pre_commit_vauxoo.egg-info/top_level.txt
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/data_ruff/ruff_mandatory_use_cases.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_10.diff
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_20.diff
RENAMED
|
File without changes
|
{pre_commit_vauxoo-8.3.22 → pre_commit_vauxoo-8.3.23}/tests/diffs/module_autofix1_expected_30.diff
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|