From eb36b0c48093cc0482a0116cc7d067a746c5f50e Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Mon, 4 Nov 2024 13:31:06 -0600 Subject: [PATCH 1/2] [REF] .pre-commit-config: Bump OCA/odoo-pre-commit-hooks to 0.0.34 --- src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml | 2 +- src/pre_commit_vauxoo/cfg/.pre-commit-config-optional.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml b/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml index 3f01482..63dfcff 100644 --- a/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml +++ b/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml @@ -92,7 +92,7 @@ repos: - --config=.eslintrc.json - --fix - repo: https://github.com/OCA/odoo-pre-commit-hooks - rev: v0.0.33 + rev: v0.0.34 hooks: - id: oca-checks-po args: diff --git a/src/pre_commit_vauxoo/cfg/.pre-commit-config-optional.yaml b/src/pre_commit_vauxoo/cfg/.pre-commit-config-optional.yaml index b998560..2bb3abd 100644 --- a/src/pre_commit_vauxoo/cfg/.pre-commit-config-optional.yaml +++ b/src/pre_commit_vauxoo/cfg/.pre-commit-config-optional.yaml @@ -38,7 +38,7 @@ repos: # External scripts - --disable=R0000 - repo: https://github.com/OCA/odoo-pre-commit-hooks - rev: v0.0.33 + rev: v0.0.34 hooks: - id: oca-checks-odoo-module - id: oca-checks-po From ef62e9a1a7a2ff0f7e2ff4fe5445593746f5f442 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Mon, 4 Nov 2024 13:34:04 -0600 Subject: [PATCH 2/2] [REF] tox.ini: Add compatibility with new pyttest Related to code https://github.com/pytest-dev/pytest-cov/blob/95404375a0e436178e012e20b8865c23c54c8a50/src/pytest_cov/engine.py\#L251C25-L251C26 Related to issue https://github.com/pytest-dev/pytest-cov/issues/604 --- .coveragerc | 1 - pyproject.toml | 6 +++--- tox.ini | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.coveragerc b/.coveragerc index 23f1dc8..101bdf5 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,7 +4,6 @@ source = src [run] source = src parallel = true -dynamic_context = test_function context = ${{COVERAGE_CONTEXT}} [report] diff --git a/pyproject.toml b/pyproject.toml index 2c64420..275ee5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ -[build-system] -requires = ["setuptools >=42"] -build-backend = "setuptools.build_meta" +[tool.black] +line-length=119 +skip-string-normalization=false diff --git a/tox.ini b/tox.ini index 59e6023..800252a 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ passenv = deps = -r{toxinidir}/test-requirements.txt usedevelop = true commands = - pytest --cov-append -s --cov --cov-report=term-missing --cov-report=html -vv {posargs:} + pytest --cov-append -s --cov --cov-report=term-missing --cov-report=html --cov-context=test -vv {posargs:} [testenv:lint] # skip_install = true