Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.8.6 to 0.9.1 (#406)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump ruff from 0.8.6 to 0.9.1

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.9.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.8.6...0.9.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* style(precommit): bump ruff to 0.9.1

* style(ruff): add new rules

* style(detections): remove redundant return typing

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: F-G Fernandez <26927750+frgfm@users.noreply.github.com>
dependabot[bot] and frgfm authored Jan 15, 2025
1 parent a3e525f commit abce184
Showing 4 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.8.6'
rev: 'v0.9.1'
hooks:
- id: ruff
args:
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ httpx = "^0.24.0"
optional = true

[tool.poetry.group.quality.dependencies]
ruff = "==0.8.6"
ruff = "==0.9.1"
mypy = "==1.10.0"
types-requests = ">=2.0.0"
types-python-dateutil = "^2.8.0"
@@ -87,12 +87,15 @@ select = [
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PERF", # perflint
"NPY", # numpy
"FAST", # fastapi
"FURB", # refurb
"RUF", # ruff specific
]
@@ -108,6 +111,7 @@ ignore = [
"ANN003", # missing type annotations on **kwargs
"COM812", # trailing comma missing
"ISC001", # implicit string concatenation (handled by format)
"FAST002", # fastapi annotated
]
exclude = [".git"]

2 changes: 1 addition & 1 deletion src/app/api/api_v1/endpoints/detections.py
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ async def get_detection(
return detection


@router.get("/{detection_id}/url", response_model=DetectionUrl, status_code=200)
@router.get("/{detection_id}/url", status_code=200)
async def get_detection_url(
detection_id: int = Path(..., gt=0),
cameras: CameraCRUD = Depends(get_camera_crud),

0 comments on commit abce184

Please sign in to comment.