* feat: add iterator function with sample docstring * feat: implement the iterator queryset method * feat: completed the docstring of iterator method * test: write test function to check iterator result * refactor: use iterate method instead fetch_all * fix: debuging syntax error in kwargs of iterator * feat: write a base sample doc for iterator method * refactor: add ouput comment iterator docs example * refactor: check change pk yield ormar model * test: write new test to coverage iterator queryset * fix: debuging new user model class 3 number * fix: iterate on user3 model class * fix: debug id field in user3 model by main user * fix: remove prefetch_related for iterator method * fix: debug mypy test for type annotation * fix: added type annotation for rows variable * simplify row checks as processing is expensive, raise exception on prefetch_related with iterator * fix coverage * fix mypy, bump mypy in pre-commit to newest version * refactor: update document and test uuid pk type * feat: write docs of iterate in quesrysetproxy * feat: write iterate method querysetproxy tests * fix: debuging new test written uuid pk * refactor: seperate iterate test modules * refactor: change description and handle empty set * feat: added iterate method in readme files * fix: set pragma: no cover for raised test Co-authored-by: collerek <collerek@gmail.com>
32 lines
929 B
YAML
32 lines
929 B
YAML
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
exclude: ^(docs_src/|examples/)
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 3.9.2
|
|
hooks:
|
|
- id: flake8
|
|
exclude: ^(docs_src/|examples/|tests/)
|
|
args: [ '--max-line-length=88' ]
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.961
|
|
hooks:
|
|
- id: mypy
|
|
exclude: ^(docs_src/|examples/)
|
|
args: [--no-strict-optional, --ignore-missing-imports]
|
|
additional_dependencies: [
|
|
types-ujson>=0.1.1,
|
|
types-PyMySQL>=1.0.2,
|
|
types-ipaddress>=1.0.0,
|
|
types-enum34>=1.1.0,
|
|
types-cryptography>=3.3.5,
|
|
types-orjson>=3.6.0,
|
|
types-aiofiles>=0.1.9,
|
|
types-pkg-resources>=0.1.3,
|
|
types-requests>=2.25.9,
|
|
types-toml>=0.10.0,
|
|
pydantic>=1.8.2
|
|
]
|