meilisearch-python-sdk 3.2.0__tar.gz → 3.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meilisearch-python-sdk might be problematic. Click here for more details.

Files changed (92) hide show
  1. meilisearch_python_sdk-3.4.0/.github/FUNDING.yml +1 -0
  2. meilisearch_python_sdk-3.4.0/.github/dependabot.yaml +16 -0
  3. meilisearch_python_sdk-3.4.0/.github/release-draft-template.yaml +29 -0
  4. meilisearch_python_sdk-3.4.0/.github/workflows/nightly_testing.yml +40 -0
  5. meilisearch_python_sdk-3.4.0/.github/workflows/pypi_publish.yaml +29 -0
  6. meilisearch_python_sdk-3.4.0/.github/workflows/release-drafter.yaml +16 -0
  7. meilisearch_python_sdk-3.4.0/.github/workflows/testing.yaml +225 -0
  8. meilisearch_python_sdk-3.4.0/.gitignore +139 -0
  9. meilisearch_python_sdk-3.4.0/.pre-commit-config.yaml +21 -0
  10. meilisearch_python_sdk-3.4.0/CONTRIBUTING.md +328 -0
  11. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/PKG-INFO +40 -20
  12. meilisearch_python_sdk-3.4.0/assets/add_in_batches.png +0 -0
  13. meilisearch_python_sdk-3.4.0/assets/searches.png +0 -0
  14. meilisearch_python_sdk-3.4.0/benchmark/run_benchmark.py +236 -0
  15. meilisearch_python_sdk-3.4.0/codecov.yml +6 -0
  16. meilisearch_python_sdk-3.4.0/datasets/small_movies.json +222 -0
  17. meilisearch_python_sdk-3.4.0/docker-compose.https.yml +12 -0
  18. meilisearch_python_sdk-3.4.0/docker-compose.yml +8 -0
  19. meilisearch_python_sdk-3.4.0/docs/CNAME +1 -0
  20. meilisearch_python_sdk-3.4.0/docs/async_client_api.md +53 -0
  21. meilisearch_python_sdk-3.4.0/docs/async_index_api.md +9 -0
  22. meilisearch_python_sdk-3.4.0/docs/client_api.md +35 -0
  23. meilisearch_python_sdk-3.4.0/docs/css/custom.css +14 -0
  24. meilisearch_python_sdk-3.4.0/docs/decorators_api.md +5 -0
  25. meilisearch_python_sdk-3.4.0/docs/index.md +15 -0
  26. meilisearch_python_sdk-3.4.0/docs/index_api.md +8 -0
  27. meilisearch_python_sdk-3.4.0/docs/js/umami.js +7 -0
  28. meilisearch_python_sdk-3.4.0/docs/json_handler.md +83 -0
  29. meilisearch_python_sdk-3.4.0/docs/plugins.md +315 -0
  30. meilisearch_python_sdk-3.4.0/docs/pydantic.md +90 -0
  31. meilisearch_python_sdk-3.4.0/examples/.gitignore +5 -0
  32. meilisearch_python_sdk-3.4.0/examples/README.md +25 -0
  33. meilisearch_python_sdk-3.4.0/examples/add_documents_decorator.py +33 -0
  34. meilisearch_python_sdk-3.4.0/examples/add_documents_in_batches.py +20 -0
  35. meilisearch_python_sdk-3.4.0/examples/async_add_documents_decorator.py +37 -0
  36. meilisearch_python_sdk-3.4.0/examples/async_add_documents_in_batches.py +24 -0
  37. meilisearch_python_sdk-3.4.0/examples/async_documents_and_search_results.py +73 -0
  38. meilisearch_python_sdk-3.4.0/examples/async_search_tracker.py +63 -0
  39. meilisearch_python_sdk-3.4.0/examples/async_update_settings.py +32 -0
  40. meilisearch_python_sdk-3.4.0/examples/documents_and_search_results.py +67 -0
  41. meilisearch_python_sdk-3.4.0/examples/fastapi_example.py +74 -0
  42. meilisearch_python_sdk-3.4.0/examples/orjson_example.py +14 -0
  43. meilisearch_python_sdk-3.4.0/examples/requirements.txt +2 -0
  44. meilisearch_python_sdk-3.4.0/examples/search_tracker.py +53 -0
  45. meilisearch_python_sdk-3.4.0/examples/ujson_example.py +14 -0
  46. meilisearch_python_sdk-3.4.0/examples/update_settings.py +28 -0
  47. meilisearch_python_sdk-3.4.0/justfile +80 -0
  48. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/_client.py +67 -9
  49. meilisearch_python_sdk-3.4.0/meilisearch_python_sdk/_version.py +1 -0
  50. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/decorators.py +10 -2
  51. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/index.py +288 -2
  52. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/search.py +20 -0
  53. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/settings.py +11 -5
  54. meilisearch_python_sdk-3.4.0/meilisearch_python_sdk/py.typed +0 -0
  55. meilisearch_python_sdk-3.4.0/mkdocs.yaml +46 -0
  56. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/pyproject.toml +48 -43
  57. meilisearch_python_sdk-3.4.0/tests/__init__.py +0 -0
  58. meilisearch_python_sdk-3.4.0/tests/conftest.py +354 -0
  59. meilisearch_python_sdk-3.4.0/tests/test_async_client.py +988 -0
  60. meilisearch_python_sdk-3.4.0/tests/test_async_documents.py +1429 -0
  61. meilisearch_python_sdk-3.4.0/tests/test_async_index.py +932 -0
  62. meilisearch_python_sdk-3.4.0/tests/test_async_index_plugins.py +526 -0
  63. meilisearch_python_sdk-3.4.0/tests/test_async_search.py +604 -0
  64. meilisearch_python_sdk-3.4.0/tests/test_client.py +970 -0
  65. meilisearch_python_sdk-3.4.0/tests/test_decorators.py +136 -0
  66. meilisearch_python_sdk-3.4.0/tests/test_documents.py +1383 -0
  67. meilisearch_python_sdk-3.4.0/tests/test_errors.py +69 -0
  68. meilisearch_python_sdk-3.4.0/tests/test_index.py +918 -0
  69. meilisearch_python_sdk-3.4.0/tests/test_index_plugins.py +473 -0
  70. meilisearch_python_sdk-3.4.0/tests/test_search.py +607 -0
  71. meilisearch_python_sdk-3.4.0/tests/test_utils.py +35 -0
  72. meilisearch_python_sdk-3.4.0/tests/test_version.py +6 -0
  73. meilisearch_python_sdk-3.4.0/uv.lock +1506 -0
  74. meilisearch_python_sdk-3.2.0/meilisearch_python_sdk/_version.py +0 -1
  75. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/LICENSE +0 -0
  76. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/README.md +0 -0
  77. /meilisearch_python_sdk-3.2.0/meilisearch_python_sdk/models/__init__.py → /meilisearch_python_sdk-3.4.0/docs/.nojekyll +0 -0
  78. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/__init__.py +0 -0
  79. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/_http_requests.py +0 -0
  80. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/_task.py +0 -0
  81. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/_utils.py +0 -0
  82. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/errors.py +0 -0
  83. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/json_handler.py +0 -0
  84. /meilisearch_python_sdk-3.2.0/meilisearch_python_sdk/py.typed → /meilisearch_python_sdk-3.4.0/meilisearch_python_sdk/models/__init__.py +0 -0
  85. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/client.py +0 -0
  86. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/documents.py +0 -0
  87. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/health.py +0 -0
  88. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/index.py +0 -0
  89. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/task.py +0 -0
  90. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/models/version.py +0 -0
  91. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/plugins.py +0 -0
  92. {meilisearch_python_sdk-3.2.0 → meilisearch_python_sdk-3.4.0}/meilisearch_python_sdk/types.py +0 -0
@@ -0,0 +1 @@
1
+ github: [sanders41]
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ labels:
8
+ - skip-changelog
9
+ - dependencies
10
+ - package-ecosystem: github-actions
11
+ directory: '/'
12
+ schedule:
13
+ interval: daily
14
+ labels:
15
+ - skip-changelog
16
+ - dependencies
@@ -0,0 +1,29 @@
1
+ name-template: 'v$RESOLVED_VERSION'
2
+ tag-template: 'v$RESOLVED_VERSION'
3
+ exclude-labels:
4
+ - 'dependencies'
5
+ - 'skip-changelog'
6
+ version-resolver:
7
+ major:
8
+ labels:
9
+ - 'breaking-change'
10
+ minor:
11
+ labels:
12
+ - 'enhancement'
13
+ - 'feature'
14
+ default: patch
15
+ categories:
16
+ - title: 'Features'
17
+ labels:
18
+ - 'feature'
19
+ - 'enhancement'
20
+ - title: 'Bug Fixes'
21
+ labels:
22
+ - 'bug'
23
+ - title: '⚠️ Breaking changes'
24
+ label: 'breaking-change'
25
+ change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
26
+ template: |
27
+ ## Changes
28
+
29
+ $CHANGES
@@ -0,0 +1,40 @@
1
+ name: Nightly Testing
2
+
3
+ on:
4
+ schedule:
5
+ # Set with UTC time
6
+ - cron: "0 5 * * *"
7
+ env:
8
+ UV_CACHE_DIR: /tmp/.uv-cache
9
+ PYTHON_VERSION: "3.12"
10
+ jobs:
11
+ random-test-order:
12
+ strategy:
13
+ fail-fast: false
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Install uv
18
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
19
+ - name: install Just
20
+ uses: taiki-e/install-action@just
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ env.PYTHON_VERSION }}
25
+ - name: Restore uv cache
26
+ uses: actions/cache@v4
27
+ with:
28
+ path: ${{ env.UV_CACHE_DIR }}
29
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
30
+ restore-keys: |
31
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
32
+ uv-${{ runner.os }}
33
+ - name: Install Dependencies
34
+ run: |
35
+ just install
36
+ uv add --dev pytest-randomly
37
+ - name: Test with pytest in random order
38
+ run: just test-ci
39
+ - name: Minimize uv cache
40
+ run: uv cache prune --ci
@@ -0,0 +1,29 @@
1
+ name: PyPi Publish
2
+ on:
3
+ release:
4
+ types:
5
+ - published
6
+ env:
7
+ PYTHON_VERSION: "3.12"
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Install uv
14
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: ${{ env.PYTHON_VERSION }}
19
+ - name: Install Dependencies
20
+ run: uv sync --frozen --all-extras
21
+ - name: Build and publish package
22
+ env:
23
+ TWINE_USERNAME: __token__
24
+ TWINE_PASSWORD: "${{ secrets.PYPI_API_KEY }}"
25
+ run: |
26
+ uvx --from build pyproject-build --installer uv
27
+ uvx twine upload dist/*
28
+ - name: Deploy Docs
29
+ run: uv run mkdocs gh-deploy --force
@@ -0,0 +1,16 @@
1
+ name: Release Drafter
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ update_release_draft:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: release-drafter/release-drafter@v6
13
+ with:
14
+ config-name: release-draft-template.yaml
15
+ env:
16
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,225 @@
1
+ name: Testing
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ env:
9
+ UV_CACHE_DIR: /tmp/.uv-cache
10
+ PYTHON_VERSION: "3.9"
11
+ jobs:
12
+ linting:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: install Just
17
+ uses: taiki-e/install-action@just
18
+ - name: Install uv
19
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: ${{ env.PYTHON_VERSION }}
24
+ - name: Restore uv cache
25
+ uses: actions/cache@v4
26
+ with:
27
+ path: ${{ env.UV_CACHE_DIR }}
28
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
29
+ restore-keys: |
30
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
31
+ uv-${{ runner.os }}
32
+ - name: Install Dependencies
33
+ run: just install
34
+ - name: mypy check
35
+ run: just mypy
36
+ - name: Minimize uv cache
37
+ run: uv cache prune --ci
38
+
39
+ parallel-testing:
40
+ strategy:
41
+ fail-fast: false
42
+ matrix:
43
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4"]
44
+ runs-on: ubuntu-latest
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - name: install Just
48
+ uses: taiki-e/install-action@just
49
+ - name: Install uv
50
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
51
+ - name: Set up Python ${{ matrix.python-version }}
52
+ uses: actions/setup-python@v5
53
+ with:
54
+ python-version: ${{ matrix.python-version }}
55
+ - name: Restore uv cache
56
+ uses: actions/cache@v4
57
+ with:
58
+ path: ${{ env.UV_CACHE_DIR }}
59
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
60
+ restore-keys: |
61
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
62
+ uv-${{ runner.os }}
63
+ - name: Install Dependencies
64
+ run: just install
65
+ - name: Test with pytest
66
+ run: just test-parallel-ci
67
+ - name: Upload coverage
68
+ uses: codecov/codecov-action@v4
69
+ with:
70
+ token: ${{ secrets.CODECOV_TOKEN }}
71
+ fail_ci_if_error: true
72
+ - name: Minimize uv cache
73
+ run: uv cache prune --ci
74
+
75
+ parallel-testing-http2:
76
+ strategy:
77
+ fail-fast: false
78
+ matrix:
79
+ python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4" ]
80
+ runs-on: ubuntu-latest
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+ - name: install Just
84
+ uses: taiki-e/install-action@just
85
+ - name: Install uv
86
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
87
+ - name: Set up Python ${{ matrix.python-version }}
88
+ uses: actions/setup-python@v5
89
+ with:
90
+ python-version: ${{ matrix.python-version }}
91
+ - name: Restore uv cache
92
+ uses: actions/cache@v4
93
+ with:
94
+ path: ${{ env.UV_CACHE_DIR }}
95
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
96
+ restore-keys: |
97
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
98
+ uv-${{ runner.os }}
99
+ - name: Install Dependencies
100
+ run: just install
101
+ - name: Test with pytest
102
+ run: |
103
+ sudo apt-get update && \
104
+ sudo apt-get install -y libnss3-tools build-essential gcc && \
105
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
106
+ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
107
+ brew install mkcert && \
108
+ mkcert -install && \
109
+ mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \
110
+ just test-parallel-ci-http2
111
+ - name: Upload coverage
112
+ uses: codecov/codecov-action@v4
113
+ with:
114
+ token: ${{ secrets.CODECOV_TOKEN }}
115
+ fail_ci_if_error: true
116
+ - name: Minimize uv cache
117
+ run: uv cache prune --ci
118
+
119
+ no-parallel-testing:
120
+ strategy:
121
+ fail-fast: false
122
+ matrix:
123
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4"]
124
+ runs-on: ubuntu-latest
125
+ steps:
126
+ - uses: actions/checkout@v4
127
+ - name: install Just
128
+ uses: taiki-e/install-action@just
129
+ - name: Install uv
130
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
131
+ - name: Set up Python ${{ matrix.python-version }}
132
+ uses: actions/setup-python@v5
133
+ with:
134
+ python-version: ${{ matrix.python-version }}
135
+ - name: Restore uv cache
136
+ uses: actions/cache@v4
137
+ with:
138
+ path: ${{ env.UV_CACHE_DIR }}
139
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
140
+ restore-keys: |
141
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
142
+ uv-${{ runner.os }}
143
+ - name: Install Dependencies
144
+ run: just install
145
+ - name: Test with pytest
146
+ run: just test-no-parallel-ci
147
+ - name: Upload coverage
148
+ uses: codecov/codecov-action@v4
149
+ with:
150
+ token: ${{ secrets.CODECOV_TOKEN }}
151
+ fail_ci_if_error: true
152
+ - name: Minimize uv cache
153
+ run: uv cache prune --ci
154
+
155
+ no-parallel-testing-http2:
156
+ strategy:
157
+ fail-fast: false
158
+ matrix:
159
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4"]
160
+ runs-on: ubuntu-latest
161
+ steps:
162
+ - uses: actions/checkout@v4
163
+ - name: install Just
164
+ uses: taiki-e/install-action@just
165
+ - name: Install uv
166
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
167
+ - name: Set up Python ${{ matrix.python-version }}
168
+ uses: actions/setup-python@v5
169
+ with:
170
+ python-version: ${{ matrix.python-version }}
171
+ - name: Restore uv cache
172
+ uses: actions/cache@v4
173
+ with:
174
+ path: ${{ env.UV_CACHE_DIR }}
175
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
176
+ restore-keys: |
177
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
178
+ uv-${{ runner.os }}
179
+ - name: Install Dependencies
180
+ run: just install
181
+ - name: Test with pytest
182
+ run: |
183
+ sudo apt-get update && \
184
+ sudo apt-get install -y libnss3-tools build-essential gcc && \
185
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
186
+ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
187
+ brew install mkcert && \
188
+ mkcert -install && \
189
+ mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \
190
+ just test-no-parallel-ci-http2
191
+ - name: Upload coverage
192
+ uses: codecov/codecov-action@v4
193
+ with:
194
+ token: ${{ secrets.CODECOV_TOKEN }}
195
+ fail_ci_if_error: true
196
+ - name: Minimize uv cache
197
+ run: uv cache prune --ci
198
+
199
+
200
+ docs:
201
+ runs-on: ubuntu-latest
202
+ steps:
203
+ - uses: actions/checkout@v4
204
+ - name: install Just
205
+ uses: taiki-e/install-action@just
206
+ - name: Install uv
207
+ run: curl -LsSf https://astral.sh/uv/install.sh | sh
208
+ - name: Set up Python
209
+ uses: actions/setup-python@v5
210
+ with:
211
+ python-version: "3.11"
212
+ - name: Restore uv cache
213
+ uses: actions/cache@v4
214
+ with:
215
+ path: ${{ env.UV_CACHE_DIR }}
216
+ key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
217
+ restore-keys: |
218
+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
219
+ uv-${{ runner.os }}
220
+ - name: Install Dependencies
221
+ run: just install
222
+ - name: Test Docs Build
223
+ run: just build-docs
224
+ - name: Minimize uv cache
225
+ run: uv cache prune --ci
@@ -0,0 +1,139 @@
1
+ meilisearch.crt
2
+ meilisearch.key
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # OS Files
9
+ *.swp
10
+ *.DS_Store
11
+
12
+ # C extensions
13
+ *.so
14
+
15
+ # Distribution / packaging
16
+ .Python
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ downloads/
21
+ eggs/
22
+ .eggs/
23
+ lib/
24
+ lib64/
25
+ parts/
26
+ sdist/
27
+ var/
28
+ wheels/
29
+ pip-wheel-metadata/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .pytest_cache/
59
+
60
+ # Translations
61
+ *.mo
62
+ *.pot
63
+
64
+ # Django stuff:
65
+ *.log
66
+ local_settings.py
67
+ db.sqlite3
68
+ db.sqlite3-journal
69
+
70
+ # Flask stuff:
71
+ instance/
72
+ .webassets-cache
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
101
+ __pypackages__/
102
+
103
+ # Celery stuff
104
+ celerybeat-schedule
105
+ celerybeat.pid
106
+
107
+ # SageMath parsed files
108
+ *.sage.py
109
+
110
+ # Environments
111
+ .env
112
+ .venv
113
+ env/
114
+ venv/
115
+ ENV/
116
+ env.bak/
117
+ venv.bak/
118
+
119
+ # Spyder project settings
120
+ .spyderproject
121
+ .spyproject
122
+
123
+ # Rope project settings
124
+ .ropeproject
125
+
126
+ # mkdocs documentation
127
+ /site
128
+
129
+ # mypy
130
+ .mypy_cache/
131
+ .dmypy.json
132
+ dmypy.json
133
+
134
+ # Pyre type checker
135
+ .pyre/
136
+
137
+ # editors
138
+ .idea
139
+ .vscode
@@ -0,0 +1,21 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.6.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-toml
7
+ - id: check-yaml
8
+ - id: debug-statements
9
+ - id: end-of-file-fixer
10
+ - id: trailing-whitespace
11
+ - repo: https://github.com/pre-commit/mirrors-mypy
12
+ rev: v1.11.2
13
+ hooks:
14
+ - id: mypy
15
+ additional_dependencies: [pydantic, types-aiofiles, types-ujson]
16
+ - repo: https://github.com/astral-sh/ruff-pre-commit
17
+ rev: v0.6.3
18
+ hooks:
19
+ - id: ruff
20
+ args: [--fix, --exit-non-zero-on-fix]
21
+ - id: ruff-format