Skip to content

Commit

Permalink
chore(deps-dev): bump ruff from 0.7.4 to 0.8.0 (#523)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump ruff from 0.7.4 to 0.8.0

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.4 to 0.8.0.
- [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.7.4...0.8.0)

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

Signed-off-by: dependabot[bot] <[email protected]>

* chore: Updates for ruff 0.8.0

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lucas <[email protected]>
  • Loading branch information
dependabot[bot] and hairmare authored Nov 23, 2024
1 parent f435ae6 commit d8accde
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.1'
rev: 'v0.8.0'
hooks:
- id: ruff
- id: ruff-format
Expand Down
3 changes: 2 additions & 1 deletion app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import json
import logging
from pathlib import Path
from typing import TYPE_CHECKING, Any, Iterable, Self
from typing import TYPE_CHECKING, Any, Self

if TYPE_CHECKING: # pragma: no cover
from argparse import Namespace as ArgparseNamespace
from collections.abc import Iterable
from wsgiref.types import StartResponse, WSGIEnvironment

import cherrypy # type: ignore[import-untyped]
Expand Down
18 changes: 11 additions & 7 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@

import mkdocs_gen_files

with Path("README.md").open("r") as readme, mkdocs_gen_files.open(
"index.md",
"w",
) as index_file:
with (
Path("README.md").open("r") as readme,
mkdocs_gen_files.open(
"index.md",
"w",
) as index_file,
):
index_file.writelines(readme.read())

with Path("docs/screenshot.png").open("rb") as orig, mkdocs_gen_files.open(
"docs/screenshot.png", "wb"
) as screenshot:
with (
Path("docs/screenshot.png").open("rb") as orig,
mkdocs_gen_files.open("docs/screenshot.png", "wb") as screenshot,
):
screenshot.write(orig.read())
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.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pytest-cov = "^6.0.0"
pytest-mypy = "^0.10.3"
pytest-random-order = "^1.1.1"
pytest-ruff = "^0.4"
ruff = "^0.7.4"
ruff = "^0.8.0"

[tool.pytest.ini_options]
addopts = "-ra -q --random-order --doctest-glob='*.md' --doctest-modules --cov=app --cov-fail-under=100 --ruff --mypy --ignore docs/"
Expand Down

0 comments on commit d8accde

Please sign in to comment.