Skip to content

Commit 927262b

Browse files
dependabot[bot]Matthew Anderson
and
Matthew Anderson
authored
chore(deps-dev): bump ruff from 0.4.1 to 0.7.1 (#154)
* chore(deps-dev): bump ruff from 0.4.1 to 0.7.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.1 to 0.7.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@v0.4.1...0.7.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: ruff invocation --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthew Anderson <matt@mandersience.com>
1 parent 6cd0d23 commit 927262b

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

duties.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def ruff(ctx: Context):
7979
Args:
8080
ctx (Context): the context instance (passed automatically).
8181
"""
82-
ctx.run("ruff .", title="Code linting (ruff)")
82+
ctx.run("ruff check .", title="Code linting (ruff)")
8383

8484

8585
@duty

poetry.lock

+20-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+4-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ recipe-scrapers = ">=14"
1515
isort = "^5.12.0"
1616
black = ">=23.7,<25.0"
1717
pytest = ">=7.4,<9.0"
18-
ruff = ">=0.0.280,<0.4.2"
18+
ruff = ">=0.0.280,<0.7.2"
1919
mypy = "^1.4.1"
2020
duty = "^1.0.0"
2121
git-changelog = "^2.0.0"
@@ -31,7 +31,7 @@ profile = "black"
3131
[tool.pylint.format]
3232
max-line-length = "88"
3333

34-
[tool.ruff]
34+
[tool.ruff.lint]
3535
extend-select = [ # https://beta.ruff.rs/docs/rules/
3636
"A",
3737
"ANN",
@@ -68,15 +68,13 @@ extend-select = [ # https://beta.ruff.rs/docs/rules/
6868
"TID",
6969
"YTT"]
7070
extend-ignore = ["D202", "D205", "D107"]
71+
pydocstyle.convention = "google" # Accepts: "google", "numpy", or "pep257".
7172

72-
[tool.ruff.extend-per-file-ignores]
73+
[tool.ruff.lint.extend-per-file-ignores]
7374
"tests/*.py" = ["ANN", "S", "ARG001", "B008", "RUF015", "E501", "D100", "D103"]
7475
"docs_gen_files.py" = ["ANN201"]
7576
"duties.py" = ["ANN201", "ARG001"]
7677

77-
[tool.ruff.pydocstyle]
78-
convention = "google" # Accepts: "google", "numpy", or "pep257".
79-
8078
[build-system]
8179
requires = ["poetry-core"]
8280
build-backend = "poetry.core.masonry.api"

tests/test_export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from recipe_scrapers_sage.models import Comment
88

99

10-
@pytest.fixture()
10+
@pytest.fixture
1111
def testhtml():
1212
with open("tests/test_data/foodnetwork.testhtml", "r") as f:
1313
return f.read()

0 commit comments

Comments
 (0)