bdbox 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.
bdbox-0.1.0/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ # Python
2
+ __pycache__/
3
+ *.egg-info/
4
+ *.py[cod]
5
+
6
+ # uv and packaging
7
+ .venv/
8
+ /build/
9
+ /dist/
10
+
11
+ # Development tools
12
+ .cache/
13
+ .coverage*
14
+ .pytest_cache/
15
+ .ruff_cache/
16
+ /htmlcov/
17
+ /site/
18
+ coverage.xml
@@ -0,0 +1,15 @@
1
+ # Contributing to bdbox
2
+
3
+ **Contributions are welcome!**
4
+
5
+ Thank you for your time and interest in improving
6
+ **bdbox**!
7
+
8
+ ## Project resources
9
+
10
+ * **Web site**: **<https://smkent.github.io/bdbox>**
11
+ for general project information, usage, and development documentation
12
+ * **Repository**: <https://github.com/smkent/bdbox>
13
+ for submitting pull requests
14
+ * **Issue tracker**: <https://github.com/smkent/bdbox/issues>
15
+ for questions or bug reports
bdbox-0.1.0/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
bdbox-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: bdbox
3
+ Version: 0.1.0
4
+ Summary: build123d utilities box
5
+ Project-URL: Homepage, https://smkent.github.io/bdbox
6
+ Project-URL: Repository, https://github.com/smkent/bdbox
7
+ Project-URL: Issues, https://github.com/smkent/bdbox/issues
8
+ Author-email: Stephen Kent <smkent@smkent.net>
9
+ License-Expression: LGPL-3.0
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Documentation
21
+ Classifier: Topic :: Software Development
22
+ Classifier: Topic :: Utilities
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+
27
+ # bdbox
28
+
29
+ build123d utilities box
30
+
31
+ [![License](https://img.shields.io/github/license/smkent/bdbox)](https://github.com/smkent/bdbox/blob/main/LICENSE)
32
+ [![PyPI](https://img.shields.io/pypi/v/bdbox)](https://pypi.org/project/bdbox/)
33
+ [![Python](https://img.shields.io/pypi/pyversions/bdbox)](https://pypi.org/project/bdbox/)
34
+ [![CI](https://github.com/smkent/bdbox/actions/workflows/ci.yaml/badge.svg)](https://github.com/smkent/bdbox/actions/workflows/ci.yaml)
35
+ [![Coverage](https://codecov.io/gh/smkent/bdbox/branch/main/graph/badge.svg)](https://codecov.io/gh/smkent/bdbox)
36
+ [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen?logo=renovatebot)](https://renovatebot.com)
37
+ [![GitHub stars](https://img.shields.io/github/stars/smkent/bdbox?style=social)](https://github.com/smkent/bdbox)
38
+
39
+ ## Installation
40
+
41
+ ```sh
42
+ pip install bdbox
43
+ ```
bdbox-0.1.0/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # bdbox
2
+
3
+ build123d utilities box
4
+
5
+ [![License](https://img.shields.io/github/license/smkent/bdbox)](https://github.com/smkent/bdbox/blob/main/LICENSE)
6
+ [![PyPI](https://img.shields.io/pypi/v/bdbox)](https://pypi.org/project/bdbox/)
7
+ [![Python](https://img.shields.io/pypi/pyversions/bdbox)](https://pypi.org/project/bdbox/)
8
+ [![CI](https://github.com/smkent/bdbox/actions/workflows/ci.yaml/badge.svg)](https://github.com/smkent/bdbox/actions/workflows/ci.yaml)
9
+ [![Coverage](https://codecov.io/gh/smkent/bdbox/branch/main/graph/badge.svg)](https://codecov.io/gh/smkent/bdbox)
10
+ [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen?logo=renovatebot)](https://renovatebot.com)
11
+ [![GitHub stars](https://img.shields.io/github/stars/smkent/bdbox?style=social)](https://github.com/smkent/bdbox)
12
+
13
+ ## Installation
14
+
15
+ ```sh
16
+ pip install bdbox
17
+ ```
@@ -0,0 +1,9 @@
1
+ """build123d utilities box."""
2
+
3
+ from importlib.metadata import PackageNotFoundError
4
+ from importlib.metadata import version as import_version
5
+
6
+ try:
7
+ version = import_version(__name__)
8
+ except PackageNotFoundError: # pragma: no cover
9
+ version = "0.0.0"
File without changes
@@ -0,0 +1,3 @@
1
+ # API Reference
2
+
3
+ ::: bdbox
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Contributing
3
+ icon: lucide/code
4
+ ---
5
+
6
+ --8<-- "CONTRIBUTING.md"
@@ -0,0 +1,24 @@
1
+ ---
2
+ title: Required software
3
+ icon: lucide/bookmark-check
4
+ ---
5
+
6
+ # Prerequisites
7
+
8
+ - [x] A [supported version][python-versions] of [**Python**][python]
9
+ - [x] [**git** for verson control][git]
10
+ - [x] [Astral's **uv** Python project manager][uv]: `pip install uv` or
11
+ [other supported method][uv-installation]
12
+ - [x] [**Copier**][copier]: `uv tool install copier`
13
+ - [x] [Poe the Poet][poethepoet] (recommended): `uv tool install poethepoet`
14
+
15
+ This provides `poe` without the `uv run` prefix,
16
+ e.g. `poe test` instead of `uv run poe test`
17
+
18
+ [copier]: https://copier.readthedocs.io
19
+ [git]: https://git-scm.com
20
+ [poethepoet]: https://poethepoet.natn.io/
21
+ [python-versions]: https://devguide.python.org/versions/
22
+ [python]: https://python.org
23
+ [uv-installation]: https://docs.astral.sh/uv/getting-started/installation/
24
+ [uv]: https://docs.astral.sh/uv/
@@ -0,0 +1,33 @@
1
+ ---
2
+ title: Template updates
3
+ icon: lucide/git-merge
4
+ ---
5
+
6
+ # Applying copier-python template updates
7
+
8
+ Copier can update your project with template changes that have occurred since
9
+ the project was created.
10
+
11
+ To apply updates, simply run in your project directory:
12
+
13
+ ```sh
14
+ copier update
15
+ ```
16
+
17
+ This will repeat the setup prompts, in case any prompts have been added or
18
+ changed.
19
+
20
+ !!! tip
21
+ To change template-provided features in your project, simply change your
22
+ answers in the update prompts.
23
+
24
+ To apply updates without being prompted (reusing all previous answers), run:
25
+
26
+ ```sh
27
+ copier update -l
28
+ ```
29
+
30
+ When `copier update` is finished, view changes with `git status` and `git diff`.
31
+ Resolve any conflicts, and then commit the result.
32
+
33
+ [copier-update]: https://copier.readthedocs.io/en/stable/updating/
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: Development workflow
3
+ icon: lucide/braces
4
+ ---
5
+
6
+ # Project development workflow
7
+
8
+ ## Cloning the repository
9
+
10
+ ```sh
11
+ git clone https://github.com/smkent/bdbox
12
+ cd bdbox
13
+ ```
14
+
15
+ Run `poe setup` in new repository clones to enable git hooks:
16
+
17
+ ```sh
18
+ poe setup # Enables git hooks
19
+ ```
20
+
21
+ ## Development tools
22
+
23
+ * `poe lint`: Run formatters and static checks
24
+ * `poe test`: Run tests
25
+
26
+ The `lint` and `test` tasks can also be run as a single combined command with:
27
+
28
+ ```sh
29
+ poe lt
30
+ ```
31
+
32
+ ## Documentation server
33
+
34
+ Start the development server with:
35
+
36
+ ```sh
37
+ poe docs
38
+ ```
39
+
40
+ The documentation site will be served at **<http://localhost:8000>**.
41
+
42
+ To use a different bind host/port, run `poe --help docs` for arguments info.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Overview
3
+ icon: lucide/book-open
4
+ hide:
5
+ - path
6
+ ---
7
+
8
+ --8<-- "README.md"
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: License
3
+ icon: lucide/scale
4
+ ---
5
+
6
+ # License
7
+
8
+ ```
9
+ --8<-- "LICENSE"
10
+ ```
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: Releasing a new version
3
+ icon: lucide/rocket
4
+ ---
5
+
6
+ # Releasing a new version
7
+
8
+ Release version numbers should follow [Semantic Versioning][semver].
9
+
10
+ To create a new release, simply create and push a tag with the new release
11
+ version number:
12
+
13
+ ```sh
14
+ git tag vX.Y.Z # for example, v1.2.3
15
+ git push --tags
16
+ ```
17
+
18
+ * A corresponding [GitHub release][github-releases]
19
+ will be created automatically.
20
+
21
+ [![GitHub Release][github-release-badge]][github-release-latest]
22
+
23
+ * A release package will be built and [uploaded to PyPI][pypi-project].
24
+
25
+ [![PyPI][pypi-badge]][pypi-project]
26
+
27
+ [github-release-badge]: https://img.shields.io/github/v/release/smkent/bdbox
28
+ [github-release-latest]: https://github.com/smkent/bdbox/releases/latest
29
+ [github-releases]: https://github.com/smkent/bdbox/releases
30
+ [pypi-badge]: https://img.shields.io/pypi/v/bdbox
31
+ [pypi-project]: https://pypi.org/project/bdbox/
32
+ [semver]: https://semver.org/
@@ -0,0 +1,62 @@
1
+ ---
2
+ title: One time setup
3
+ icon: lucide/package-plus
4
+ ---
5
+
6
+ # One time setup
7
+
8
+ These steps only need to be completed once after the project is first created.
9
+
10
+ ## GitHub repository
11
+
12
+ [Settings → General][repo-settings]:
13
+
14
+ - [x] Allow merge commits
15
+ - [ ] Allow squash merging
16
+ - [ ] Allow rebase merging
17
+ - [x] Automatically delete head branches
18
+
19
+ [Settings → Branches][repo-settings-branches] → Add branch protection rule
20
+ for the Default branch (`main`):
21
+
22
+ - [x] Restrict deletions
23
+ - [x] Require a pull request before merging
24
+ - [x] Block force pushes
25
+
26
+ ## Renovate
27
+
28
+ Ensure the [Renovate app][renovate] is installed on your account, then
29
+ enable it for `smkent/bdbox`.
30
+
31
+ ## PyPI publishing
32
+
33
+ This project uses [trusted publishing][pypi-trusted-publishing] so no API tokens
34
+ need to be stored as secrets.
35
+
36
+ 1. On PyPI, add a (pending) trusted publisher in your
37
+ [Trusted Publisher Management][pypi-publishing-settings] settings:
38
+ - Publisher: GitHub Actions
39
+ - Owner: `smkent`
40
+ - Repository: `bdbox`
41
+ - Workflow: `release.yaml`
42
+ - Environment: `pypi`
43
+ 2. Create the `pypi` environment in the GitHub repository:
44
+ [Settings → Environments][repo-settings-envs] → New environment → `pypi`
45
+ 3. Publish a release by pushing a tag:
46
+ ```sh
47
+ git tag v0.1.0 # or your desired first version number
48
+ git push --tags
49
+ ```
50
+
51
+ ## GitHub Pages
52
+
53
+ [Settings → Pages][repo-settings-pages] → Source → GitHub Actions
54
+
55
+ [pypi-publishing-settings]: https://pypi.org/manage/account/publishing/
56
+ [pypi-trusted-publishing]: https://docs.pypi.org/trusted-publishers/
57
+ [renovate]: https://github.com/apps/renovate
58
+ [repo-releases]: https://github.com/smkent/bdbox/releases
59
+ [repo-settings]: https://github.com/smkent/bdbox/settings
60
+ [repo-settings-envs]: https://github.com/smkent/bdbox/settings/environments
61
+ [repo-settings-branches]: https://github.com/smkent/bdbox/settings/branches
62
+ [repo-settings-pages]: https://github.com/smkent/bdbox/settings/pages
@@ -0,0 +1,215 @@
1
+ [build-system]
2
+ requires = ["hatchling", "uv-dynamic-versioning"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "bdbox"
7
+ dynamic = ["version"]
8
+ description = "build123d utilities box"
9
+ readme = "README.md"
10
+ license = "LGPL-3.0"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [
14
+ { name = "Stephen Kent", email = "smkent@smkent.net" },
15
+ ]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Topic :: Documentation",
27
+ "Topic :: Software Development",
28
+ "Topic :: Utilities",
29
+ "Typing :: Typed",
30
+ ]
31
+ keywords = []
32
+ dependencies = []
33
+
34
+ [project.urls]
35
+ Homepage = "https://smkent.github.io/bdbox"
36
+ Repository = "https://github.com/smkent/bdbox"
37
+ Issues = "https://github.com/smkent/bdbox/issues"
38
+
39
+ [dependency-groups]
40
+ dev = [
41
+ "poethepoet>=0.42",
42
+ "prek>=0.3",
43
+ "pysentry-rs>=0.4",
44
+ "pytest>=9.0",
45
+ "pytest-cov>=7.0",
46
+ "pytest-sugar>=1.0",
47
+ "ruff>=0.15",
48
+ "ty>=0.0.26",
49
+ ]
50
+ docs = [
51
+ "mkdocstrings[python]>=1",
52
+ "zensical>=0.0.30",
53
+ ]
54
+
55
+ [tool.hatch.build.targets.sdist]
56
+ include = ["/bdbox", "/tests", "*.md", "LICENSE"]
57
+
58
+ [tool.hatch.version]
59
+ source = "uv-dynamic-versioning"
60
+
61
+ [tool.poe.executor]
62
+ type = "uv"
63
+
64
+ [tool.poe.tasks.audit]
65
+ cmd = "pysentry-rs"
66
+ help = "Run dependencies security audit"
67
+
68
+ [tool.poe.tasks.build]
69
+ cmd = "uv build"
70
+ help = "Build distribution package"
71
+
72
+ [tool.poe.tasks.docs-build]
73
+ cmd = "zensical build -c"
74
+ help = "Build documentation site"
75
+
76
+ [tool.poe.tasks.docs]
77
+ sequence = [
78
+ {ref = "docs-build"},
79
+ {cmd = "zensical serve -a \"${host}:${port}\""},
80
+ ]
81
+ help = "Run documentation site locally"
82
+
83
+ [tool.poe.tasks.docs.args.host]
84
+ options = ['--host', '-h']
85
+ help = "Bind IP"
86
+ default = "localhost"
87
+
88
+ [tool.poe.tasks.docs.args.port]
89
+ positional = true
90
+ help = "Bind Port"
91
+ default = "8000"
92
+
93
+ [tool.poe.tasks.init]
94
+ sequence = [
95
+ {shell = "[ ! -d .git ] || { echo \"git repository already exists\"; exit 1; }"},
96
+ {cmd = "git init"},
97
+ {ref = "setup"},
98
+ {cmd = "git remote add origin https://github.com/smkent/bdbox"},
99
+ {cmd = "git config --local remote.origin.pushurl git@github.com:smkent/bdbox.git"},
100
+ {cmd = "git add ."},
101
+ {cmd = "git commit -m 'Create project from template'"},
102
+ ]
103
+ help = "Initialize git repository once on project creation"
104
+
105
+ [tool.poe.tasks.lint]
106
+ cmd = "prek run --all-files"
107
+ help = "Run all formatters and static checks"
108
+
109
+ [tool.poe.tasks.lt]
110
+ sequence = [{ref = "lint"}, {ref = "test"}]
111
+ help = "Run all formatters, static checks and tests"
112
+
113
+ [tool.poe.tasks.setup]
114
+ sequence = [
115
+ {cmd = "uv sync"},
116
+ {cmd = "prek install"},
117
+ ]
118
+ help = "Install project dependencies and git hooks"
119
+
120
+ [tool.poe.tasks.test]
121
+ cmd = "pytest"
122
+ help = "Run tests"
123
+
124
+ [tool.poe.tasks.test-versions]
125
+ sequence = ["test-py310", "test-py311", "test-py312", "test-py313", "test-py314"]
126
+ help = "Run tests across all Python versions"
127
+
128
+ [tool.poe.tasks.test-py310]
129
+ cmd = "pytest"
130
+ executor = {isolated = true, python = "3.10"}
131
+ help = "Run tests using Python 3.10"
132
+
133
+ [tool.poe.tasks.test-py311]
134
+ cmd = "pytest"
135
+ executor = {isolated = true, python = "3.11"}
136
+ help = "Run tests using Python 3.11"
137
+
138
+ [tool.poe.tasks.test-py312]
139
+ cmd = "pytest"
140
+ executor = {isolated = true, python = "3.12"}
141
+ help = "Run tests using Python 3.12"
142
+
143
+ [tool.poe.tasks.test-py313]
144
+ cmd = "pytest"
145
+ executor = {isolated = true, python = "3.13"}
146
+ help = "Run tests using Python 3.13"
147
+
148
+ [tool.poe.tasks.test-py314]
149
+ cmd = "pytest"
150
+ executor = {isolated = true, python = "3.14"}
151
+ help = "Run tests using Python 3.14"
152
+
153
+ [tool.pytest]
154
+ addopts = [
155
+ "-ra",
156
+ "--cov",
157
+ "--strict-config",
158
+ "--strict-markers",
159
+ ]
160
+ testpaths = ["tests"]
161
+
162
+ [tool.coverage.run]
163
+ source = ["bdbox"]
164
+ branch = true
165
+
166
+ [tool.coverage.report]
167
+ show_missing = true
168
+ skip_covered = true
169
+ exclude_lines = [
170
+ "pragma: no cover",
171
+ "if TYPE_CHECKING:",
172
+ "@abstractmethod",
173
+ ]
174
+
175
+ [tool.ruff]
176
+ line-length = 79
177
+ output-format = "concise"
178
+ target-version = "py310"
179
+
180
+ [tool.ruff.lint]
181
+ select = ["ALL"]
182
+ ignore = [
183
+ "ANN401", # Dynamically typed expressions (typing.Any) are disallowed
184
+ "COM812", # Trailing comma missing
185
+ "D1", # Missing docstring presence rules
186
+ "EM", # flake8-errmsg
187
+ "G004", # Logging statement uses f-string
188
+ "PLR", # pylint Refactor
189
+ "S607", # Starting a process with a partial executable path
190
+ "TD", # flake8-todos
191
+ "TRY003", # Avoid specifying long messages outside the exception class
192
+ ]
193
+
194
+ [tool.ruff.lint.isort]
195
+ known-first-party = ["bdbox"]
196
+
197
+ [tool.ruff.lint.per-file-ignores]
198
+ "tests/**/*.py" = [
199
+ "ARG", # flake8-unused-arguments
200
+ "S101", # Use of assert detected
201
+ ]
202
+
203
+ [tool.ruff.lint.pydocstyle]
204
+ convention = "google"
205
+
206
+ [tool.ty.terminal]
207
+ error-on-warning = true
208
+ output-format = "concise"
209
+
210
+ [tool.uv]
211
+ default-groups = ["dev", "docs"]
212
+
213
+ [tool.uv-dynamic-versioning]
214
+ pattern = "default-unprefixed"
215
+ fallback-version = "0.0.0"
File without changes
@@ -0,0 +1,5 @@
1
+ import bdbox
2
+
3
+
4
+ def test_version() -> None:
5
+ assert bdbox.version