Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all dependencies #81

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:recommended",
"schedule:monthly" // More often than set in .pre-commit-config.yaml
],
"groupName": "all dependencies",
"semanticCommits": "disabled",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:
- uses: jakebailey/pyright-action@v2
with:
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
extra-args: --threads
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -43,9 +43,10 @@ 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
args: [--threads]

ci:
autoupdate_schedule: quarterly # Should already be handled by Renovate
Expand Down
4 changes: 2 additions & 2 deletions Dolphin scripts/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down