Skip to content

Commit

Permalink
Merge 7a3f783 into 311a5ca
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Mar 24, 2023
2 parents 311a5ca + 7a3f783 commit bce2fbc
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
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
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
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 bce2fbc

Please sign in to comment.