Skip to content

Commit 66c1c25

Browse files
authored
uprev to v0.26.0b1 (#440)
1 parent 918ea71 commit 66c1c25

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222

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

25-
- run: pre-commit run -a
25+
- run: pre-commit run -a --verbose
26+
env:
27+
SKIP: no-commit-to-branch
2628

2729
docs:
2830
runs-on: ubuntu-latest

.pre-commit-config.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ fail_fast: false
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v4.3.0
66
hooks:
7+
- id: no-commit-to-branch
78
- id: check-yaml
89
- id: check-toml
910
- id: end-of-file-fixer
1011
- id: trailing-whitespace
1112

13+
- repo: https://github.com/codespell-project/codespell
14+
rev: v2.2.4
15+
hooks:
16+
- id: codespell
17+
additional_dependencies:
18+
- tomli
19+
1220
- repo: local
1321
hooks:
1422
- id: format

arq/typing.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import sys
21
from datetime import timedelta
3-
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, Set, Type, Union
4-
5-
if sys.version_info >= (3, 8):
6-
from typing import Literal, Protocol
7-
else:
8-
from typing_extensions import Literal, Protocol
2+
from typing import TYPE_CHECKING, Any, Dict, Literal, Optional, Protocol, Sequence, Set, Type, Union
93

104
__all__ = (
115
'OptionType',

arq/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def to_unix_ms(dt: datetime) -> int:
3434
return as_int(dt.timestamp() * 1000)
3535

3636

37-
@lru_cache()
37+
@lru_cache
3838
def get_tz() -> Optional['pytz.BaseTzInfo']:
3939
if pytz: # pragma: no branch
4040
for timezone_key in timezone_env_vars:

docs/examples/main_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def main():
2626

2727
# WorkerSettings defines the settings to use when creating the work,
2828
# It's used by the arq CLI.
29-
# redis_settings might be ommitted here if using the default settings
29+
# redis_settings might be omitted here if using the default settings
3030
# For a list of all available settings, see https://arq-docs.helpmanual.io/#arq.worker.Worker
3131
class WorkerSettings:
3232
functions = [download_content]

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ classifiers = [
3636
'Topic :: System :: Monitoring',
3737
'Topic :: System :: Systems Administration',
3838
]
39-
requires-python = '>=3.7'
39+
requires-python = '>=3.8'
4040
dependencies = [
4141
'redis[hiredis]>=4.2.0,<5',
4242
'click>=8.0',
43-
'typing-extensions>=4.1.0',
4443
]
4544
optional-dependencies = {watch = ['watchfiles>=0.16'] }
4645
dynamic = ['version']

requirements/pyproject.txt

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ redis==4.6.0
1616
# via arq (pyproject.toml)
1717
sniffio==1.3.1
1818
# via anyio
19-
typing-extensions==4.10.0
20-
# via arq (pyproject.toml)
2119
watchfiles==0.21.0
2220
# via arq (pyproject.toml)

0 commit comments

Comments
 (0)