Skip to content

Commit

Permalink
fix(deps): update dependency requests-cache to v0.9.8 (#518)
Browse files Browse the repository at this point in the history
* chore: fix import
* build(deps): pin requests-cache

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: W. Augusto Andreoli <andreoliwa@gmail.com>
  • Loading branch information
renovate[bot] and andreoliwa committed Mar 24, 2023
1 parent a7c8859 commit 2135344
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 42 deletions.
85 changes: 46 additions & 39 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 @@ -103,7 +103,7 @@ sphinx = { version = "*", optional = true }
sphinx_rtd_theme = { version = "*", optional = true }
sphobjinv = { version = "*", optional = true }
sphinx-gitref = { version = "*", optional = true }
requests-cache = ">=0.9.2" # This version introduced requests_cache.cache_control.NEVER_EXPIRE
requests-cache = ">=0.9.7" # This version uses requests_cache.policy.expiration

[tool.poetry.extras]
lint = ["pylint"]
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/style/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta

from loguru import logger
from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE
from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE

from nitpick.enums import CachingEnum

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
from freezegun import freeze_time
from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE
from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE

from nitpick.enums import CachingEnum
from nitpick.style.cache import parse_cache_option
Expand Down

0 comments on commit 2135344

Please sign in to comment.