Defaults¶
This document summarizes all default parameters and configurations in Querymate.
Query Parameters¶
The following are the default parameters for query operations:
QueryBuilder Defaults¶
The QueryBuilder class has the following default behaviors:
If no fields are specified in
select()
, all model fields are selectedIf no conditions are specified in
filter()
, no filtering is appliedIf no sort parameters are specified in
sort()
, no sorting is appliedIf no limit/offset is specified in
limit_and_offset()
, all results are returnedThe
build()
method defaults to no filtering, sorting, or pagination if parameters are not specified
Development Environment¶
Python Version¶
Minimum Python version: 3.11
Dependencies¶
Core Dependencies¶
Development Dependencies¶
Code Style and Linting¶
Line Length¶
Ruff: 88 characters
Black: 88 characters
isort: 80 characters
Python Version Target¶
Target Python version: 3.11
Linting Rules¶
Ruff¶
Selected Lints: - E (pycodestyle errors) - F (pyflakes) - I (isort) - N (pep8-naming) - UP (pyupgrade) - B (flake8-bugbear) - RUF (ruff-specific)
Ignored Lints: - E501 (line too long) - N806 (camelCase in function)
isort Configuration¶
Profile: black
Multi-line output: 3
Include trailing comma: true
Force grid wrap: 0
Use parentheses: true
Ensure newline before comments: true
Type Checking (mypy)¶
The following mypy settings are enabled by default:
Python version: 3.11
Warn return any: true
Warn unused configs: true
Disallow untyped defs: true
Disallow incomplete defs: true
Check untyped defs: true
Disallow untyped decorators: true
No implicit optional: true
Warn redundant casts: true
Warn unused ignores: true
Warn no return: true
Warn unreachable: true
Testing Configuration¶
Test paths: “tests” directory
Test file pattern: “test_*.py”