paperless-asn-qr-codes 0.4.1.dev6__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.
@@ -0,0 +1,2 @@
1
+ extends:
2
+ - '@commitlint/config-conventional'
@@ -0,0 +1,15 @@
1
+ # Changes here will be overwritten by Copier.
2
+ _commit: 0.0.157
3
+ _src_path: https://codeberg.org/margau/copier-python-uv.git
4
+ code_dir: paperless_asn_qr_codes
5
+ container: false
6
+ forgejo_url: https://codeberg.org/entropia/paperless-asn-qr-codes
7
+ ignore_pylint: true
8
+ ignore_ruff: true
9
+ ignore_ruff_format: true
10
+ project_description: Code for generating paperless ASN labels with QR codes
11
+ project_name: paperless-asn-qr-codes
12
+ pypi_publish: true
13
+ pypi_publish_dev: true
14
+ scripts:
15
+ paperless-asn-qr-code: paperless_asn_qr_codes.main:main
@@ -0,0 +1,22 @@
1
+ name: commitlint
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ commitlint-check:
9
+ runs-on: docker
10
+ container:
11
+ image: codeberg.org/margau/buildenv-commitlint:latest@sha256:62878320ce96051296b5122d83f8869a7a27f57ff095d0d46a1ca017d54f5fbd
12
+
13
+ steps:
14
+ - uses: https://code.forgejo.org/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Validate current commit (last commit) with commitlint
18
+ if: github.event_name == 'push'
19
+ run: commitlint --last --verbose
20
+ - name: Validate PR commits with commitlint
21
+ if: github.event_name == 'pull_request'
22
+ run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
@@ -0,0 +1,24 @@
1
+ name: lint
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ lint-check:
9
+ runs-on: docker
10
+ container:
11
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:726f20c249038e6ec2971b4f19a96057c9ea6c162a2120d7e0f0e3578db0ffa3
12
+
13
+ steps:
14
+ - uses: https://code.forgejo.org/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Install the project
18
+ run: uv sync --locked --all-extras --dev
19
+ - name: check with ruff
20
+ run: uv run ruff check paperless_asn_qr_codes || exit 0
21
+ - name: format with ruff
22
+ run: uv run ruff format --check paperless_asn_qr_codes || exit 0
23
+ - name: check with pylint
24
+ run: uv run pylint paperless_asn_qr_codes || exit 0
@@ -0,0 +1,29 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ build_publish:
9
+ name: "Build (and Publish)"
10
+ runs-on: docker
11
+ container:
12
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:726f20c249038e6ec2971b4f19a96057c9ea6c162a2120d7e0f0e3578db0ffa3
13
+
14
+ steps:
15
+ - uses: https://code.forgejo.org/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
16
+ with:
17
+ fetch-depth: 0
18
+ - name: Build the project
19
+ run: uv build
20
+ - name: Publish release to pypi
21
+ run: uv publish
22
+ if: "${{ startsWith(github.ref, 'refs/tags') }}"
23
+ env:
24
+ UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
25
+ - name: Publish dev version to pypi
26
+ run: uv publish
27
+ if: "${{ github.ref == 'refs/heads/main' }}"
28
+ env:
29
+ UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
@@ -0,0 +1,139 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ deb_dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
99
+ __pypackages__/
100
+
101
+ # Celery stuff
102
+ celerybeat-schedule
103
+ celerybeat.pid
104
+
105
+ # SageMath parsed files
106
+ *.sage.py
107
+
108
+ # Environments
109
+ .env
110
+ .venv
111
+ env/
112
+ venv/
113
+ ENV/
114
+ env.bak/
115
+ venv.bak/
116
+
117
+ # Spyder project settings
118
+ .spyderproject
119
+ .spyproject
120
+
121
+ # Rope project settings
122
+ .ropeproject
123
+
124
+ # mkdocs documentation
125
+ /site
126
+
127
+ # mypy
128
+ .mypy_cache/
129
+ .dmypy.json
130
+ dmypy.json
131
+
132
+ # Pyre type checker
133
+ .pyre/
134
+
135
+ # pytype static type analyzer
136
+ .pytype/
137
+
138
+ # Cython debug symbols
139
+ cython_debug/
@@ -0,0 +1,19 @@
1
+ default_install_hook_types:
2
+ - pre-commit
3
+ - commit-msg
4
+
5
+ repos:
6
+ - repo: https://github.com/compilerla/conventional-pre-commit
7
+ rev: v4.3.0
8
+ hooks:
9
+ - id: conventional-pre-commit
10
+ stages: [commit-msg]
11
+ args: []
12
+ - repo: https://github.com/astral-sh/ruff-pre-commit
13
+ rev: v0.14.10
14
+ hooks:
15
+ # Run the linter.
16
+ - id: ruff-check
17
+ args: [ --fix ]
18
+ # Run the formatter.
19
+ - id: ruff-format