Skip to content

Commit

Permalink
Update ruff requirement from ^0.1.3 to ^0.2.0 (#91)
Browse files Browse the repository at this point in the history
* Update ruff requirement from ^0.1.3 to ^0.2.0

Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [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.1.3...v0.2.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
...

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

* fix: fixed issue after updating ruff

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TeKrop <tekrop@gmail.com>
  • Loading branch information
dependabot[bot] and TeKrop authored Feb 5, 2024
1 parent 157e1ad commit 9ed760e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pytest-cov = "^4.1.0"
pytest-randomly = "^3.15.0"
pytest-xdist = "^3.3.1"
refurb = "^1.22.1"
ruff = "^0.1.3"
ruff = "^0.2.0"
pre-commit = "^3.5.0"
sourcery = "^1.11.0"

Expand All @@ -40,6 +40,14 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.ruff]

# Check app code and tests
src = ["app", "tests"]

# Assume Python 3.12
target-version = "py312"

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
Expand Down Expand Up @@ -109,12 +117,6 @@ ignore = [
"W191" # tab indentation detected instead of spaces
]

# Check app code and tests
src = ["app", "tests"]

# Assume Python 3.12
target-version = "py312"

[tool.ruff.isort]
[tool.ruff.lint.isort]
# Consider app as first-party for imports in tests
known-first-party = ["app"]
2 changes: 1 addition & 1 deletion tests/parsers/test_namecard_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def test_namecard_parser_player_not_found():
with patch.object(
overfast_client,
"get",
return_value=Mock(status_code=status.HTTP_200_OK, text="{}", json=lambda: {}),
return_value=Mock(status_code=status.HTTP_200_OK, text="{}", json=dict),
), patch("app.common.logging.logger.warning", logger_warning_mock):
await parser.parse()

Expand Down

0 comments on commit 9ed760e

Please sign in to comment.