django-ninja-aio-crud 2.0.0rc2__tar.gz → 2.0.0rc4__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 django-ninja-aio-crud might be problematic. Click here for more details.
- django_ninja_aio_crud-2.0.0rc4/.github/dependabot.yml +6 -0
- django_ninja_aio_crud-2.0.0rc4/.github/workflows/coverage.yml +32 -0
- django_ninja_aio_crud-2.0.0rc4/.github/workflows/docs.yml +110 -0
- django_ninja_aio_crud-2.0.0rc4/.github/workflows/publish.yml +23 -0
- django_ninja_aio_crud-2.0.0rc4/.gitignore +295 -0
- django_ninja_aio_crud-2.0.0rc4/.pre-commit-config.yaml +22 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/PKG-INFO +1 -1
- django_ninja_aio_crud-2.0.0rc4/docs/CNAME +1 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/authentication.md +965 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/models/model_serializer.md +867 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/models/model_util.md +1121 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/pagination.md +771 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/views/api_view.md +141 -0
- django_ninja_aio_crud-2.0.0rc4/docs/api/views/api_view_set.md +410 -0
- django_ninja_aio_crud-2.0.0rc4/docs/contributing.md +41 -0
- django_ninja_aio_crud-2.0.0rc4/docs/extra.css +14 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-create-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-delete-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-list-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-retrieve-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/images/index/foo-index-update-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/installation.md +10 -0
- django_ninja_aio_crud-2.0.0rc4/docs/getting_started/quick_start.md +135 -0
- django_ninja_aio_crud-2.0.0rc4/docs/images/bar-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/images/favicon.ico +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/images/foo-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/images/logo.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/images/model_util/foo-reverse-relations-swagger.png +0 -0
- django_ninja_aio_crud-2.0.0rc4/docs/index.md +337 -0
- django_ninja_aio_crud-2.0.0rc4/docs/release_notes.md +4 -0
- django_ninja_aio_crud-2.0.0rc4/docs/requirements.txt +8 -0
- django_ninja_aio_crud-2.0.0rc4/docs/tutorial/authentication.md +865 -0
- django_ninja_aio_crud-2.0.0rc4/docs/tutorial/crud.md +871 -0
- django_ninja_aio_crud-2.0.0rc4/docs/tutorial/filtering.md +928 -0
- django_ninja_aio_crud-2.0.0rc4/docs/tutorial/model.md +724 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_1/models.py +35 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_1/urls.py +11 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_1/views.py +16 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_2/auth.py +33 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_2/models.py +62 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_2/urls.py +11 -0
- django_ninja_aio_crud-2.0.0rc4/examples/ex_2/views.py +26 -0
- django_ninja_aio_crud-2.0.0rc4/main.py +245 -0
- django_ninja_aio_crud-2.0.0rc4/mkdocs.yml +152 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/__init__.py +1 -1
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/helpers/api.py +110 -57
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/views.py +4 -1
- django_ninja_aio_crud-2.0.0rc4/requirements.dev.txt +3 -0
- django_ninja_aio_crud-2.0.0rc4/run-local-coverage.sh +10 -0
- django_ninja_aio_crud-2.0.0rc4/tests/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/core/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/core/test_decorators.py +42 -0
- django_ninja_aio_crud-2.0.0rc4/tests/core/test_exceptions_api.py +43 -0
- django_ninja_aio_crud-2.0.0rc4/tests/core/test_renderer_parser.py +50 -0
- django_ninja_aio_crud-2.0.0rc4/tests/generics/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/generics/literals.py +1 -0
- django_ninja_aio_crud-2.0.0rc4/tests/generics/models.py +408 -0
- django_ninja_aio_crud-2.0.0rc4/tests/generics/request.py +19 -0
- django_ninja_aio_crud-2.0.0rc4/tests/generics/views.py +363 -0
- django_ninja_aio_crud-2.0.0rc4/tests/helpers/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/helpers/test_many_to_many_api.py +118 -0
- django_ninja_aio_crud-2.0.0rc4/tests/models/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/models/test_model_util.py +68 -0
- django_ninja_aio_crud-2.0.0rc4/tests/models/test_models_extra.py +313 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_app/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_app/models.py +173 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_app/schema.py +73 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_app/views.py +89 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_decorators.py +84 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_exceptions.py +138 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_query_util.py +95 -0
- django_ninja_aio_crud-2.0.0rc4/tests/test_settings.py +48 -0
- django_ninja_aio_crud-2.0.0rc4/tests/views/__init__.py +0 -0
- django_ninja_aio_crud-2.0.0rc4/tests/views/test_views.py +57 -0
- django_ninja_aio_crud-2.0.0rc4/tests/views/test_viewset.py +349 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/LICENSE +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/README.md +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/api.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/auth.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/decorators.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/exceptions.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/helpers/__init__.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/helpers/query.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/models.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/parsers.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/renders.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/schemas/__init__.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/schemas/api.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/schemas/generics.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/schemas/helpers.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/ninja_aio/types.py +0 -0
- {django_ninja_aio_crud-2.0.0rc2 → django_ninja_aio_crud-2.0.0rc4}/pyproject.toml +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Coverage
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test_coverage:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v6
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v6
|
|
17
|
+
with:
|
|
18
|
+
python-version: '3.10'
|
|
19
|
+
- name: Install Flit
|
|
20
|
+
run: pip install flit
|
|
21
|
+
- name: Install Dependencies
|
|
22
|
+
run: flit install --symlink
|
|
23
|
+
- name: Test
|
|
24
|
+
run: |
|
|
25
|
+
coverage run -m django test --settings=tests.test_settings
|
|
26
|
+
coverage report
|
|
27
|
+
coverage xml
|
|
28
|
+
|
|
29
|
+
- name: Coverage
|
|
30
|
+
uses: codecov/codecov-action@v5.5.1
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
name: Deploy Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
docs_version:
|
|
7
|
+
description: 'Docs version to deploy (e.g. v1.0.0)'
|
|
8
|
+
required: true
|
|
9
|
+
default: 'dev'
|
|
10
|
+
type: choice # ← SonarQube compliant: predefined safe options
|
|
11
|
+
options:
|
|
12
|
+
- dev
|
|
13
|
+
- stable
|
|
14
|
+
- "1.0"
|
|
15
|
+
- "2.0"
|
|
16
|
+
make_latest:
|
|
17
|
+
description: 'Set as "latest" and default?'
|
|
18
|
+
type: boolean
|
|
19
|
+
default: true
|
|
20
|
+
|
|
21
|
+
delete_version:
|
|
22
|
+
description: 'Version to DELETE (leave empty to skip)'
|
|
23
|
+
required: false
|
|
24
|
+
default: ''
|
|
25
|
+
|
|
26
|
+
permissions:
|
|
27
|
+
contents: write
|
|
28
|
+
|
|
29
|
+
jobs:
|
|
30
|
+
deploy:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
|
|
33
|
+
# Only trusted events (SonarQube safe)
|
|
34
|
+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.13"
|
|
43
|
+
|
|
44
|
+
- name: Configure git
|
|
45
|
+
run: |
|
|
46
|
+
git config user.name "github-actions[bot]"
|
|
47
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
48
|
+
|
|
49
|
+
- name: Install MkDocs Mike and theme
|
|
50
|
+
run: pip install -r docs/requirements.txt
|
|
51
|
+
|
|
52
|
+
- name: Compute VERSION and MAKE_LATEST
|
|
53
|
+
id: vars
|
|
54
|
+
env:
|
|
55
|
+
# Assign untrusted input to env var FIRST (SonarQube compliant)
|
|
56
|
+
INPUT_VERSION: ${{ inputs.docs_version }}
|
|
57
|
+
shell: bash
|
|
58
|
+
run: |
|
|
59
|
+
# Now use safe shell variable $INPUT_VERSION
|
|
60
|
+
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "$INPUT_VERSION" ]; then
|
|
61
|
+
VERSION="$INPUT_VERSION"
|
|
62
|
+
else
|
|
63
|
+
VERSION="dev"
|
|
64
|
+
fi
|
|
65
|
+
|
|
66
|
+
# Boolean input is always safe ("true"/"false")
|
|
67
|
+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
68
|
+
MAKE_LATEST="${{ inputs.make_latest }}"
|
|
69
|
+
else
|
|
70
|
+
MAKE_LATEST="true"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
74
|
+
echo "make_latest=$MAKE_LATEST" >> "$GITHUB_OUTPUT"
|
|
75
|
+
|
|
76
|
+
- name: Deploy to GitHub Pages
|
|
77
|
+
env:
|
|
78
|
+
VERSION: ${{ steps.vars.outputs.version }}
|
|
79
|
+
MAKE_LATEST: ${{ steps.vars.outputs.make_latest }}
|
|
80
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
81
|
+
run: |
|
|
82
|
+
git fetch --all --tags
|
|
83
|
+
git fetch origin gh-pages --depth=1 || true
|
|
84
|
+
|
|
85
|
+
# Idempotent worktree setup
|
|
86
|
+
if git worktree list | grep -q " gh-pages "; then
|
|
87
|
+
git worktree remove gh-pages --force
|
|
88
|
+
fi
|
|
89
|
+
git worktree add gh-pages gh-pages 2>/dev/null || git worktree add gh-pages origin/gh-pages
|
|
90
|
+
|
|
91
|
+
if [ "$MAKE_LATEST" = "true" ]; then
|
|
92
|
+
echo "🚀 Deploying $VERSION as latest and default"
|
|
93
|
+
mike deploy --push --update-aliases "$VERSION" latest --ignore-remote-status
|
|
94
|
+
mike set-default "$VERSION"
|
|
95
|
+
else
|
|
96
|
+
echo "📦 Deploying $VERSION (non-latest)"
|
|
97
|
+
mike deploy --push "$VERSION" --ignore-remote-status
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
git worktree remove gh-pages --force
|
|
101
|
+
|
|
102
|
+
- name: Delete version
|
|
103
|
+
if: inputs.delete_version != ''
|
|
104
|
+
run: |
|
|
105
|
+
echo "Deleting version: ${{ inputs.delete_version }}"
|
|
106
|
+
mike delete "${{ inputs.delete_version }}" --push
|
|
107
|
+
echo "Version ${{ inputs.delete_version }} deleted successfully"
|
|
108
|
+
|
|
109
|
+
- name: List versions
|
|
110
|
+
run: mike list
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
- name: Set up Python
|
|
14
|
+
uses: actions/setup-python@v6
|
|
15
|
+
- name: Install Flit
|
|
16
|
+
run: pip install flit
|
|
17
|
+
- name: Install Dependencies
|
|
18
|
+
run: flit install --symlink
|
|
19
|
+
- name: Publish
|
|
20
|
+
env:
|
|
21
|
+
FLIT_USERNAME: __token__
|
|
22
|
+
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
|
|
23
|
+
run: flit publish
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,terraform,macos,python,git
|
|
2
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,terraform,macos,python,git
|
|
3
|
+
|
|
4
|
+
### Git ###
|
|
5
|
+
# Created by git for backups. To disable backups in Git:
|
|
6
|
+
# $ git config --global mergetool.keepBackup false
|
|
7
|
+
*.orig
|
|
8
|
+
|
|
9
|
+
# Created by git when using merge tools for conflicts
|
|
10
|
+
*.BACKUP.*
|
|
11
|
+
*.BASE.*
|
|
12
|
+
*.LOCAL.*
|
|
13
|
+
*.REMOTE.*
|
|
14
|
+
*_BACKUP_*.txt
|
|
15
|
+
*_BASE_*.txt
|
|
16
|
+
*_LOCAL_*.txt
|
|
17
|
+
*_REMOTE_*.txt
|
|
18
|
+
|
|
19
|
+
### macOS ###
|
|
20
|
+
# General
|
|
21
|
+
.DS_Store
|
|
22
|
+
.AppleDouble
|
|
23
|
+
.LSOverride
|
|
24
|
+
|
|
25
|
+
# Icon must end with two \r
|
|
26
|
+
Icon
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Thumbnails
|
|
30
|
+
._*
|
|
31
|
+
|
|
32
|
+
# Files that might appear in the root of a volume
|
|
33
|
+
.DocumentRevisions-V100
|
|
34
|
+
.fseventsd
|
|
35
|
+
.Spotlight-V100
|
|
36
|
+
.TemporaryItems
|
|
37
|
+
.Trashes
|
|
38
|
+
.VolumeIcon.icns
|
|
39
|
+
.com.apple.timemachine.donotpresent
|
|
40
|
+
|
|
41
|
+
# Directories potentially created on remote AFP share
|
|
42
|
+
.AppleDB
|
|
43
|
+
.AppleDesktop
|
|
44
|
+
Network Trash Folder
|
|
45
|
+
Temporary Items
|
|
46
|
+
.apdisk
|
|
47
|
+
|
|
48
|
+
### macOS Patch ###
|
|
49
|
+
# iCloud generated files
|
|
50
|
+
*.icloud
|
|
51
|
+
|
|
52
|
+
### Python ###
|
|
53
|
+
# Byte-compiled / optimized / DLL files
|
|
54
|
+
__pycache__/
|
|
55
|
+
*.py[cod]
|
|
56
|
+
*$py.class
|
|
57
|
+
|
|
58
|
+
# C extensions
|
|
59
|
+
*.so
|
|
60
|
+
|
|
61
|
+
# Distribution / packaging
|
|
62
|
+
.Python
|
|
63
|
+
build/
|
|
64
|
+
develop-eggs/
|
|
65
|
+
dist*/
|
|
66
|
+
downloads/
|
|
67
|
+
eggs/
|
|
68
|
+
.eggs/
|
|
69
|
+
lib/
|
|
70
|
+
lib64/
|
|
71
|
+
parts/
|
|
72
|
+
sdist/
|
|
73
|
+
var/
|
|
74
|
+
wheels/
|
|
75
|
+
share/python-wheels/
|
|
76
|
+
*.egg-info/
|
|
77
|
+
.installed.cfg
|
|
78
|
+
*.egg
|
|
79
|
+
MANIFEST
|
|
80
|
+
|
|
81
|
+
# PyInstaller
|
|
82
|
+
# Usually these files are written by a python script from a template
|
|
83
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
84
|
+
*.manifest
|
|
85
|
+
*.spec
|
|
86
|
+
|
|
87
|
+
# Installer logs
|
|
88
|
+
pip-log.txt
|
|
89
|
+
pip-delete-this-directory.txt
|
|
90
|
+
|
|
91
|
+
# Unit test / coverage reports
|
|
92
|
+
htmlcov/
|
|
93
|
+
.tox/
|
|
94
|
+
.nox/
|
|
95
|
+
.coverage
|
|
96
|
+
.coverage.*
|
|
97
|
+
.cache
|
|
98
|
+
nosetests.xml
|
|
99
|
+
coverage.xml
|
|
100
|
+
*.cover
|
|
101
|
+
*.py,cover
|
|
102
|
+
.hypothesis/
|
|
103
|
+
.pytest_cache/
|
|
104
|
+
cover/
|
|
105
|
+
|
|
106
|
+
# Translations
|
|
107
|
+
*.mo
|
|
108
|
+
*.pot
|
|
109
|
+
|
|
110
|
+
# Django stuff:
|
|
111
|
+
*.log
|
|
112
|
+
local_settings.py
|
|
113
|
+
db.sqlite3
|
|
114
|
+
db.sqlite3-journal
|
|
115
|
+
|
|
116
|
+
# Flask stuff:
|
|
117
|
+
instance/
|
|
118
|
+
.webassets-cache
|
|
119
|
+
|
|
120
|
+
# Scrapy stuff:
|
|
121
|
+
.scrapy
|
|
122
|
+
|
|
123
|
+
# Sphinx documentation
|
|
124
|
+
docs/_build/
|
|
125
|
+
|
|
126
|
+
# PyBuilder
|
|
127
|
+
.pybuilder/
|
|
128
|
+
target/
|
|
129
|
+
|
|
130
|
+
# Jupyter Notebook
|
|
131
|
+
.ipynb_checkpoints
|
|
132
|
+
|
|
133
|
+
# IPython
|
|
134
|
+
profile_default/
|
|
135
|
+
ipython_config.py
|
|
136
|
+
|
|
137
|
+
# pyenv
|
|
138
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
139
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
140
|
+
# .python-version
|
|
141
|
+
|
|
142
|
+
# pipenv
|
|
143
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
144
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
145
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
146
|
+
# install all needed dependencies.
|
|
147
|
+
#Pipfile.lock
|
|
148
|
+
|
|
149
|
+
# poetry
|
|
150
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
151
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
152
|
+
# commonly ignored for libraries.
|
|
153
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
154
|
+
#poetry.lock
|
|
155
|
+
|
|
156
|
+
# pdm
|
|
157
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
158
|
+
#pdm.lock
|
|
159
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
160
|
+
# in version control.
|
|
161
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
162
|
+
.pdm.toml
|
|
163
|
+
|
|
164
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
165
|
+
__pypackages__/
|
|
166
|
+
|
|
167
|
+
# Celery stuff
|
|
168
|
+
celerybeat-schedule
|
|
169
|
+
celerybeat.pid
|
|
170
|
+
|
|
171
|
+
# SageMath parsed files
|
|
172
|
+
*.sage.py
|
|
173
|
+
|
|
174
|
+
# Environments
|
|
175
|
+
.env
|
|
176
|
+
.venv
|
|
177
|
+
env/
|
|
178
|
+
venv/
|
|
179
|
+
ENV/
|
|
180
|
+
env.bak/
|
|
181
|
+
venv.bak/
|
|
182
|
+
|
|
183
|
+
# Spyder project settings
|
|
184
|
+
.spyderproject
|
|
185
|
+
.spyproject
|
|
186
|
+
|
|
187
|
+
# Rope project settings
|
|
188
|
+
.ropeproject
|
|
189
|
+
|
|
190
|
+
# mkdocs documentation
|
|
191
|
+
/site
|
|
192
|
+
|
|
193
|
+
# mypy
|
|
194
|
+
.mypy_cache/
|
|
195
|
+
.dmypy.json
|
|
196
|
+
dmypy.json
|
|
197
|
+
|
|
198
|
+
# Pyre type checker
|
|
199
|
+
.pyre/
|
|
200
|
+
|
|
201
|
+
# pytype static type analyzer
|
|
202
|
+
.pytype/
|
|
203
|
+
|
|
204
|
+
# Cython debug symbols
|
|
205
|
+
cython_debug/
|
|
206
|
+
|
|
207
|
+
# PyCharm
|
|
208
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
209
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
210
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
211
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
212
|
+
#.idea/
|
|
213
|
+
|
|
214
|
+
### Python Patch ###
|
|
215
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
216
|
+
poetry.toml
|
|
217
|
+
|
|
218
|
+
# ruff
|
|
219
|
+
.ruff_cache/
|
|
220
|
+
|
|
221
|
+
# LSP config files
|
|
222
|
+
pyrightconfig.json
|
|
223
|
+
|
|
224
|
+
### Terraform ###
|
|
225
|
+
# Local .terraform directories
|
|
226
|
+
**/.terraform/*
|
|
227
|
+
|
|
228
|
+
# .tfstate files
|
|
229
|
+
*.tfstate
|
|
230
|
+
*.tfstate.*
|
|
231
|
+
|
|
232
|
+
# Crash log files
|
|
233
|
+
crash.log
|
|
234
|
+
crash.*.log
|
|
235
|
+
|
|
236
|
+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
|
|
237
|
+
# password, private keys, and other secrets. These should not be part of version
|
|
238
|
+
# control as they are data points which are potentially sensitive and subject
|
|
239
|
+
# to change depending on the environment.
|
|
240
|
+
# *.tfvars
|
|
241
|
+
*.tfvars.json
|
|
242
|
+
|
|
243
|
+
# Ignore override files as they are usually used to override resources locally and so
|
|
244
|
+
# are not checked in
|
|
245
|
+
override.tf
|
|
246
|
+
override.tf.json
|
|
247
|
+
*_override.tf
|
|
248
|
+
*_override.tf.json
|
|
249
|
+
|
|
250
|
+
# Include override files you do wish to add to version control using negated pattern
|
|
251
|
+
# !example_override.tf
|
|
252
|
+
|
|
253
|
+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
|
|
254
|
+
# example: *tfplan*
|
|
255
|
+
|
|
256
|
+
# Ignore CLI configuration files
|
|
257
|
+
.terraformrc
|
|
258
|
+
terraform.rc
|
|
259
|
+
|
|
260
|
+
### VisualStudioCode ###
|
|
261
|
+
.vscode/*
|
|
262
|
+
!.vscode/settings.json
|
|
263
|
+
!.vscode/tasks.json
|
|
264
|
+
!.vscode/launch.json
|
|
265
|
+
!.vscode/extensions.json
|
|
266
|
+
!.vscode/*.code-snippets
|
|
267
|
+
|
|
268
|
+
# Local History for Visual Studio Code
|
|
269
|
+
.history/
|
|
270
|
+
|
|
271
|
+
# Built Visual Studio Code Extensions
|
|
272
|
+
*.vsix
|
|
273
|
+
|
|
274
|
+
### VisualStudioCode Patch ###
|
|
275
|
+
# Ignore all local history of files
|
|
276
|
+
.history
|
|
277
|
+
.ionide
|
|
278
|
+
|
|
279
|
+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,terraform,macos,python,git
|
|
280
|
+
|
|
281
|
+
# Custom
|
|
282
|
+
.venv/
|
|
283
|
+
.vscode/
|
|
284
|
+
./static/
|
|
285
|
+
media/
|
|
286
|
+
db.sqlite3
|
|
287
|
+
**/migrations/0*
|
|
288
|
+
*.env
|
|
289
|
+
test.py
|
|
290
|
+
docker_script.sh
|
|
291
|
+
.devops/.*
|
|
292
|
+
*.eb
|
|
293
|
+
migrations
|
|
294
|
+
django-test/*
|
|
295
|
+
test_api
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v5.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-ast
|
|
6
|
+
- id: check-merge-conflict
|
|
7
|
+
- id: check-toml
|
|
8
|
+
- id: check-yaml
|
|
9
|
+
- id: end-of-file-fixer
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
|
|
12
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
13
|
+
rev: v0.7.3
|
|
14
|
+
hooks:
|
|
15
|
+
- id: ruff
|
|
16
|
+
args: [--fix]
|
|
17
|
+
- id: ruff-format
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
ci:
|
|
21
|
+
autofix_commit_msg: 'ci(pre-commit): 👷 auto fixes'
|
|
22
|
+
autoupdate_commit_msg: 'ci(pre-commit): 👷 auto update'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
django-ninja-aio.com
|