Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
5f3bbcc
Add github CI (#557)
Mark90 Mar 12, 2022
a274196
Update CI (#558)
Dreamsorcerer Mar 14, 2022
02782c2
Initial mypy setup (#560)
Dreamsorcerer Mar 14, 2022
760ccab
Test keys refactoring (#572)
citramon May 12, 2022
0b55407
Add coverage for tests (#581)
Dreamsorcerer Dec 12, 2022
485040c
Add CodeQL workflow for GitHub code scanning (#579)
lgtm-com[bot] Dec 12, 2022
fa80aa4
[Bugfix] Add redis-py >= 4.2.0 support (#546)
laggardkernel Dec 27, 2022
06877e0
Add types-redis (#583)
Dreamsorcerer Dec 27, 2022
2d91b7d
Enable performance tests (#584)
Dreamsorcerer Dec 28, 2022
4a40ce8
Tests cleanup (#586)
Dreamsorcerer Dec 28, 2022
2280bc7
Fix warnings, use autospec etc. (#588)
Dreamsorcerer Dec 30, 2022
6276bb4
Minor coverage improvements (#589)
Dreamsorcerer Dec 30, 2022
fc603d8
CodeQL cleanup (#591)
Dreamsorcerer Dec 30, 2022
61c828b
Remove deprecated loop parameters. (#592)
Dreamsorcerer Dec 30, 2022
f57b7bf
Add Python 3.10 (#590)
Dreamsorcerer Dec 30, 2022
e7fc1d1
Create auto-merge.yml (#593)
Dreamsorcerer Dec 30, 2022
c35ade3
Bump actions/cache from 2 to 3 (#596)
dependabot[bot] Dec 30, 2022
7745c6c
Bump flake8-bugbear from 22.1.11 to 22.12.6 (#599)
dependabot[bot] Dec 30, 2022
61ad922
Bump mypy from 0.940 to 0.991 (#602)
dependabot[bot] Dec 30, 2022
f48eb9b
Bump pytest-mock from 3.7 to 3.10.0 (#603)
dependabot[bot] Dec 30, 2022
8b79ad1
Use python-version cache (#604)
Dreamsorcerer Dec 30, 2022
bb8e7b5
Bump actions/checkout from 2 to 3 (#598)
dependabot[bot] Dec 30, 2022
742926f
Tweak for flaky test (#605)
Dreamsorcerer Dec 30, 2022
94787df
Pin extra dependencies (#606)
Dreamsorcerer Dec 30, 2022
f51335a
Bump codecov/codecov-action from 2 to 3 (#594)
dependabot[bot] Dec 30, 2022
fea144c
Bump pre-commit/action from 2.0.3 to 3.0.0 (#595)
dependabot[bot] Dec 30, 2022
51d071e
Bump flake8-bandit from 3.0.0 to 4.1.1 (#597)
dependabot[bot] Dec 30, 2022
77976b0
Tweak flaky test (#607)
Dreamsorcerer Dec 30, 2022
42293ea
Degrade logger level from info to debug if optional packages are not …
havardthom Dec 30, 2022
e64ff89
Enable flake8-requirements (#561)
Dreamsorcerer Dec 30, 2022
781af66
Decorator @cached creates cache with the Cache() factory (#568)
padraic-shafer Dec 30, 2022
8d6f7df
Bump dependabot/fetch-metadata from 1.1.0 to 1.3.5 (#612)
dependabot[bot] Jan 1, 2023
54a7738
Bump py-actions/py-dependency-install from 3 to 4 (#611)
dependabot[bot] Jan 1, 2023
a75b4de
Bump pytest-cov from 3.0.0 to 4.0.0 (#614)
dependabot[bot] Jan 1, 2023
444bbab
Bump marshmallow from 3.15 to 3.19.0 (#613)
dependabot[bot] Jan 1, 2023
823a7b8
Bump types-ujson from 4.2.1 to 5.6.0.0 (#616)
dependabot[bot] Jan 1, 2023
d1a29b6
Bump flake8-import-order from 0.18.1 to 0.18.2 (#615)
dependabot[bot] Jan 1, 2023
a8b169e
Reenable multiprocessing in coverage (#617)
Dreamsorcerer Jan 1, 2023
84d9263
Bump pytest from 7.0.1 to 7.2.0 (#601)
dependabot[bot] Jan 1, 2023
5b46fc5
make SimpleMemoryBackend store state in instance instead of class (#562)
Fogapod Jan 2, 2023
2abe6b2
Update ci.yml
Dreamsorcerer Jan 2, 2023
1b839ab
Add Python 3.11 (#618)
Dreamsorcerer Jan 2, 2023
89d01e4
Bump types-redis from 4.3.21.6 to 4.3.21.7 (#621)
dependabot[bot] Jan 2, 2023
0482773
Bump flake8-requirements from 1.5.3 to 1.7.5 (#620)
dependabot[bot] Jan 2, 2023
efddd3b
Separate requirements (#623)
Dreamsorcerer Jan 2, 2023
4d25811
Bump flake8 from 5.0.4 to 6.0.0 (#622)
dependabot[bot] Jan 2, 2023
076ac89
Create MANIFEST.in (#626)
Dreamsorcerer Jan 2, 2023
75d85a2
Bump types-redis from 4.3.21.7 to 4.4.0.0 (#630)
dependabot[bot] Jan 6, 2023
cc43e3d
Bump redis from 4.4.0 to 4.4.1 (#631)
dependabot[bot] Jan 9, 2023
5426793
Bump types-ujson from 5.6.0.0 to 5.7.0.0 (#632)
dependabot[bot] Jan 9, 2023
2cc74f7
Decorator namespace key (#627)
padraic-shafer Jan 10, 2023
c4fc8ba
Use `base.ensure_key()` in `_build_key()` to ensure consistency of en…
padraic-shafer Jan 10, 2023
8267459
Clarify __init__ params for decorator multi_cached (#637)
padraic-shafer Jan 11, 2023
f944b09
Bump redis from 4.4.1 to 4.4.2 (#639)
dependabot[bot] Jan 11, 2023
71c2708
Bump flake8-requirements from 1.7.5 to 1.7.6 (#642)
dependabot[bot] Jan 13, 2023
3f6f3ae
Release 0.12 (#619)
Dreamsorcerer Jan 13, 2023
7dd7a28
Fix release
Dreamsorcerer Jan 13, 2023
dcc77eb
Fix release
Dreamsorcerer Jan 13, 2023
651cde3
Fix changelog for release
Dreamsorcerer Jan 13, 2023
a0dc565
Update and rename CHANGELOG.md to CHANGES.rst
Dreamsorcerer Jan 13, 2023
349cf86
Update ci.yml
Dreamsorcerer Jan 13, 2023
cb7df4c
Bump version to v1.0.0a0
Dreamsorcerer Jan 13, 2023
d2d91c3
Make BaseSerializer abstract (#624)
Dreamsorcerer Jan 13, 2023
5007dc2
FIX: preserve original keys after key_builder transformation (#564)
h2h0u Jan 13, 2023
79c3f70
Remove key parameter (#643)
Dreamsorcerer Jan 14, 2023
0e904c5
Update MANIFEST.in
Dreamsorcerer Jan 14, 2023
7d1b758
Update conf.py
Dreamsorcerer Jan 14, 2023
44ae068
Update conf.py
Dreamsorcerer Jan 14, 2023
0cedbb2
Clarify requirement of keys for a multi_cached function (#645)
padraic-shafer Jan 14, 2023
9f67ac5
Bump pytest from 7.2.0 to 7.2.1 (#648)
dependabot[bot] Jan 16, 2023
155b465
Bump types-redis from 4.4.0.0 to 4.4.0.2 (#650)
dependabot[bot] Jan 18, 2023
c916bab
Bump types-redis from 4.4.0.2 to 4.4.0.3 (#651)
dependabot[bot] Jan 19, 2023
a13fabe
Update .codecov.yml
Dreamsorcerer Jan 26, 2023
fe05c7f
Bump types-redis from 4.4.0.3 to 4.4.0.4 (#653)
dependabot[bot] Jan 30, 2023
76284ec
Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 (#654)
dependabot[bot] Feb 1, 2023
929cf41
Bump aio-libs/create-release from 1.3.3 to 1.6.6 (#655)
dependabot[bot] Feb 1, 2023
e4864d2
Bump types-redis from 4.4.0.4 to 4.4.0.5 (#656)
dependabot[bot] Feb 2, 2023
5d5e939
Bump types-redis from 4.4.0.5 to 4.4.0.6 (#657)
dependabot[bot] Feb 3, 2023
2eaac48
Bump flake8-requirements from 1.7.6 to 1.7.7 (#658)
dependabot[bot] Feb 3, 2023
2db6a39
Bump redis from 4.4.2 to 4.5.1 (#660)
dependabot[bot] Feb 8, 2023
f9ec685
Bump mypy from 0.991 to 1.0.0 (#659)
dependabot[bot] Feb 8, 2023
7c80a0f
Introduce skip_cache_func (#652)
VitalyPetrov Feb 9, 2023
afa6659
Bump flake8-bugbear from 22.12.6 to 23.1.14 (#647)
dependabot[bot] Feb 9, 2023
a95a10b
Bump aiomcache from 0.8.0 to 0.8.1 (#662)
dependabot[bot] Feb 10, 2023
941322f
Bump types-redis from 4.4.0.6 to 4.5.1.0 (#661)
dependabot[bot] Feb 10, 2023
30ea3e6
Bump types-redis from 4.5.1.0 to 4.5.1.1 (#666)
dependabot[bot] Feb 15, 2023
90d525a
Bump mypy from 1.0.0 to 1.0.1 (#668)
dependabot[bot] Feb 20, 2023
6e09ac3
Bump aiohttp from 3.8.3 to 3.8.4 (#664)
dependabot[bot] Feb 20, 2023
0729e23
Bump flake8-bugbear from 23.1.20 to 23.2.13 (#665)
dependabot[bot] Feb 20, 2023
e40c99e
Bump types-ujson from 5.7.0.0 to 5.7.0.1 (#672)
dependabot[bot] Feb 21, 2023
975fb35
Bump types-redis from 4.5.1.1 to 4.5.1.2 (#673)
dependabot[bot] Feb 21, 2023
b2036b3
Bump types-redis from 4.5.1.2 to 4.5.1.3 (#675)
dependabot[bot] Feb 27, 2023
2df2056
Simplify cache namespace and key encoding logic for v1 (#670)
padraic-shafer Feb 27, 2023
6423894
Minor refactor of key_builder (#678)
Dreamsorcerer Feb 27, 2023
f2a8c4d
Fix some type errors (#679)
Dreamsorcerer Feb 27, 2023
77b0a9c
Bump types-redis from 4.5.1.3 to 4.5.1.4 (#680)
dependabot[bot] Feb 28, 2023
2f9d314
Only include aiocache in packages (#682)
Dreamsorcerer Mar 3, 2023
d3fb375
Make BaseCache an ABC (#683)
padraic-shafer Mar 5, 2023
d2f779b
Bump mypy from 1.0.1 to 1.1.1 (#687)
dependabot[bot] Mar 7, 2023
6f13737
Bump msgpack from 1.0.4 to 1.0.5 (#688)
dependabot[bot] Mar 8, 2023
b09a21f
Bump pytest from 7.2.1 to 7.2.2 (#686)
dependabot[bot] Mar 8, 2023
19e0466
Bump flake8-bugbear from 23.2.13 to 23.3.12 (#690)
dependabot[bot] Mar 13, 2023
d150bd6
Bump redis from 4.5.1 to 4.5.2 (#694)
dependabot[bot] Mar 20, 2023
16c58b0
Bump pytest-asyncio from 0.20.3 to 0.21.0 (#695)
dependabot[bot] Mar 20, 2023
b50e6db
Bump flake8-bugbear from 23.3.12 to 23.3.23 (#696)
dependabot[bot] Mar 23, 2023
70f79b1
Bump types-redis from 4.5.1.4 to 4.5.3.1 (#699)
dependabot[bot] Mar 28, 2023
55e3818
Bump redis from 4.5.2 to 4.5.3 (#697)
dependabot[bot] Mar 28, 2023
2000003
Bump redis from 4.5.3 to 4.5.4 (#700)
dependabot[bot] Mar 29, 2023
6f3f513
Bump pytest from 7.2.2 to 7.3.0 (#703)
dependabot[bot] Apr 10, 2023
2cc784f
Bump types-ujson from 5.7.0.1 to 5.7.0.2 (#704)
dependabot[bot] Apr 12, 2023
99bde77
Bump mypy from 1.1.1 to 1.2.0 (#702)
dependabot[bot] Apr 12, 2023
2a08df4
Bump types-redis from 4.5.3.1 to 4.5.4.1 (#701)
dependabot[bot] Apr 12, 2023
0d6ab6d
Bump pytest from 7.3.0 to 7.3.1 (#706)
dependabot[bot] Apr 14, 2023
c7572a2
Fix doc naming of parameter
Dreamsorcerer Apr 23, 2023
ca23ff8
Bump types-ujson from 5.7.0.2 to 5.7.0.4 (#708)
dependabot[bot] Apr 25, 2023
37949ec
Bump types-ujson from 5.7.0.4 to 5.7.0.5 (#710)
dependabot[bot] May 1, 2023
2f9ed98
Bump types-redis from 4.5.4.1 to 4.5.5.0 (#713)
dependabot[bot] May 9, 2023
fc60327
Bump types-redis from 4.5.5.0 to 4.5.5.2 (#717)
dependabot[bot] May 11, 2023
3c0c10a
Bump mypy from 1.2.0 to 1.3.0 (#715)
dependabot[bot] May 11, 2023
fea572b
Bump flake8-bugbear from 23.3.23 to 23.5.9 (#714)
dependabot[bot] May 11, 2023
bc66c6a
Bump redis from 4.5.4 to 4.5.5 (#712)
dependabot[bot] May 11, 2023
714e677
Bump pytest-cov from 4.0.0 to 4.1.0 (#720)
dependabot[bot] May 24, 2023
3656fc3
Bump dependabot/fetch-metadata from 1.3.6 to 1.5.1 (#722)
dependabot[bot] Jun 1, 2023
b7467b3
Bump flake8-bugbear from 23.5.9 to 23.6.5 (#723)
dependabot[bot] Jun 5, 2023
dfea698
Bump flake8-requirements from 1.7.7 to 1.7.8 (#718)
dependabot[bot] Jun 5, 2023
6afb424
Bump pytest from 7.3.1 to 7.3.2 (#726)
dependabot[bot] Jun 12, 2023
7909449
Fix: pairs may not support len (#728)
zhu Jun 14, 2023
3f1b81d
Bump types-ujson from 5.7.0.5 to 5.8.0.0 (#727)
dependabot[bot] Jun 14, 2023
4a4ecf0
Bump pytest-mock from 3.10.0 to 3.11.1 (#729)
dependabot[bot] Jun 16, 2023
2fb6cbe
Bump mypy from 1.3.0 to 1.4.0 (#730)
dependabot[bot] Jun 20, 2023
e7c0381
Make aiomcache and redis deps optional for unit tests [WIP] (#725)
mgorny Jun 21, 2023
41822d8
Add workflows with partial backends to CI (#731)
mgorny Jun 22, 2023
99d30be
Bump types-redis from 4.5.5.2 to 4.6.0.0 (#737)
dependabot[bot] Jun 28, 2023
6bb3032
Bump redis from 4.5.5 to 4.6.0 (#735)
dependabot[bot] Jun 28, 2023
c4731dd
Bump pytest from 7.3.2 to 7.4.0 (#733)
dependabot[bot] Jun 28, 2023
cf5c06b
Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 (#738)
dependabot[bot] Jul 1, 2023
6e588c3
Bump types-redis from 4.6.0.0 to 4.6.0.1 (#739)
dependabot[bot] Jul 3, 2023
3e74aa2
Bump mypy from 1.4.0 to 1.4.1 (#736)
dependabot[bot] Jul 3, 2023
3a0cb09
Bump flake8-bugbear from 23.6.5 to 23.7.10 (#743)
dependabot[bot] Jul 10, 2023
da31402
Bump pytest-asyncio from 0.21.0 to 0.21.1 (#744)
dependabot[bot] Jul 12, 2023
3867e34
Bump aiohttp from 3.8.4 to 3.8.5 (#746)
dependabot[bot] Jul 19, 2023
38b5d6c
Bump types-ujson from 5.8.0.0 to 5.8.0.1 (#747)
dependabot[bot] Jul 20, 2023
004b061
Bump types-redis from 4.6.0.1 to 4.6.0.3 (#748)
dependabot[bot] Jul 20, 2023
30af4a9
Bump flake8 from 6.0.0 to 6.1.0 (#750)
dependabot[bot] Jul 31, 2023
a07d602
Bump mypy from 1.4.1 to 1.5.0 (#751)
dependabot[bot] Aug 10, 2023
6f0fc25
Bump redis from 4.6.0 to 5.0.0 (#752)
dependabot[bot] Aug 15, 2023
63600a6
Bump types-redis from 4.6.0.3 to 4.6.0.4 (#753)
dependabot[bot] Aug 16, 2023
ae8405c
Drop Python 3.7 (#756)
Dreamsorcerer Aug 22, 2023
5d681de
Bump types-redis from 4.6.0.4 to 4.6.0.5 (#757)
dependabot[bot] Aug 22, 2023
f83f43b
Change RedisBackend to accept Redis client directly (#755)
ben-cutler-datarobot Aug 22, 2023
c845fee
Bump mypy from 1.5.0 to 1.5.1 (#754)
dependabot[bot] Aug 29, 2023
de34e2a
Bump pytest from 7.4.0 to 7.4.2 (#760)
dependabot[bot] Sep 8, 2023
7d696fd
Bump flake8-bugbear from 23.7.10 to 23.9.16 (#763)
dependabot[bot] Sep 18, 2023
0abbf70
Bump types-redis from 4.6.0.5 to 4.6.0.7 (#765)
dependabot[bot] Sep 25, 2023
7303553
Bump redis from 5.0.0 to 5.0.1 (#766)
dependabot[bot] Sep 26, 2023
9a261d8
Bump msgpack from 1.0.5 to 1.0.7 (#767)
dependabot[bot] Sep 28, 2023
f4b5031
Bump actions/checkout from 3 to 4 (#768)
dependabot[bot] Oct 1, 2023
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
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
codecov:
notify:
require_ci_to_pass: yes
after_n_builds: 4

coverage:
status:
Expand Down
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
concurrency = multiprocessing
22 changes: 22 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[flake8]
enable-extensions = G
max-doc-length = 90
max-line-length = 90
select = A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,B901,B902,B903,B950
# E226: Missing whitespace around arithmetic operators can help group things together.
# E501,W505: Superseeded by B950 (from Bugbear)
# E722: Superseeded by B001 (from Bugbear)
# W503: Mutually exclusive with W504.
ignore = E226,E501,E722,W503,W505
per-file-ignores =
# S*: Bandit security checks not useful in tests.
tests/*:S

# flake8-import-order
application-import-names = aiocache
import-order-style = pycharm

# flake8-quotes
inline-quotes = "
# flake8-requirements
requirements-file = requirements-dev.txt
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
22 changes: 22 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
160 changes: 160 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
name: CI

on:
push:
branches:
- master
- '[0-9].[0-9]+' # matches to backport branches, e.g. 3.6
tags: [ 'v*' ]
pull_request:
branches:
- master
- '[0-9].[0-9]+'

jobs:
lint:
name: Linter
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Pre-Commit hooks
uses: pre-commit/action@v3.0.0
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
with:
path: requirements-dev.txt
- name: Install itself
run: |
pip install .
- name: Run linter
run: |
make lint
- name: Prepare twine checker
run: |
pip install -U build twine wheel
python -m build
- name: Run twine checker
run: |
twine check dist/*

test:
name: Test
strategy:
matrix:
os: [ubuntu]
pyver: ['3.8', '3.9', '3.10', '3.11']
redis: ['latest']
ujson: ['']
include:
- os: ubuntu
pyver: pypy-3.8
redis: 'latest'
- os: ubuntu
pyver: '3.9'
redis: '5.0.14'
- os: ubuntu
pyver: '3.9'
redis: 'latest'
ujson: 'ujson'
services:
redis:
image: redis:${{ matrix.redis }}
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
memcached:
image: memcached
ports:
- 11211:11211
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
allow-prereleases: true
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install ujson
if: ${{ matrix.ujson == 'ujson' }}
run: pip install ujson
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
with:
path: requirements.txt
- name: Run unittests
env:
COLOR: 'yes'
run: pytest tests --cov-report xml --cov-report html
- name: Run functional tests
run: bash examples/run_all.sh
- name: Uninstall optional backends
run: pip uninstall -y aiomcache redis
- name: Run unittests with minimal backend set
env:
COLOR: 'yes'
run: |
pytest --cov-report xml --cov-report html --cov-append tests/acceptance tests/ut -m "not memcached and not redis" --ignore "tests/ut/backends/test_memcached.py" --ignore "tests/ut/backends/test_redis.py"
- name: Produce coverage report
run: python -m coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unit
fail_ci_if_error: false

check: # This job does nothing and is only used for the branch protection
if: always()

needs: [lint, test]

runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

deploy:
name: Deploy
environment: release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: [check]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update pip, wheel, setuptools, build, twine
run: |
python -m pip install -U pip wheel setuptools build twine
- name: Build dists
run: |
python -m build
- name: Make Release
uses: aio-libs/create-release@v1.6.6
with:
changes_file: CHANGES.rst
name: aiocache
version_file: aiocache/__init__.py
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
dist_dir: dist
fix_issue_regex: "`#(\\d+) <https://github.com/aio-libs/aiocache/issues/\\1>`"
fix_issue_repl: "(#\\1)"
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "28 18 * * 3"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ python ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
30 changes: 30 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[mypy]
files = aiocache, examples, tests
#check_untyped_defs = True
follow_imports_for_stubs = True
#disallow_any_decorated = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
#disallow_untyped_calls = True
disallow_untyped_decorators = True
#disallow_untyped_defs = True
implicit_reexport = False
no_implicit_optional = True
show_error_codes = True
strict_equality = True
warn_incomplete_stub = True
warn_redundant_casts = True
warn_unreachable = True
warn_unused_ignores = True
disallow_any_unimported = True
#warn_return_any = True

[mypy-tests.*]
disallow_any_decorated = False
disallow_untyped_calls = False
disallow_untyped_defs = False


[mypy-msgpack.*]
ignore_missing_imports = True
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/flake8
rev: '4.0.1'
hooks:
- id: flake8
exclude: "^docs/"
Loading