Skip to content

Commit

Permalink
chore: Update ruff versions and apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed Aug 22, 2024
1 parent 19ae82f commit 7535208
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
- src/ol_infrastructure/applications/ocw_site/redirect_dict
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.5.1'
rev: 'v0.6.2'
hooks:
- id: ruff-format
- id: ruff
Expand Down
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 = "6.2.5"
pytest-cov = "3.0.0"
pytest-mock = "3.14.0"
responses = "0.25.3"
ruff = "^0.5.0"
ruff = "^0.6.0"
typing = { version = "^3.6.6", python = "~3.8" }
pre-commit = "<3.9"

Expand Down
4 changes: 2 additions & 2 deletions social_auth_mitxpro/backends_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
# pylint: disable=redefined-outer-name


@pytest.fixture()
@pytest.fixture
def strategy(mocker):
"""Mock strategy"""
return mocker.Mock()


@pytest.fixture()
@pytest.fixture
def backend(strategy):
"""MITxProOAuth2 backend fixture"""
return MITxProOAuth2(strategy)
Expand Down
2 changes: 1 addition & 1 deletion social_auth_mitxpro/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import responses


@pytest.fixture()
@pytest.fixture
def mocked_responses():
"""Mock requests responses"""
with responses.RequestsMock() as rsps:
Expand Down

0 comments on commit 7535208

Please sign in to comment.