Skip to content

Added blocking parameter to lock #603

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
5c851f1
Added blocking parameter to lock
WisdomPill Apr 18, 2022
44aff88
[pre-commit.ci] pre-commit autoupdate (#605)
pre-commit-ci[bot] May 10, 2022
36c87c8
Log traceback if exceptions are ignored
tmarice Jun 23, 2022
38e630f
[pre-commit.ci] pre-commit autoupdate (#612)
pre-commit-ci[bot] Jun 29, 2022
0a9d795
Adjust error message
tmarice Jul 2, 2022
8a54fa5
Add towncrier fragment
tmarice Jul 2, 2022
52fc78d
Test that exceptions are logged
tmarice Jul 16, 2022
326f86e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 17, 2022
1e865a3
#609, use pipeline for delete_pattern (#617)
Oct 21, 2022
47ebf88
Merge pull request #615 from jazzband/pre-commit-ci-update-config
WisdomPill Oct 21, 2022
d6cc1d2
update readme links (#622)
Arhell Oct 24, 2022
2e40dc6
update AUTHORS links (#624)
Arhell Oct 27, 2022
8cf4b48
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 31, 2022
f09d592
Add Django 4.1 to test matrix and classifiers
foarsitter Nov 5, 2022
8da08c2
mypy: actual type "BaseCache", expected type "RedisCache"
foarsitter Nov 6, 2022
e611a62
mypy: ignore `default_timeout` can be `None`
foarsitter Nov 6, 2022
7712d31
Merge pull request #626 from foarsitter/fix_mypy
WisdomPill Nov 7, 2022
95ff189
Merge pull request #627 from foarsitter/django41
WisdomPill Nov 7, 2022
66650af
Merge pull request #625 from jazzband/pre-commit-ci-update-config
WisdomPill Nov 7, 2022
040d85e
Merge pull request #613 from tmarice/master
WisdomPill Nov 7, 2022
2ba6b15
Fix CI, with Python 3.6 support. (#643)
iurisilvio Jan 19, 2023
98871af
#646, fix skip tests for the django.contrib.sessions.serializers.Pick…
Jan 20, 2023
2600943
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 20, 2023
8a9eb1e
Dropped support for django 2.2 and 3.1
WisdomPill Jan 21, 2023
48fa2d9
Added changelog
WisdomPill Jan 21, 2023
fd6f19f
Merge pull request #648 from WisdomPill/drop_django_22_and_31
WisdomPill Jan 21, 2023
dd7688f
Added support for python 3.11 and some fixed in setup.cfg
WisdomPill Jan 22, 2023
05ca48a
python 3.11 is supported only by django 4.1 and added changelog
WisdomPill Jan 22, 2023
3858086
Merge pull request #650 from WisdomPill/add_python_311
WisdomPill Jan 22, 2023
ae6ab72
Merge pull request #647 from rootart/fix-646
WisdomPill Jan 22, 2023
81f89a4
Added changelog and fixed condition for pickle serializer for sessions
WisdomPill Jan 22, 2023
1cb1607
Added line too long ignore
WisdomPill Jan 22, 2023
9d572cd
Merge pull request #651 from WisdomPill/fix_646_changelog
WisdomPill Jan 22, 2023
a2d9d2f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 6, 2023
36b76cc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
651d197
Merge pull request #632 from jazzband/pre-commit-ci-update-config
WisdomPill Apr 2, 2023
202018b
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 3, 2023
65a4349
Merge pull request #662 from jazzband/pre-commit-ci-update-config
WisdomPill Apr 4, 2023
9dc3e30
Lazy access to Django settings.
iurisilvio Jan 6, 2023
0105fb1
Fix tests.
iurisilvio Jan 6, 2023
b88a718
Fix tox passenv.
iurisilvio Jan 6, 2023
7a61ec9
LInt.
iurisilvio Jan 6, 2023
dde64b7
changelog
iurisilvio Jan 7, 2023
fe99e5c
revert passenv
iurisilvio Jan 19, 2023
7284dac
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 1, 2023
0a2ca0d
Run herd tests.
iurisilvio Jun 1, 2023
dc91afb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 1, 2023
3b597f0
Fix lint and mypy.
iurisilvio Jun 1, 2023
db54da5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 1, 2023
9c787b5
Changelog it as bugfix.
iurisilvio Jun 11, 2023
113c294
Persist itersize on RedisCache init.
iurisilvio Jun 11, 2023
cfdd96f
Use override_settings instead of pytest test settings.
iurisilvio Jun 11, 2023
5e5d095
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 11, 2023
06a7cae
Use local fixture to patch herd settings,
iurisilvio Jun 11, 2023
9992d6b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 11, 2023
e486bb6
Only one yield.
iurisilvio Jun 11, 2023
36a54cc
Cleanup.
iurisilvio Jun 11, 2023
60500d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 11, 2023
418c89f
Fixture to patch itersize.
iurisilvio Jun 11, 2023
84209b5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 11, 2023
0af03b4
Trying to make mypy happy.
iurisilvio Jun 11, 2023
e7ee981
Import iterable.
iurisilvio Jun 11, 2023
7faa82b
Merge pull request #639 from iurisilvio/lazy-settings-itersize
WisdomPill Jun 12, 2023
12c697b
Add Django 4.2 to test matrix and classifiers
foarsitter Jun 15, 2023
2fc443a
Merge pull request #668 from foarsitter/dj42
WisdomPill Jun 15, 2023
c479e95
Prepare release of django-redis 5.3.0
foarsitter Jun 16, 2023
78320ad
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 3, 2023
be95c50
Merge pull request #666 from jazzband/pre-commit-ci-update-config
WisdomPill Jul 4, 2023
8f924c7
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 17, 2023
0756a8b
Merge pull request #672 from jazzband/pre-commit-ci-update-config
WisdomPill Jul 18, 2023
22c77a1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 31, 2023
d4b5774
Merge pull request #675 from jazzband/pre-commit-ci-update-config
WisdomPill Aug 1, 2023
95d76a4
Update README.rst
jacklinke Aug 18, 2023
a636791
Update README.rst
jacklinke Aug 18, 2023
2d33971
Create 677.doc
jacklinke Aug 18, 2023
2e0c1f9
Delete 677.doc
jacklinke Aug 18, 2023
c85f609
Create 677.doc
jacklinke Aug 18, 2023
3619218
Merge pull request #677 from jazzband/readme-patch-1
WisdomPill Aug 21, 2023
d79f4c9
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 18, 2023
891aa48
Merge pull request #679 from jazzband/pre-commit-ci-update-config
WisdomPill Sep 19, 2023
541dbb4
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 25, 2023
097c997
Merge pull request #681 from jazzband/pre-commit-ci-update-config
WisdomPill Sep 26, 2023
77097d3
Connection factory goes to cache options
RealFatCat Sep 25, 2023
a582fe4
Merge pull request #680 from RealFatCat/feat/connection-factory-in-ca…
WisdomPill Sep 28, 2023
c09ad9b
Preparing release 5.4.0
WisdomPill Oct 1, 2023
2a3770f
Merge pull request #683 from WisdomPill/release540
WisdomPill Oct 1, 2023
df78026
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 9, 2023
e562b5c
Merge pull request #684 from jazzband/pre-commit-ci-update-config
WisdomPill Oct 13, 2023
4363822
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 30, 2023
ad9ab64
Pin pytest to <7
foarsitter Nov 1, 2023
b6ea4b4
Merge pull request #691 from foarsitter/pytest6
WisdomPill Nov 1, 2023
ac98af3
Replaced flake8 and isort with ruff
WisdomPill Nov 1, 2023
485268d
Added changelog, added ruff to pre-commit and enabled some ruff rules
WisdomPill Nov 1, 2023
fe46341
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2023
d13ac5e
Fixed relative imports
WisdomPill Nov 1, 2023
4b5fc71
Enabled more rules
WisdomPill Nov 1, 2023
9f67af2
Merge remote-tracking branch 'origin/use_ruff' into use_ruff
WisdomPill Nov 1, 2023
ba065e2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2023
f608da1
Enabled more rules
WisdomPill Nov 1, 2023
0abd91c
Merge remote-tracking branch 'origin/use_ruff' into use_ruff
WisdomPill Nov 1, 2023
c7be6cc
Enabled more rules and restored blind exceptino for lz4 compressor
WisdomPill Nov 1, 2023
61f399e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2023
7d42561
Drop django 4.0
WisdomPill Nov 1, 2023
a5ba09e
Added changelog
WisdomPill Nov 1, 2023
6366a9a
Fixed hashring tests
WisdomPill Nov 1, 2023
4057ecc
Merge remote-tracking branch 'origin/use_ruff' into use_ruff
WisdomPill Nov 1, 2023
61cbc50
Enabled tidy imports
WisdomPill Nov 1, 2023
a808a46
Merge pull request #694 from WisdomPill/drop_django_40
WisdomPill Nov 1, 2023
74429f0
fixed wrong import and changed how redis is started in test script
WisdomPill Nov 1, 2023
1a39b2e
restored old start_redis script
WisdomPill Nov 1, 2023
ae56576
Merge pull request #692 from WisdomPill/use_ruff
WisdomPill Nov 1, 2023
cb4e440
Upgrade black to 23.10.1
WisdomPill Nov 1, 2023
cb32e15
Added changelog file
WisdomPill Nov 1, 2023
4b6dd5b
Merge pull request #695 from WisdomPill/update-black-to-23.10.1
WisdomPill Nov 1, 2023
820618b
Added types to DefaultClient
WisdomPill Nov 1, 2023
de08bc3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2023
e29200c
Restored start_redis script
WisdomPill Nov 1, 2023
7070a42
Merge remote-tracking branch 'origin/redis_type_hints' into redis_typ…
WisdomPill Nov 1, 2023
e96c4ce
Silenced strange mypy errors with pexpire and expire
WisdomPill Nov 1, 2023
13aee50
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2023
2e2dc55
restore encoding logic
WisdomPill Nov 2, 2023
2850090
Added changelog
WisdomPill Nov 2, 2023
4508d4d
Support pytest7
WisdomPill Nov 2, 2023
2e89527
Added changelog
WisdomPill Nov 2, 2023
2417417
Drop django 3.2 and consequentially drop python 3.6 and 3.7
WisdomPill Nov 3, 2023
7c1e997
Added changelog
WisdomPill Nov 3, 2023
ed9d670
Fixes to setup.cfg file
WisdomPill Nov 4, 2023
ae9c4be
Merge pull request #699 from WisdomPill/drop_django32
WisdomPill Nov 5, 2023
edbc71c
Merge branch 'master' into pytest7
WisdomPill Nov 5, 2023
8014ce4
Merge pull request #696 from WisdomPill/redis_type_hints
WisdomPill Nov 5, 2023
9d8db4d
Merge pull request #697 from WisdomPill/pytest7
WisdomPill Nov 5, 2023
bb78339
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 6, 2023
48e54b8
Unleash tox4
WisdomPill Nov 13, 2023
13d374a
Added changelog
WisdomPill Nov 13, 2023
940a969
Merge pull request #700 from jazzband/pre-commit-ci-update-config
WisdomPill Nov 13, 2023
dc71eee
Changed passenv syntax
WisdomPill Nov 13, 2023
948e620
Merge pull request #701 from WisdomPill/tox4
WisdomPill Nov 13, 2023
42de1bf
Added dependabot for github actions
WisdomPill Nov 13, 2023
3f6fdd7
Added changelog
WisdomPill Nov 13, 2023
3acf3db
Use ubuntu latest in CI
WisdomPill Nov 13, 2023
b2295df
Use ubuntu latest in CI
WisdomPill Nov 13, 2023
b709fc3
Update codecov to v2
WisdomPill Nov 13, 2023
5d9facc
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 13, 2023
5fbeadd
Merge pull request #704 from jazzband/pre-commit-ci-update-config
WisdomPill Nov 13, 2023
e085f59
Merge pull request #703 from WisdomPill/ci_latest_ubuntu
WisdomPill Nov 13, 2023
d76f2ff
Merge pull request #702 from WisdomPill/add_dependabot_for_actions
WisdomPill Nov 13, 2023
ccfd3f7
Bump actions/cache from 2 to 3
dependabot[bot] Nov 13, 2023
2445cfa
Bump codecov/codecov-action from 1 to 3
dependabot[bot] Nov 13, 2023
bf3c4b5
Bump actions/checkout from 2 to 4
dependabot[bot] Nov 13, 2023
dd26645
Merge pull request #705 from jazzband/dependabot/github_actions/actio…
WisdomPill Nov 14, 2023
4694ade
Merge pull request #707 from jazzband/dependabot/github_actions/actio…
WisdomPill Nov 14, 2023
dfb8f75
Bump actions/setup-python from 2 to 4
dependabot[bot] Nov 14, 2023
4261df8
Merge pull request #708 from jazzband/dependabot/github_actions/actio…
WisdomPill Nov 14, 2023
55097ae
Merge pull request #706 from jazzband/dependabot/github_actions/codec…
WisdomPill Nov 14, 2023
0aaa848
Support gzip compression
myungsegyo Oct 30, 2023
0bf13f9
Add changeling file
myungsegyo Oct 31, 2023
1d41d87
Fix ruff's error
myungsegyo Nov 17, 2023
4dee637
Fix relative import into absolute import
myungsegyo Nov 17, 2023
d7f1292
Merge pull request #688 from myungsegyo/master
WisdomPill Nov 17, 2023
639eca7
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 6, 2023
164acfe
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 11, 2023
6d5d9a3
Merge pull request #709 from jazzband/pre-commit-ci-update-config
WisdomPill Dec 12, 2023
c810187
Merge pull request #711 from jazzband/dependabot/github_actions/actio…
WisdomPill Dec 12, 2023
902cc8e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 25, 2023
d94a7f9
Merge pull request #712 from jazzband/pre-commit-ci-update-config
WisdomPill Jan 3, 2024
19337c6
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 15, 2024
dafaad2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 15, 2024
53aef85
Bump actions/cache from 3 to 4
dependabot[bot] Jan 17, 2024
56d3ef1
Merge pull request #715 from jazzband/pre-commit-ci-update-config
WisdomPill Jan 22, 2024
8ec90cc
Merge pull request #716 from jazzband/dependabot/github_actions/actio…
WisdomPill Jan 22, 2024
7c44d85
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 22, 2024
9c8cf8f
Merge pull request #718 from jazzband/pre-commit-ci-update-config
WisdomPill Jan 26, 2024
09e53a1
Add support for hashmaps
kysre Jan 26, 2024
d08e922
Skip sharded client in hashmap tests
kysre Jan 29, 2024
d2ce2fa
Refactor code
kysre Jan 29, 2024
b4f9489
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 29, 2024
4c4af16
Merge pull request #720 from jazzband/pre-commit-ci-update-config
WisdomPill Jan 29, 2024
81ec264
Merge pull request #719 from kysre/598-add-support-for-hashmaps
WisdomPill Jan 29, 2024
3951d76
Bump codecov/codecov-action from 3 to 4
dependabot[bot] Feb 1, 2024
2dcb9ba
Merge pull request #722 from jazzband/dependabot/github_actions/codec…
WisdomPill Feb 1, 2024
1f681f1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 5, 2024
1abeaa5
Merge pull request #723 from jazzband/pre-commit-ci-update-config
WisdomPill Feb 6, 2024
d3bf1df
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 12, 2024
b775d0c
Fix:Expire method fails when using DEFAULT_TIMEOUT #724
Feb 16, 2024
f391938
Testcase and changelog added for issue #724
Feb 16, 2024
740520a
Changelog file renamed
Feb 16, 2024
9a38b1c
Fix:mypy errors
Feb 16, 2024
6285275
Fix for DEFAULT_TIMEOUT for pexpire, unwanted comments removed and te…
Feb 16, 2024
23b1b68
Improvement: None removed for timeout
Feb 17, 2024
8bf4390
Improvement: None removed for timeout
Feb 17, 2024
5506eee
Merge pull request #726 from sauravsharma1998/master
WisdomPill Feb 17, 2024
de741a7
Dropped django4.1 and added django 5.0
WisdomPill Feb 17, 2024
294dcd0
Added changelog file
WisdomPill Feb 17, 2024
9d074d4
Merge pull request #725 from jazzband/pre-commit-ci-update-config
WisdomPill Feb 17, 2024
1675e95
Merge pull request #729 from WisdomPill/drop_django41_add_django50
WisdomPill Feb 17, 2024
96699a9
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 19, 2024
ad9cc78
Merge pull request #731 from jazzband/pre-commit-ci-update-config
WisdomPill Feb 20, 2024
e7d9be0
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 10, 2024
cb849de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 10, 2024
00207b0
Merge remote-tracking branch 'upstream/pre-commit-ci-update-config' i…
WisdomPill Jun 14, 2024
da4b680
Ruff fixes
WisdomPill Jun 14, 2024
ce47b30
Merge pull request #739 from jazzband/pre-commit-ci-update-config
WisdomPill Jun 14, 2024
0bb4f32
Add support for the set functions from issue #597
rootart Jun 9, 2024
f34935c
Fix review comments #597
rootart Jun 15, 2024
e11150a
Merge pull request #743 from rootart/issue/597
WisdomPill Jun 16, 2024
1b225fe
Added blocking parameter to lock
WisdomPill Oct 20, 2024
277f2eb
Added tests for not blocking lock timeout
WisdomPill Oct 20, 2024
2e5cdb1
Merge remote-tracking branch 'origin/bugfix/596/lock_blocking_params'…
WisdomPill Oct 20, 2024
9cecd04
Added blocking parameter to lock
WisdomPill Oct 20, 2024
b45d68d
Added tests for not blocking lock timeout
WisdomPill Oct 20, 2024
2c10137
Merge remote-tracking branch 'origin/bugfix/596/lock_blocking_params'…
WisdomPill Oct 20, 2024
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
66 changes: 31 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,46 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
django-version:
- '2.2'
- '3.1'
- '3.2'
- '4.0'
- '4.2'
- '5.0'
redis-version:
- 'latest'

# only test pre-release dependencies for the latest Python
# Only test pre-release dependencies for the latest Python.
include:
# Django 4.2 and python 3.8 with latest redis
- django-version: '4.2'
redis-version: 'latest'
python-version: '3.8'

# Django 4.2 and python 3.9 with latest redis
- django-version: '4.2'
redis-version: 'latest'
python-version: '3.9'

# latest Django with pre-release redis
- django-version: '4.0'
- django-version: '5.0'
redis-version: 'master'
python-version: '3.10'
python-version: '3.11'

# latest redis with pre-release Django
- django-version: 'main'
redis-version: 'latest'
python-version: '3.10'
python-version: '3.11'

# pre-release Django and redis
- django-version: 'main'
redis-version: 'master'
python-version: '3.10'

# exclude python 3.6 and 3.7 for django 4.x as they are not supported see https://docs.djangoproject.com/en/dev/releases/4.0/#python-compatibility
exclude:
- django-version: '4.0'
python-version: '3.6'

- django-version: '4.0'
python-version: '3.7'
python-version: '3.11'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -67,7 +64,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-test-python-${{ matrix.python-version }}-django-${{ matrix.django-version }}-redis-${{ matrix.redis-version }}-${{ hashFiles('**/setup.*') }}
Expand Down Expand Up @@ -96,7 +93,7 @@ jobs:
REDIS: ${{ matrix.redis-version }}

- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
env_vars: DJANGO,REDIS,PYTHON
flags: tests
Expand All @@ -114,15 +111,14 @@ jobs:
matrix:
tool:
- 'black'
- 'flake8'
- 'isort'
- 'ruff'
- 'mypy'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -132,7 +128,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-lint-${{ hashFiles('**/setup.*') }}
Expand All @@ -142,14 +138,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
python -m pip install --upgrade "tox<4"

- name: Run ${{ matrix.tool }}
run: tox -e ${{ matrix.tool }}

- name: Upload coverage
if: ${{ matrix.tool == 'mypy' }}
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: mypy

Expand All @@ -158,12 +154,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -173,7 +169,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-check-changelog-${{ hashFiles('**/setup.*') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
23 changes: 8 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.6.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand All @@ -9,22 +9,15 @@ repos:
- id: check-symlinks
- id: debug-statements

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
# from readme - ruff with autofix must run before
# other formatters, such as black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.8
hooks:
- id: pyupgrade
- id: ruff
args: [ --fix, --exit-non-zero-on-fix , --show-fixes]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
137 changes: 137 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# https://beta.ruff.rs/docs/rules/
lint.select = [
# rules from pyflakes
"F",

# rules from pycodestyle
"E", "W",

# rules from mccabe
"C90",

# rules from isort
"I",

# rules from pyupgrade
"UP",

# rules from flake8-2020
"YTT",

# rules from flake8-annotations
# "ANN",

# rules from flake8-bandit
"S",

# rules from flake8-blind-except
"BLE",

# rules from flake8-boolean-trap
# TODO: "FBT",

# rules from flake8-bugbear
"B",

# rules from flake8-builtins
"A",

# rules from flake8-commas
"COM",

# rules from flake8-comprehensions
"C4",

# rules from flake8-datetimez
# TODO: "DTZ",

# rules from flake8-debugger
"T10",

# rules from flake8-django
"DJ",

# rules from flake8-errmsg
"EM",

# rules from flake8-executable
"EXE",

# rules from flake8-implicit-str-concat
"ISC",

# rules from flake8-import-conventions
"ICN",

# rules from flake8-logging-format
"G",

# rules from flake8-no-pep420
"INP",

# rules from flake8-pie
# TODO: "PIE",

# rules from flake8-print
"T20",

# rules from flake8-pyi
"PYI",

# rules from flake8-pytest-style
# TODO: "PT",

# rules from flake8-raise
"RSE",

# rules from flake8-return
"RET",

# rules from flake8-self
# TODO: "SLF",

# rules from flake8-simplify
"SIM",

# rules from flake8-tidy-imports
"TID",

# rules from flake8-type-checking
"TCH",

# rules from flake8-gettext
"INT",

# rules from flake8-unused-arguments
# TODO: "ARG",

# rules from flake8-use-pathlib
"PTH",

# removes unused noqa comments
"RUF100",
]

lint.ignore = [
"COM812", # missing trailing comma, covered by black
"ANN101", # ignore missing type annotation in self parameter
"S311", # ignore Standard pseudo-random generators because they are not used for cryptographic purposes
]

fix = true

target-version = "py38"

[lint.flake8-tidy-imports]
## Disallow all relative imports.
ban-relative-imports = "all"

[lint.per-file-ignores]
# ignore assert statements in tests
"tests/*.py" = ["S101"]

# ignore SECRET_KEY in settings files in tests
"tests/settings/*.py" = ["S105"]

# pickle is used on purpose and its use is discouraged
"django_redis/serializers/pickle.py" = ["S301"]
13 changes: 7 additions & 6 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Andrei Antoukh / niwibe <https://github.com/niwibe>
Sean Bleier <http://github.com/sebleier>
Matt Dennewitz <http://github.com/blackbrrr>
Jannis Leidel <http://github.com/jezdez>
S. Angel / Twidi <http://github.com/twidi>
Noah Kantrowitz / coderanger <http://github.com/coderanger>
Martin Mahner / bartTC <http://github.com/bartTC>
Sean Bleier <https://github.com/sebleier>
Matt Dennewitz <https://github.com/blackbrrr>
Jannis Leidel <https://github.com/jezdez>
S. Angel / Twidi <https://github.com/twidi>
Noah Kantrowitz / coderanger <https://github.com/coderanger>
Martin Mahner / bartTC <https://github.com/bartTC>
Timothée Peignier / cyberdelia <https://github.com/cyberdelia>
Lior Sion / liorsion <https://github.com/liorsion>
Ales Zoulek / aleszoulek <https://github.com/aleszoulek>
Expand All @@ -14,3 +14,4 @@ David Zderic / dzderic <https://github.com/dzderic>
Kirill Zaitsev / teferi <https://github.com/teferi>
Jon Dufresne <https://github.com/jdufresne>
Anès Foufa <https://github.com/AnesFoufa>
Segyo Myung <https://github.com/myungsegyo>
Loading
Loading