Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uprev to v0.26.0b1 #440

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:

- run: pip install -r requirements/linting.txt -r requirements/pyproject.txt pre-commit

- run: pre-commit run -a
- run: pre-commit run -a --verbose
env:
SKIP: no-commit-to-branch

docs:
runs-on: ubuntu-latest
Expand Down
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ fail_fast: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.3.0
hooks:
- id: no-commit-to-branch
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: local
hooks:
- id: format
Expand Down
8 changes: 1 addition & 7 deletions arq/typing.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import sys
from datetime import timedelta
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, Set, Type, Union

if sys.version_info >= (3, 8):
from typing import Literal, Protocol
else:
from typing_extensions import Literal, Protocol
from typing import TYPE_CHECKING, Any, Dict, Literal, Optional, Protocol, Sequence, Set, Type, Union

__all__ = (
'OptionType',
Expand Down
2 changes: 1 addition & 1 deletion arq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def to_unix_ms(dt: datetime) -> int:
return as_int(dt.timestamp() * 1000)


@lru_cache()
@lru_cache
def get_tz() -> Optional['pytz.BaseTzInfo']:
if pytz: # pragma: no branch
for timezone_key in timezone_env_vars:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/main_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def main():

# WorkerSettings defines the settings to use when creating the work,
# It's used by the arq CLI.
# redis_settings might be ommitted here if using the default settings
# redis_settings might be omitted here if using the default settings
# For a list of all available settings, see https://arq-docs.helpmanual.io/#arq.worker.Worker
class WorkerSettings:
functions = [download_content]
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ classifiers = [
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
]
requires-python = '>=3.7'
requires-python = '>=3.8'
dependencies = [
'redis[hiredis]>=4.2.0,<5',
'click>=8.0',
'typing-extensions>=4.1.0',
]
optional-dependencies = {watch = ['watchfiles>=0.16'] }
dynamic = ['version']
Expand Down
2 changes: 0 additions & 2 deletions requirements/pyproject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ redis==4.6.0
# via arq (pyproject.toml)
sniffio==1.3.1
# via anyio
typing-extensions==4.10.0
# via arq (pyproject.toml)
watchfiles==0.21.0
# via arq (pyproject.toml)
Loading