From 3bf0dbc2b087e039e218f1ed7fcb999651157620 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:16:53 +0200 Subject: [PATCH] [charm] Update Python to ^3.10.13 (#20) * [charm] Update Python to ^3.10.13 * Cleanup * Python pin --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragomir Penev --- .github/renovate.json5 | 2 +- pyproject.toml | 3 +++ tox.ini | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 2ec3c04..d502c8d 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -6,7 +6,7 @@ // Later rules override earlier rules { "matchPackageNames": ["python"], - "allowedVersions": "<3.11.0" + "allowedVersions": "<3.11" } ], "regexManagers": [ diff --git a/pyproject.toml b/pyproject.toml index 7c332bb..a5c0d2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,9 @@ target-version = ["py38"] # Linting tools configuration [tool.ruff] +# preview and explicit preview are enabled for CPY001 +preview = true +explicit-preview-rules = true target-version = "py38" src = ["src", "."] line-length = 99 diff --git a/tox.ini b/tox.ini index 500ec83..9049879 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands_post = [testenv:format] description = Apply coding style standards to code commands_pre = - poetry install --only format + poetry install --only format --no-root commands = poetry lock --no-update poetry run ruff --fix {[vars]all_path} @@ -47,7 +47,7 @@ allowlist_externals = {[testenv]allowlist_externals} find commands_pre = - poetry install --only lint,format + poetry install --only lint,format --no-root commands = poetry check --lock poetry run codespell {[vars]all_path} @@ -68,7 +68,7 @@ pass_env = allowlist_externals = {[testenv:pack-wrapper]allowlist_externals} commands_pre = - poetry install --only integration + poetry install --only integration --no-root {[testenv:pack-wrapper]commands_pre} commands = poetry run pytest -v --tb native --log-cli-level=INFO -s --cloud={env:CLOUD} {posargs} {[vars]tests_path}/integration/test_smoke.py