From b7e6b45f8b8b9ff87cb2c72a20ff961396e8e1c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:49:13 +0000 Subject: [PATCH 1/4] Update all dependencies --- .pre-commit-config.yaml | 4 ++-- Dolphin scripts/requirements-dev.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87244b5..f92f3d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: additional_dependencies: ["dprint@~0.46.0"] pass_filenames: false # https://github.com/adamchainz/pre-commit-dprint/issues/3#issuecomment-1483410008 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.2" # Must match requirements-dev.txt + rev: "v0.6.2" # Must match requirements-dev.txt hooks: - id: ruff args: [--fix] @@ -43,7 +43,7 @@ repos: hooks: - id: add-trailing-comma - repo: https://github.com/RobertCraigie/pyright-python - rev: "v1.1.371" # Must match requirements-dev.txt + rev: "v1.1.377" # Must match requirements-dev.txt hooks: - id: pyright diff --git a/Dolphin scripts/requirements-dev.txt b/Dolphin scripts/requirements-dev.txt index e771723..462ab92 100644 --- a/Dolphin scripts/requirements-dev.txt +++ b/Dolphin scripts/requirements-dev.txt @@ -2,5 +2,5 @@ pre-commit # Below must match .pre-commit-config.yaml, this is handled by Renovate add-trailing-comma==3.1.0 autopep8==2.3.1 -pyright==1.1.371 -ruff==0.5.2 +pyright==1.1.377 +ruff==0.6.2 From e785b00f7275c1402d5795c622619a4e6791f013 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 22 Aug 2024 12:29:54 -0400 Subject: [PATCH 2/4] Update ruff configs and add --threads to pyright --- .github/workflows/python-tests.yaml | 1 + .pre-commit-config.yaml | 1 + pyproject.toml | 11 +++++++++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index bfdd4fb..5bb95a7 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -40,3 +40,4 @@ jobs: - uses: jakebailey/pyright-action@v2 with: version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }} + extra-args: --threads diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f92f3d7..4f2cbfd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,6 +46,7 @@ repos: rev: "v1.1.377" # Must match requirements-dev.txt hooks: - id: pyright + args: [--threads] ci: autoupdate_schedule: quarterly # Should already be handled by Renovate diff --git a/pyproject.toml b/pyproject.toml index 5d7f673..a174dfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,9 +87,20 @@ ignore = [ # "COM812", # missing-trailing-comma # "ISC001", # single-line-implicit-string-concatenation + ### + # Rules about missing special documentation. Up to you if you wanna enable these, you must also disable D406, D407 + ### + "DOC201", # docstring-missing-returns + "DOC402", # docstring-missing-yields + "DOC501", # docstring-missing-exception + # "D406", # new-line-after-section-name, conflicts with DOC + # "D407", # dashed-underline-after-section, conflicts with DOC + ### # Specific to this project ### + # Slows down tuple comprehensions in --preview mode https://github.com/astral-sh/ruff/issues/12912 + "C409", # unnecessary-literal-within-tuple-call "CPY001", # missing-copyright-notice: Assume license from root # This is a relatively small, low contributors project. Git blame suffice. "TD002", # missing-todo-author From 01db4e9e7bbb2d7a4aef92f776324f663db0d075 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 22 Aug 2024 12:36:07 -0400 Subject: [PATCH 3/4] Renovate monthly schedule --- .github/renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index e63355a..3dea1c0 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,7 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" + "config:recommended", + "schedule:monthly" ], "groupName": "all dependencies", "semanticCommits": "disabled", From 86b3c9593d892a8c373f0e69958b9eec124e3942 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 22 Aug 2024 12:38:18 -0400 Subject: [PATCH 4/4] Monthly renovate --- .github/renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 3dea1c0..df013ff 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,7 +2,7 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended", - "schedule:monthly" + "schedule:monthly" // More often than set in .pre-commit-config.yaml ], "groupName": "all dependencies", "semanticCommits": "disabled",