django-ateco 0.1.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.
- django_ateco-0.1.0/.pre-commit-config.yaml +52 -0
- django_ateco-0.1.0/AGENTS.md +52 -0
- django_ateco-0.1.0/CHANGELOG.rst +8 -0
- django_ateco-0.1.0/CODEOWNERS +2 -0
- django_ateco-0.1.0/CONTRIBUTING.md +3 -0
- django_ateco-0.1.0/LICENSE +21 -0
- django_ateco-0.1.0/MANIFEST.in +16 -0
- django_ateco-0.1.0/PKG-INFO +97 -0
- django_ateco-0.1.0/README.md +37 -0
- django_ateco-0.1.0/mkdocs.yml +31 -0
- django_ateco-0.1.0/news/0001.trivial.rst +1 -0
- django_ateco-0.1.0/pyproject.toml +189 -0
- django_ateco-0.1.0/requirements/py310-django42.txt +29 -0
- django_ateco-0.1.0/requirements/py310-django52.txt +29 -0
- django_ateco-0.1.0/requirements/py311-django42.txt +25 -0
- django_ateco-0.1.0/requirements/py311-django52.txt +25 -0
- django_ateco-0.1.0/requirements/py312-django42.txt +25 -0
- django_ateco-0.1.0/requirements/py312-django52.txt +25 -0
- django_ateco-0.1.0/requirements/py313-django52.txt +25 -0
- django_ateco-0.1.0/requirements/py314-django52.txt +25 -0
- django_ateco-0.1.0/requirements/runtime.in +3 -0
- django_ateco-0.1.0/runtests.py +52 -0
- django_ateco-0.1.0/setup.cfg +79 -0
- django_ateco-0.1.0/src/django_ateco/__init__.py +15 -0
- django_ateco-0.1.0/src/django_ateco/apps.py +8 -0
- django_ateco-0.1.0/src/django_ateco/services.py +45 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/PKG-INFO +97 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/SOURCES.txt +37 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/dependency_links.txt +1 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/not-zip-safe +1 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/requires.txt +23 -0
- django_ateco-0.1.0/src/django_ateco.egg-info/top_level.txt +1 -0
- django_ateco-0.1.0/tests/__init__.py +0 -0
- django_ateco-0.1.0/tests/settings.py +70 -0
- django_ateco-0.1.0/tests/test_battery.py +167 -0
- django_ateco-0.1.0/tests/test_services.py +32 -0
- django_ateco-0.1.0/tests/urls.py +13 -0
- django_ateco-0.1.0/tox.ini +13 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-added-large-files
|
|
6
|
+
- id: check-case-conflict
|
|
7
|
+
- id: check-json
|
|
8
|
+
- id: check-merge-conflict
|
|
9
|
+
- id: check-symlinks
|
|
10
|
+
- id: check-toml
|
|
11
|
+
- id: end-of-file-fixer
|
|
12
|
+
- id: trailing-whitespace
|
|
13
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
14
|
+
rev: v3.21.2
|
|
15
|
+
hooks:
|
|
16
|
+
- id: pyupgrade
|
|
17
|
+
args: [--py36-plus]
|
|
18
|
+
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
19
|
+
rev: 26.3.1
|
|
20
|
+
hooks:
|
|
21
|
+
- id: black
|
|
22
|
+
- repo: https://github.com/asottile/blacken-docs
|
|
23
|
+
rev: 1.20.0
|
|
24
|
+
hooks:
|
|
25
|
+
- id: blacken-docs
|
|
26
|
+
additional_dependencies:
|
|
27
|
+
- black>=22.12.0
|
|
28
|
+
- repo: https://github.com/pycqa/isort
|
|
29
|
+
rev: 8.0.1
|
|
30
|
+
hooks:
|
|
31
|
+
- id: isort
|
|
32
|
+
args: ["--profile", "black"]
|
|
33
|
+
- repo: https://github.com/PyCQA/flake8
|
|
34
|
+
rev: 7.3.0
|
|
35
|
+
hooks:
|
|
36
|
+
- id: flake8
|
|
37
|
+
additional_dependencies:
|
|
38
|
+
- flake8-pyproject
|
|
39
|
+
- flake8-bugbear
|
|
40
|
+
- flake8-comprehensions
|
|
41
|
+
- flake8-tidy-imports
|
|
42
|
+
- flake8-typing-imports
|
|
43
|
+
- repo: https://github.com/mgedmin/check-manifest
|
|
44
|
+
rev: "0.51"
|
|
45
|
+
hooks:
|
|
46
|
+
- id: check-manifest
|
|
47
|
+
args: [--no-build-isolation]
|
|
48
|
+
additional_dependencies:
|
|
49
|
+
- Django>=3.2
|
|
50
|
+
- build
|
|
51
|
+
- setuptools>=77
|
|
52
|
+
- wheel
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# django-ateco
|
|
2
|
+
|
|
3
|
+
- **Generation:** modern-module
|
|
4
|
+
- **GitHub:** DLRSP/django-ateco
|
|
5
|
+
- **Context pack:** `~/.cursor/context/dlrsp/`
|
|
6
|
+
- **Registry:** `~/.cursor/context/dlrsp/registry.yaml`
|
|
7
|
+
- **Agents manifest:** `~/.cursor/context/dlrsp/agents-manifest.md`
|
|
8
|
+
|
|
9
|
+
## Git (local only — never commit)
|
|
10
|
+
|
|
11
|
+
This file, local rules (`.**/rules/*.mdc`), commands (`.**/commands/*.md`), `**/dlrsp-runs/`, and `exec_*.bat` are excluded by the agent-architecture block in `.gitignore`.
|
|
12
|
+
Do not add repo-specific commands or rules — extend context pack templates (`tooling-registry.md`).
|
|
13
|
+
Never commit vendor IDE path names or product branding in published scaffold files.
|
|
14
|
+
|
|
15
|
+
## Canonical plan
|
|
16
|
+
|
|
17
|
+
- No elaborated plan in repo-plan-index — run elaborate_all_repo_plans.py
|
|
18
|
+
|
|
19
|
+
## Agent entry points (Cursor Desktop)
|
|
20
|
+
|
|
21
|
+
- `/dlrsp-plan-review` — plan-orchestrator
|
|
22
|
+
- `/dlrsp-code-review` — pre-merge review
|
|
23
|
+
- `/dlrsp-test-battery` — test battery rollout (modules)
|
|
24
|
+
- `/dlrsp-release-prep` — release checklist (no auto bump)
|
|
25
|
+
- `/dlrsp-verify` — gate setup
|
|
26
|
+
|
|
27
|
+
## Operating model
|
|
28
|
+
|
|
29
|
+
- **Cursor Desktop:** implementazione, orchestrazione agenti, review
|
|
30
|
+
- **PyCharm (optional):** debug, verifica tox/pytest, bump release manuale
|
|
31
|
+
|
|
32
|
+
## Shell
|
|
33
|
+
|
|
34
|
+
- Tests: `pytest tests/ -v`
|
|
35
|
+
- Tox: `tox -e py311-django42` (project command `/tox-matrix`)
|
|
36
|
+
- Pre-commit: `pre-commit run --all-files`
|
|
37
|
+
- Workflow pin: DLRSP/workflows@main
|
|
38
|
+
|
|
39
|
+
## Release (manual — user only)
|
|
40
|
+
|
|
41
|
+
- Checklist: `/dlrsp-release-prep` in Cursor
|
|
42
|
+
- Bump: `exec_bump-patch.bat` | `exec_bump-minor.bat` | `exec_bump-major.bat`
|
|
43
|
+
- Agents must **not** run bump scripts unless explicitly asked
|
|
44
|
+
|
|
45
|
+
## Project commands
|
|
46
|
+
|
|
47
|
+
- `/release-bump` — manual bump steps (`.cursor/commands/`)
|
|
48
|
+
- `/tox-matrix` — tox troubleshooting
|
|
49
|
+
|
|
50
|
+
## Do not touch
|
|
51
|
+
|
|
52
|
+
- `.tox/`, `venv/`, build artifacts
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010-present DLRSP (https://dlrsp.org) and other contributors.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
include *.py
|
|
2
|
+
include *.rst
|
|
3
|
+
include *.md
|
|
4
|
+
include *.yaml
|
|
5
|
+
include *.yml
|
|
6
|
+
include *.cfg
|
|
7
|
+
include tox.ini
|
|
8
|
+
include LICENSE
|
|
9
|
+
include CODEOWNERS
|
|
10
|
+
|
|
11
|
+
recursive-include requirements *.in *.txt
|
|
12
|
+
recursive-exclude requirements *.py
|
|
13
|
+
recursive-include src *.py *.html *.css *.js *.po *.mo *.gif *.png
|
|
14
|
+
recursive-include tests *.py
|
|
15
|
+
recursive-include news *.rst
|
|
16
|
+
recursive-exclude docs *
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: django-ateco
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Django helpers for Italian ATECO classification (wraps ateco).
|
|
5
|
+
Home-page: https://github.com/DLRSP/django-ateco
|
|
6
|
+
Author: DLRSP
|
|
7
|
+
Author-email: DLRSP <dlrsp.dev@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/DLRSP/django-ateco
|
|
10
|
+
Project-URL: Documentation, https://github.com/DLRSP/django-ateco/
|
|
11
|
+
Project-URL: Repository, https://github.com/DLRSP/django-ateco
|
|
12
|
+
Project-URL: Issues, https://github.com/DLRSP/django-ateco/issues
|
|
13
|
+
Project-URL: Changelog, https://github.com/DLRSP/django-ateco/blob/main/CHANGELOG.rst
|
|
14
|
+
Keywords: django,ateco,istat,italy,classification
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Framework :: Django :: 5.2
|
|
20
|
+
Classifier: Environment :: Web Environment
|
|
21
|
+
Classifier: Framework :: Django
|
|
22
|
+
Classifier: Framework :: Django :: 3.2
|
|
23
|
+
Classifier: Framework :: Django :: 4.2
|
|
24
|
+
Classifier: Intended Audience :: Developers
|
|
25
|
+
Classifier: Operating System :: OS Independent
|
|
26
|
+
Classifier: Programming Language :: Python
|
|
27
|
+
Classifier: Programming Language :: Python :: 3
|
|
28
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
31
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
32
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
33
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
|
34
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
35
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
36
|
+
Requires-Python: >=3.10
|
|
37
|
+
Description-Content-Type: text/markdown
|
|
38
|
+
License-File: LICENSE
|
|
39
|
+
Requires-Dist: Django>=3.2
|
|
40
|
+
Requires-Dist: ateco>=0.1.0
|
|
41
|
+
Provides-Extra: testing
|
|
42
|
+
Requires-Dist: coverage; extra == "testing"
|
|
43
|
+
Requires-Dist: codecov; extra == "testing"
|
|
44
|
+
Requires-Dist: pytest; extra == "testing"
|
|
45
|
+
Requires-Dist: pytest-django; extra == "testing"
|
|
46
|
+
Provides-Extra: docs
|
|
47
|
+
Requires-Dist: mkdocs>=1.5; extra == "docs"
|
|
48
|
+
Requires-Dist: mkdocs-material>=9.0; extra == "docs"
|
|
49
|
+
Requires-Dist: pymdown-extensions>=10.0; extra == "docs"
|
|
50
|
+
Requires-Dist: mkdocs-git-revision-date-plugin>=2.0; extra == "docs"
|
|
51
|
+
Provides-Extra: linting
|
|
52
|
+
Requires-Dist: flake8; extra == "linting"
|
|
53
|
+
Requires-Dist: flake8-pyproject; extra == "linting"
|
|
54
|
+
Requires-Dist: flake8-bugbear; extra == "linting"
|
|
55
|
+
Requires-Dist: flake8-comprehensions; extra == "linting"
|
|
56
|
+
Requires-Dist: flake8-tidy-imports; extra == "linting"
|
|
57
|
+
Requires-Dist: flake8-typing-imports; extra == "linting"
|
|
58
|
+
Requires-Dist: pylint; extra == "linting"
|
|
59
|
+
Dynamic: license-file
|
|
60
|
+
|
|
61
|
+
# django-ateco
|
|
62
|
+
|
|
63
|
+
Django helpers for the Italian **ATECO** classification, wrapping the pure-Python [`ateco`](https://pypi.org/project/ateco/) library.
|
|
64
|
+
|
|
65
|
+
[](https://github.com/DLRSP/django-ateco/actions/workflows/ci.yaml)
|
|
66
|
+
|
|
67
|
+
## Requirements
|
|
68
|
+
|
|
69
|
+
- Python 3.10+
|
|
70
|
+
- Django 3.2+
|
|
71
|
+
- [`ateco`](https://pypi.org/project/ateco/)
|
|
72
|
+
|
|
73
|
+
## Install
|
|
74
|
+
|
|
75
|
+
```shell
|
|
76
|
+
pip install django-ateco
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
INSTALLED_APPS = [
|
|
81
|
+
# ...
|
|
82
|
+
"django_ateco",
|
|
83
|
+
]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Usage
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from django_ateco import services
|
|
90
|
+
|
|
91
|
+
node = services.lookup("01.11.00")
|
|
92
|
+
assert services.validate("55.20.42")
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
MIT
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# django-ateco
|
|
2
|
+
|
|
3
|
+
Django helpers for the Italian **ATECO** classification, wrapping the pure-Python [`ateco`](https://pypi.org/project/ateco/) library.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/DLRSP/django-ateco/actions/workflows/ci.yaml)
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Python 3.10+
|
|
10
|
+
- Django 3.2+
|
|
11
|
+
- [`ateco`](https://pypi.org/project/ateco/)
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
pip install django-ateco
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
INSTALLED_APPS = [
|
|
21
|
+
# ...
|
|
22
|
+
"django_ateco",
|
|
23
|
+
]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from django_ateco import services
|
|
30
|
+
|
|
31
|
+
node = services.lookup("01.11.00")
|
|
32
|
+
assert services.validate("55.20.42")
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
site_name: django-ateco
|
|
2
|
+
site_description: Django helpers for Italian ATECO classification
|
|
3
|
+
site_url: https://dlrsp.github.io/django-ateco/
|
|
4
|
+
repo_url: https://github.com/DLRSP/django-ateco
|
|
5
|
+
repo_name: DLRSP/django-ateco
|
|
6
|
+
|
|
7
|
+
theme:
|
|
8
|
+
name: material
|
|
9
|
+
palette:
|
|
10
|
+
- scheme: default
|
|
11
|
+
primary: indigo
|
|
12
|
+
toggle:
|
|
13
|
+
icon: material/brightness-7
|
|
14
|
+
name: Switch to dark mode
|
|
15
|
+
- scheme: slate
|
|
16
|
+
primary: indigo
|
|
17
|
+
toggle:
|
|
18
|
+
icon: material/brightness-4
|
|
19
|
+
name: Switch to light mode
|
|
20
|
+
|
|
21
|
+
nav:
|
|
22
|
+
- Home: index.md
|
|
23
|
+
- Community:
|
|
24
|
+
- Contributing: community/contributing.md
|
|
25
|
+
|
|
26
|
+
markdown_extensions:
|
|
27
|
+
- admonition
|
|
28
|
+
- pymdownx.superfences
|
|
29
|
+
- pymdownx.details
|
|
30
|
+
- toc:
|
|
31
|
+
permalink: true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Initial django-ateco release.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"setuptools >= 77",
|
|
4
|
+
"wheel",
|
|
5
|
+
]
|
|
6
|
+
build-backend = "setuptools.build_meta"
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "django-ateco"
|
|
10
|
+
description = "Django helpers for Italian ATECO classification (wraps ateco)."
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "DLRSP", email = "dlrsp.dev@gmail.com" },
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
dynamic = ["version"]
|
|
16
|
+
readme = "README.md"
|
|
17
|
+
license = "MIT"
|
|
18
|
+
license-files = ["LICENSE"]
|
|
19
|
+
keywords = ["django", "ateco", "istat", "italy", "classification"]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Framework :: Django :: 5.2",
|
|
26
|
+
"Environment :: Web Environment",
|
|
27
|
+
"Framework :: Django",
|
|
28
|
+
"Framework :: Django :: 3.2",
|
|
29
|
+
"Framework :: Django :: 4.2",
|
|
30
|
+
"Intended Audience :: Developers",
|
|
31
|
+
"Operating System :: OS Independent",
|
|
32
|
+
"Programming Language :: Python",
|
|
33
|
+
"Programming Language :: Python :: 3",
|
|
34
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
35
|
+
"Programming Language :: Python :: 3.10",
|
|
36
|
+
"Programming Language :: Python :: 3.11",
|
|
37
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
38
|
+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
39
|
+
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
40
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
41
|
+
"Topic :: Software Development :: Libraries",
|
|
42
|
+
]
|
|
43
|
+
dependencies = [
|
|
44
|
+
"Django>=3.2",
|
|
45
|
+
"ateco>=0.1.0",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[project.urls]
|
|
49
|
+
Homepage = "https://github.com/DLRSP/django-ateco"
|
|
50
|
+
Documentation = "https://github.com/DLRSP/django-ateco/"
|
|
51
|
+
Repository = "https://github.com/DLRSP/django-ateco"
|
|
52
|
+
Issues = "https://github.com/DLRSP/django-ateco/issues"
|
|
53
|
+
Changelog = "https://github.com/DLRSP/django-ateco/blob/main/CHANGELOG.rst"
|
|
54
|
+
|
|
55
|
+
[project.optional-dependencies]
|
|
56
|
+
testing = [
|
|
57
|
+
"coverage",
|
|
58
|
+
"codecov",
|
|
59
|
+
"pytest",
|
|
60
|
+
"pytest-django",
|
|
61
|
+
]
|
|
62
|
+
docs = [
|
|
63
|
+
"mkdocs>=1.5",
|
|
64
|
+
"mkdocs-material>=9.0",
|
|
65
|
+
"pymdown-extensions>=10.0",
|
|
66
|
+
"mkdocs-git-revision-date-plugin>=2.0",
|
|
67
|
+
]
|
|
68
|
+
linting = [
|
|
69
|
+
"flake8",
|
|
70
|
+
"flake8-pyproject",
|
|
71
|
+
"flake8-bugbear",
|
|
72
|
+
"flake8-comprehensions",
|
|
73
|
+
"flake8-tidy-imports",
|
|
74
|
+
"flake8-typing-imports",
|
|
75
|
+
"pylint",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
[tool.setuptools]
|
|
79
|
+
package-dir = { "" = "src" }
|
|
80
|
+
include-package-data = true
|
|
81
|
+
zip-safe = false
|
|
82
|
+
|
|
83
|
+
[tool.setuptools.dynamic]
|
|
84
|
+
version = { attr = "django_ateco.__version__" }
|
|
85
|
+
|
|
86
|
+
[tool.setuptools.packages.find]
|
|
87
|
+
where = ["src"]
|
|
88
|
+
|
|
89
|
+
[tool.setuptools.data-files]
|
|
90
|
+
"share/django-ateco/requirements" = [
|
|
91
|
+
"requirements/py310-django42.txt",
|
|
92
|
+
"requirements/py310-django52.txt",
|
|
93
|
+
"requirements/py311-django42.txt",
|
|
94
|
+
"requirements/py311-django52.txt",
|
|
95
|
+
"requirements/py312-django42.txt",
|
|
96
|
+
"requirements/py312-django52.txt",
|
|
97
|
+
"requirements/py313-django52.txt",
|
|
98
|
+
"requirements/py314-django52.txt",
|
|
99
|
+
]
|
|
100
|
+
[tool.distutils.bdist_wheel]
|
|
101
|
+
universal = false
|
|
102
|
+
|
|
103
|
+
[tool.black]
|
|
104
|
+
line-length = 80
|
|
105
|
+
target-version = ['py311']
|
|
106
|
+
|
|
107
|
+
[tool.isort]
|
|
108
|
+
profile = "black"
|
|
109
|
+
|
|
110
|
+
[tool.check-manifest]
|
|
111
|
+
ignore = [
|
|
112
|
+
"AGENTS.md",
|
|
113
|
+
"docs/community/third-party-packages.md",
|
|
114
|
+
"docs/tutorial/customize.md",
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
# Read by flake8 when flake8-pyproject is installed (extra `linting`).
|
|
118
|
+
[tool.flake8]
|
|
119
|
+
max-line-length = 80
|
|
120
|
+
select = ["E", "F", "W", "B", "B950", "C", "I", "TYP"]
|
|
121
|
+
ignore = ["E203", "E501", "W503", "B950"]
|
|
122
|
+
per-file-ignores = [
|
|
123
|
+
"**/migrations/*:B950",
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[tool.mypy]
|
|
127
|
+
check_untyped_defs = true
|
|
128
|
+
disallow_any_generics = true
|
|
129
|
+
disallow_incomplete_defs = true
|
|
130
|
+
disallow_untyped_defs = true
|
|
131
|
+
mypy_path = "src/"
|
|
132
|
+
no_implicit_optional = true
|
|
133
|
+
show_error_codes = true
|
|
134
|
+
warn_unreachable = true
|
|
135
|
+
warn_unused_ignores = true
|
|
136
|
+
|
|
137
|
+
[[tool.mypy.overrides]]
|
|
138
|
+
module = "tests.*"
|
|
139
|
+
allow_untyped_defs = true
|
|
140
|
+
|
|
141
|
+
[tool.pytest.ini_options]
|
|
142
|
+
addopts = """\
|
|
143
|
+
--strict-config
|
|
144
|
+
--strict-markers
|
|
145
|
+
--ds=tests.settings
|
|
146
|
+
"""
|
|
147
|
+
django_find_project = false
|
|
148
|
+
pythonpath = ["src"]
|
|
149
|
+
|
|
150
|
+
[tool.coverage.paths]
|
|
151
|
+
source = ["src", ".tox/*/site-packages"]
|
|
152
|
+
|
|
153
|
+
[tool.coverage.run]
|
|
154
|
+
branch = true
|
|
155
|
+
source = ["django_ateco"]
|
|
156
|
+
|
|
157
|
+
[tool.coverage.report]
|
|
158
|
+
show_missing = true
|
|
159
|
+
|
|
160
|
+
[tool.towncrier]
|
|
161
|
+
package = "django_ateco"
|
|
162
|
+
package_dir = "src"
|
|
163
|
+
filename = "CHANGELOG.rst"
|
|
164
|
+
directory = "news/"
|
|
165
|
+
version = "0.1.0"
|
|
166
|
+
issue_format = "`#{issue} <https://github.com/DLRSP/django-ateco/issues/{issue}>`_"
|
|
167
|
+
type = [
|
|
168
|
+
{ name = "Process", directory = "process", showcontent = true },
|
|
169
|
+
{ name = "Deprecations and Removals", directory = "removal", showcontent = true },
|
|
170
|
+
{ name = "Features", directory = "feature", showcontent = true },
|
|
171
|
+
{ name = "Bug Fixes", directory = "bugfix", showcontent = true },
|
|
172
|
+
{ name = "Vendored Libraries", directory = "vendor", showcontent = true },
|
|
173
|
+
{ name = "Improved Documentation", directory = "doc", showcontent = true },
|
|
174
|
+
{ name = "Trivial Changes", directory = "trivial", showcontent = false },
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
# bump-my-version
|
|
178
|
+
[tool.bumpversion]
|
|
179
|
+
current_version = "0.1.0"
|
|
180
|
+
commit = true
|
|
181
|
+
tag = true
|
|
182
|
+
allow_dirty = true
|
|
183
|
+
|
|
184
|
+
[[tool.bumpversion.files]]
|
|
185
|
+
filename = "./src/django_ateco/__init__.py"
|
|
186
|
+
[[tool.bumpversion.files]]
|
|
187
|
+
filename = "pyproject.toml"
|
|
188
|
+
search = 'version = "{current_version}"'
|
|
189
|
+
replace = 'version = "{new_version}"'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.10
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py310-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.11.1 \
|
|
8
|
+
--hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \
|
|
9
|
+
--hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133
|
|
10
|
+
# via django
|
|
11
|
+
django==4.2.30 \
|
|
12
|
+
--hash=sha256:4d07aaf1c62f9984842b67c2874ebbf7056a17be253860299b93ae1881faad65 \
|
|
13
|
+
--hash=sha256:4ebc7a434e3819db6cf4b399fb5b3f536310a30e8486f08b66886840be84b37c
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
emoji-country-flag==2.1.0 \
|
|
16
|
+
--hash=sha256:224b19583210901b950a624ab0b0896cdf0764b36f8bd1463868b15fb8c10f6a \
|
|
17
|
+
--hash=sha256:3b4df6a9d9961ab7716090689c2e96405baff68e46849ab2704335d904589f2a
|
|
18
|
+
# via -r requirements/requirements.in
|
|
19
|
+
sqlparse==0.5.5 \
|
|
20
|
+
--hash=sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba \
|
|
21
|
+
--hash=sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
|
|
22
|
+
# via django
|
|
23
|
+
typing-extensions==4.15.0 \
|
|
24
|
+
--hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
|
|
25
|
+
--hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548
|
|
26
|
+
# via asgiref
|
|
27
|
+
tzdata==2026.1 ; sys_platform == "win32" \
|
|
28
|
+
--hash=sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9
|
|
29
|
+
# via -r requirements/requirements.in
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.10
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py310-django52.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.11.1 \
|
|
8
|
+
--hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \
|
|
9
|
+
--hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133
|
|
10
|
+
# via django
|
|
11
|
+
django==5.2.15 \
|
|
12
|
+
--hash=sha256:0eb4a9bb1853a35b0286dbc6d916bd352c8c2687195a7f2d6f80cefd840e4970 \
|
|
13
|
+
--hash=sha256:5154a9bf84ac01dde011e367f355c07dbb329532e06810dcf3ef2af269e236e7
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
emoji-country-flag==2.1.0 \
|
|
16
|
+
--hash=sha256:224b19583210901b950a624ab0b0896cdf0764b36f8bd1463868b15fb8c10f6a \
|
|
17
|
+
--hash=sha256:3b4df6a9d9961ab7716090689c2e96405baff68e46849ab2704335d904589f2a
|
|
18
|
+
# via -r requirements/requirements.in
|
|
19
|
+
sqlparse==0.5.5 \
|
|
20
|
+
--hash=sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba \
|
|
21
|
+
--hash=sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
|
|
22
|
+
# via django
|
|
23
|
+
typing-extensions==4.15.0 \
|
|
24
|
+
--hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
|
|
25
|
+
--hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548
|
|
26
|
+
# via asgiref
|
|
27
|
+
tzdata==2026.1 ; sys_platform == "win32" \
|
|
28
|
+
--hash=sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9
|
|
29
|
+
# via -r requirements/requirements.in
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.11
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py311-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.11.1 \
|
|
8
|
+
--hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \
|
|
9
|
+
--hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133
|
|
10
|
+
# via django
|
|
11
|
+
django==4.2.30 \
|
|
12
|
+
--hash=sha256:4d07aaf1c62f9984842b67c2874ebbf7056a17be253860299b93ae1881faad65 \
|
|
13
|
+
--hash=sha256:4ebc7a434e3819db6cf4b399fb5b3f536310a30e8486f08b66886840be84b37c
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
emoji-country-flag==2.1.0 \
|
|
16
|
+
--hash=sha256:224b19583210901b950a624ab0b0896cdf0764b36f8bd1463868b15fb8c10f6a \
|
|
17
|
+
--hash=sha256:3b4df6a9d9961ab7716090689c2e96405baff68e46849ab2704335d904589f2a
|
|
18
|
+
# via -r requirements/requirements.in
|
|
19
|
+
sqlparse==0.5.5 \
|
|
20
|
+
--hash=sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba \
|
|
21
|
+
--hash=sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
|
|
22
|
+
# via django
|
|
23
|
+
tzdata==2026.1 ; sys_platform == "win32" \
|
|
24
|
+
--hash=sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9
|
|
25
|
+
# via -r requirements/requirements.in
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.11
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py311-django52.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.11.1 \
|
|
8
|
+
--hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \
|
|
9
|
+
--hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133
|
|
10
|
+
# via django
|
|
11
|
+
django==5.2.15 \
|
|
12
|
+
--hash=sha256:0eb4a9bb1853a35b0286dbc6d916bd352c8c2687195a7f2d6f80cefd840e4970 \
|
|
13
|
+
--hash=sha256:5154a9bf84ac01dde011e367f355c07dbb329532e06810dcf3ef2af269e236e7
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
emoji-country-flag==2.1.0 \
|
|
16
|
+
--hash=sha256:224b19583210901b950a624ab0b0896cdf0764b36f8bd1463868b15fb8c10f6a \
|
|
17
|
+
--hash=sha256:3b4df6a9d9961ab7716090689c2e96405baff68e46849ab2704335d904589f2a
|
|
18
|
+
# via -r requirements/requirements.in
|
|
19
|
+
sqlparse==0.5.5 \
|
|
20
|
+
--hash=sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba \
|
|
21
|
+
--hash=sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
|
|
22
|
+
# via django
|
|
23
|
+
tzdata==2026.1 ; sys_platform == "win32" \
|
|
24
|
+
--hash=sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9
|
|
25
|
+
# via -r requirements/requirements.in
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.12
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py312-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.11.1 \
|
|
8
|
+
--hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \
|
|
9
|
+
--hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133
|
|
10
|
+
# via django
|
|
11
|
+
django==4.2.30 \
|
|
12
|
+
--hash=sha256:4d07aaf1c62f9984842b67c2874ebbf7056a17be253860299b93ae1881faad65 \
|
|
13
|
+
--hash=sha256:4ebc7a434e3819db6cf4b399fb5b3f536310a30e8486f08b66886840be84b37c
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
emoji-country-flag==2.1.0 \
|
|
16
|
+
--hash=sha256:224b19583210901b950a624ab0b0896cdf0764b36f8bd1463868b15fb8c10f6a \
|
|
17
|
+
--hash=sha256:3b4df6a9d9961ab7716090689c2e96405baff68e46849ab2704335d904589f2a
|
|
18
|
+
# via -r requirements/requirements.in
|
|
19
|
+
sqlparse==0.5.5 \
|
|
20
|
+
--hash=sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba \
|
|
21
|
+
--hash=sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
|
|
22
|
+
# via django
|
|
23
|
+
tzdata==2026.1 ; sys_platform == "win32" \
|
|
24
|
+
--hash=sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9
|
|
25
|
+
# via -r requirements/requirements.in
|