mypackage-blekthsety52 0.1.6__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,34 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 5
8
+
9
+ - package-ecosystem: "pip"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
13
+ open-pull-requests-limit: 5
14
+ groups:
15
+ dev-dependencies:
16
+ patterns:
17
+ - "pytest*"
18
+ - "ruff"
19
+ - "mypy"
20
+ - "bandit"
21
+ - "safety"
22
+ - "build"
23
+ - "setuptools*"
24
+ - "wheel"
25
+
26
+ - package-ecosystem: "pip"
27
+ directory: "/"
28
+ schedule:
29
+ interval: "daily"
30
+ open-pull-requests-limit: 10
31
+ groups:
32
+ security-updates:
33
+ patterns:
34
+ - "*"
@@ -0,0 +1,60 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+ pull_request:
7
+ branches: [main, master]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest, windows-latest]
16
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
17
+ exclude:
18
+ - os: macos-latest
19
+ python-version: "3.9"
20
+ - os: windows-latest
21
+ python-version: "3.9"
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ uses: actions/setup-python@v5
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ cache: "pip"
30
+
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ pip install -e ".[dev]"
35
+
36
+ - name: Run tests with coverage
37
+ run: |
38
+ pytest --cov=mypackage --cov-report=term-missing --cov-report=xml
39
+
40
+ - name: Upload coverage to Codecov
41
+ uses: codecov/codecov-action@v4
42
+ with:
43
+ file: ./coverage.xml
44
+ flags: unittests
45
+ name: codecov-umbrella
46
+ fail_ci_if_error: false
47
+
48
+ - name: Lint
49
+ run: |
50
+ ruff check src tests
51
+ ruff format --check src tests
52
+
53
+ - name: Type check
54
+ run: |
55
+ mypy src/mypackage
56
+
57
+ - name: Security scan
58
+ run: |
59
+ bandit -r src/mypackage --exit-zero || true
60
+ safety check --ignore 37524 --ignore 40562 || true
@@ -0,0 +1,115 @@
1
+ name: Release to PyPI and GitHub
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ name: Build package
12
+ runs-on: ubuntu-latest
13
+ outputs:
14
+ version: ${{ steps.scm-version.outputs.version }}
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0 # required for setuptools-scm to derive version from tags
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.x"
24
+
25
+ - name: Install build dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install build setuptools-scm
29
+
30
+ - name: Build package
31
+ run: python -m build
32
+
33
+ - name: Get version from scm
34
+ id: scm-version
35
+ run: |
36
+ VERSION=$(python -c "from setuptools_scm import get_version; print(get_version())")
37
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
38
+
39
+ - name: Upload build artifacts
40
+ uses: actions/upload-artifact@v4
41
+ with:
42
+ name: dist
43
+ path: dist/
44
+
45
+ publish-testpypi:
46
+ name: Publish to TestPyPI
47
+ needs: build
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/download-artifact@v4
51
+ with:
52
+ name: dist
53
+ path: dist/
54
+
55
+ - name: Publish to TestPyPI
56
+ uses: pypa/gh-action-pypi-publish@release/v1
57
+ with:
58
+ repository-url: https://test.pypi.org/legacy/
59
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
60
+
61
+ publish-pypi:
62
+ name: Publish to PyPI
63
+ needs: [build]
64
+ runs-on: ubuntu-latest
65
+ environment:
66
+ name: pypi
67
+ url: https://pypi.org/p/mypackage-blekthsety52
68
+ steps:
69
+ - uses: actions/download-artifact@v4
70
+ with:
71
+ name: dist
72
+ path: dist/
73
+
74
+ - name: Publish to PyPI
75
+ uses: pypa/gh-action-pypi-publish@release/v1
76
+ with:
77
+ password: ${{ secrets.PYPI_API_TOKEN }}
78
+
79
+ release-github:
80
+ name: Create GitHub Release
81
+ needs: [build, publish-pypi]
82
+ runs-on: ubuntu-latest
83
+ permissions:
84
+ contents: write
85
+ steps:
86
+ - uses: actions/download-artifact@v4
87
+ with:
88
+ name: dist
89
+ path: dist/
90
+
91
+ - name: Create GitHub Release
92
+ uses: softprops/action-gh-release@v2
93
+ with:
94
+ tag_name: ${{ github.ref_name }}
95
+ name: Release ${{ needs.build.outputs.version }}
96
+ body: |
97
+ ## ${{ github.ref_name }}
98
+
99
+ See the [changelog](https://github.com/blekthsety52-dev/mypackage/compare/${{ github.event.before }}...${{ github.ref }}) for details.
100
+
101
+ ### Installation
102
+
103
+ ```bash
104
+ pip install mypackage-blekthsety52==${{ needs.build.outputs.version }}
105
+ ```
106
+
107
+ ### CLI
108
+
109
+ ```bash
110
+ mypackage greet <name>
111
+ mypackage add <a> <b>
112
+ ```
113
+ draft: false
114
+ prerelease: false
115
+ files: dist/*
@@ -0,0 +1,66 @@
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
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ parts/
18
+ sdist/
19
+ var/
20
+ wheels/
21
+ pip-wheel-metadata/
22
+ share/python-wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ *.manifest
30
+ *.spec
31
+
32
+ # Installer logs
33
+ pip-log.txt
34
+ pip-delete-this-directory.txt
35
+
36
+ # Unit test / coverage reports
37
+ htmlcov/
38
+ .tox/
39
+ .nox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *.cover
46
+ *.py,cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+
50
+ # Environments
51
+ .env
52
+ .venv
53
+ env/
54
+ env.bak/
55
+ venv.bak/
56
+
57
+ # IDE
58
+ .idea/
59
+ .vscode/
60
+ *.swp
61
+ *.swo
62
+ *~
63
+
64
+ # OS
65
+ .DS_Store
66
+ Thumbs.db
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 You
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,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: mypackage-blekthsety52
3
+ Version: 0.1.6
4
+ Summary: A sample Python package initialized with modern tooling.
5
+ Author-email: You <you@example.com>
6
+ License: MIT
7
+ Keywords: example,package
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Provides-Extra: test
18
+ Requires-Dist: pytest>=7.0; extra == "test"
19
+ Requires-Dist: pytest-cov>=4.0; extra == "test"
20
+ Provides-Extra: lint
21
+ Requires-Dist: ruff>=0.5; extra == "lint"
22
+ Provides-Extra: type
23
+ Requires-Dist: mypy>=1.8; extra == "type"
24
+ Provides-Extra: security
25
+ Requires-Dist: bandit>=1.7; extra == "security"
26
+ Requires-Dist: safety>=2.3; extra == "security"
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypackage-blekthsety52[lint,security,test,type]; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ # mypackage
32
+
33
+ ![CI](https://github.com/blekthsety52-dev/mypackage/actions/workflows/ci.yml/badge.svg)
34
+ ![Release](https://github.com/blekthsety52-dev/mypackage/actions/workflows/release.yml/badge.svg)
35
+ [![PyPI version](https://badge.fury.io/py/mypackage.svg)](https://badge.fury.io/py/mypackage)
36
+ [![codecov](https://codecov.io/gh/blekthsety52-dev/branch/main/graph/badge.svg?token=c0a8499d-7815-4943-80d2-466dd8e01991)](https://codecov.io/gh/blekthsety52-dev/mypackage)
37
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
38
+
39
+ A sample Python package initialized with modern tooling.
40
+
41
+ ## Features
42
+
43
+ - Modern `pyproject.toml` packaging (setuptools + setuptools-scm)
44
+ - `src` layout
45
+ - `pytest` test suite with coverage
46
+ - `ruff` linting and formatting
47
+ - `mypy` static type checking
48
+ - `bandit` + `safety` security scanning
49
+ - GitHub Actions CI on Python 3.9–3.12 (Linux, macOS, Windows)
50
+ - Automated PyPI publishing via Trusted Publishing
51
+ - Automated GitHub Releases on tag push
52
+ - Dependabot for automatic dependency updates
53
+
54
+ ## Installation
55
+
56
+ ```bash
57
+ pip install mypackage
58
+ ```
59
+
60
+ ## Development
61
+
62
+ ```bash
63
+ # Install with dev extras (tests, lint, type, security)
64
+ pip install -e ".[dev]"
65
+
66
+ # Run tests
67
+ pytest
68
+
69
+ # Run lint
70
+ ruff check src tests
71
+ ruff format --check src tests
72
+
73
+ # Type check
74
+ mypy src/mypackage
75
+
76
+ # Security scan
77
+ bandit -r src/mypackage
78
+ safety check
79
+ ```
80
+
81
+ ## License
82
+
83
+ MIT
@@ -0,0 +1,53 @@
1
+ # mypackage
2
+
3
+ ![CI](https://github.com/blekthsety52-dev/mypackage/actions/workflows/ci.yml/badge.svg)
4
+ ![Release](https://github.com/blekthsety52-dev/mypackage/actions/workflows/release.yml/badge.svg)
5
+ [![PyPI version](https://badge.fury.io/py/mypackage.svg)](https://badge.fury.io/py/mypackage)
6
+ [![codecov](https://codecov.io/gh/blekthsety52-dev/branch/main/graph/badge.svg?token=c0a8499d-7815-4943-80d2-466dd8e01991)](https://codecov.io/gh/blekthsety52-dev/mypackage)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ A sample Python package initialized with modern tooling.
10
+
11
+ ## Features
12
+
13
+ - Modern `pyproject.toml` packaging (setuptools + setuptools-scm)
14
+ - `src` layout
15
+ - `pytest` test suite with coverage
16
+ - `ruff` linting and formatting
17
+ - `mypy` static type checking
18
+ - `bandit` + `safety` security scanning
19
+ - GitHub Actions CI on Python 3.9–3.12 (Linux, macOS, Windows)
20
+ - Automated PyPI publishing via Trusted Publishing
21
+ - Automated GitHub Releases on tag push
22
+ - Dependabot for automatic dependency updates
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ pip install mypackage
28
+ ```
29
+
30
+ ## Development
31
+
32
+ ```bash
33
+ # Install with dev extras (tests, lint, type, security)
34
+ pip install -e ".[dev]"
35
+
36
+ # Run tests
37
+ pytest
38
+
39
+ # Run lint
40
+ ruff check src tests
41
+ ruff format --check src tests
42
+
43
+ # Type check
44
+ mypy src/mypackage
45
+
46
+ # Security scan
47
+ bandit -r src/mypackage
48
+ safety check
49
+ ```
50
+
51
+ ## License
52
+
53
+ MIT
@@ -0,0 +1,67 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel", "setuptools-scm>=8"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "mypackage-blekthsety52"
7
+ description = "A sample Python package initialized with modern tooling."
8
+ readme = "README.md"
9
+ requires-python = ">=3.9"
10
+ license = { text = "MIT" }
11
+ dynamic = ["version"]
12
+ authors = [
13
+ { name = "You", email = "you@example.com" },
14
+ ]
15
+ keywords = ["example", "package"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.9",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "License :: OSI Approved :: MIT License",
22
+ "Operating System :: OS Independent",
23
+ ]
24
+
25
+ [project.optional-dependencies]
26
+ test = [
27
+ "pytest>=7.0",
28
+ "pytest-cov>=4.0",
29
+ ]
30
+ lint = [
31
+ "ruff>=0.5",
32
+ ]
33
+ type = [
34
+ "mypy>=1.8",
35
+ ]
36
+ security = [
37
+ "bandit>=1.7",
38
+ "safety>=2.3",
39
+ ]
40
+ dev = [
41
+ "mypackage-blekthsety52[test,lint,type,security]",
42
+ ]
43
+
44
+ [project.scripts]
45
+ mypackage = "mypackage.cli:main"
46
+
47
+ [tool.setuptools.packages.find]
48
+ where = ["src"]
49
+ include = ["mypackage*"]
50
+
51
+ [tool.setuptools_scm]
52
+
53
+ [tool.ruff]
54
+ line-length = 100
55
+ target-version = "py39"
56
+ select = ["E", "F", "I", "N", "UP", "B", "C4", "DTZ", "G", "RUF"]
57
+ ignore = ["E501"]
58
+
59
+ [tool.ruff.isort]
60
+ known-first-party = ["mypackage", "tests"]
61
+
62
+ [tool.pytest.ini_options]
63
+ testpaths = ["tests"]
64
+ python_files = ["test_*.py"]
65
+ python_classes = ["Test*"]
66
+ python_functions = ["test_*"]
67
+ addopts = ["-q"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,8 @@
1
+ """mypackage - a sample Python package."""
2
+
3
+ from importlib.metadata import version as _version
4
+
5
+ from mypackage.core import greet, add
6
+
7
+ __all__ = ["greet", "add"]
8
+ __version__ = _version("mypackage")
@@ -0,0 +1,30 @@
1
+ """Command-line interface for mypackage."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+
7
+ from mypackage.core import add, greet
8
+
9
+
10
+ def main() -> None:
11
+ """Entry point for the ``mypackage`` console script."""
12
+ parser = argparse.ArgumentParser(
13
+ prog="mypackage",
14
+ description="A sample Python package with a CLI.",
15
+ )
16
+ subparsers = parser.add_subparsers(dest="command", required=True)
17
+
18
+ greet_parser = subparsers.add_parser("greet", help="Print a greeting")
19
+ greet_parser.add_argument("name", help="Name to greet")
20
+
21
+ add_parser = subparsers.add_parser("add", help="Add two integers")
22
+ add_parser.add_argument("a", type=int, help="First integer")
23
+ add_parser.add_argument("b", type=int, help="Second integer")
24
+
25
+ args = parser.parse_args()
26
+
27
+ if args.command == "greet":
28
+ print(greet(args.name))
29
+ elif args.command == "add":
30
+ print(add(args.a, args.b))
@@ -0,0 +1,11 @@
1
+ """Core utilities for mypackage."""
2
+
3
+
4
+ def greet(name: str) -> str:
5
+ """Return a friendly greeting for *name*."""
6
+ return f"Hello, {name}! Welcome to mypackage."
7
+
8
+
9
+ def add(a: int, b: int) -> int:
10
+ """Return the sum of *a* and *b*."""
11
+ return a + b
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: mypackage-blekthsety52
3
+ Version: 0.1.6
4
+ Summary: A sample Python package initialized with modern tooling.
5
+ Author-email: You <you@example.com>
6
+ License: MIT
7
+ Keywords: example,package
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Provides-Extra: test
18
+ Requires-Dist: pytest>=7.0; extra == "test"
19
+ Requires-Dist: pytest-cov>=4.0; extra == "test"
20
+ Provides-Extra: lint
21
+ Requires-Dist: ruff>=0.5; extra == "lint"
22
+ Provides-Extra: type
23
+ Requires-Dist: mypy>=1.8; extra == "type"
24
+ Provides-Extra: security
25
+ Requires-Dist: bandit>=1.7; extra == "security"
26
+ Requires-Dist: safety>=2.3; extra == "security"
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypackage-blekthsety52[lint,security,test,type]; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ # mypackage
32
+
33
+ ![CI](https://github.com/blekthsety52-dev/mypackage/actions/workflows/ci.yml/badge.svg)
34
+ ![Release](https://github.com/blekthsety52-dev/mypackage/actions/workflows/release.yml/badge.svg)
35
+ [![PyPI version](https://badge.fury.io/py/mypackage.svg)](https://badge.fury.io/py/mypackage)
36
+ [![codecov](https://codecov.io/gh/blekthsety52-dev/branch/main/graph/badge.svg?token=c0a8499d-7815-4943-80d2-466dd8e01991)](https://codecov.io/gh/blekthsety52-dev/mypackage)
37
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
38
+
39
+ A sample Python package initialized with modern tooling.
40
+
41
+ ## Features
42
+
43
+ - Modern `pyproject.toml` packaging (setuptools + setuptools-scm)
44
+ - `src` layout
45
+ - `pytest` test suite with coverage
46
+ - `ruff` linting and formatting
47
+ - `mypy` static type checking
48
+ - `bandit` + `safety` security scanning
49
+ - GitHub Actions CI on Python 3.9–3.12 (Linux, macOS, Windows)
50
+ - Automated PyPI publishing via Trusted Publishing
51
+ - Automated GitHub Releases on tag push
52
+ - Dependabot for automatic dependency updates
53
+
54
+ ## Installation
55
+
56
+ ```bash
57
+ pip install mypackage
58
+ ```
59
+
60
+ ## Development
61
+
62
+ ```bash
63
+ # Install with dev extras (tests, lint, type, security)
64
+ pip install -e ".[dev]"
65
+
66
+ # Run tests
67
+ pytest
68
+
69
+ # Run lint
70
+ ruff check src tests
71
+ ruff format --check src tests
72
+
73
+ # Type check
74
+ mypy src/mypackage
75
+
76
+ # Security scan
77
+ bandit -r src/mypackage
78
+ safety check
79
+ ```
80
+
81
+ ## License
82
+
83
+ MIT
@@ -0,0 +1,19 @@
1
+ .gitignore
2
+ LICENSE
3
+ README.md
4
+ pyproject.toml
5
+ .github/dependabot.yml
6
+ .github/workflows/ci.yml
7
+ .github/workflows/release.yml
8
+ src/mypackage/__init__.py
9
+ src/mypackage/cli.py
10
+ src/mypackage/core.py
11
+ src/mypackage_blekthsety52.egg-info/PKG-INFO
12
+ src/mypackage_blekthsety52.egg-info/SOURCES.txt
13
+ src/mypackage_blekthsety52.egg-info/dependency_links.txt
14
+ src/mypackage_blekthsety52.egg-info/entry_points.txt
15
+ src/mypackage_blekthsety52.egg-info/requires.txt
16
+ src/mypackage_blekthsety52.egg-info/scm_file_list.json
17
+ src/mypackage_blekthsety52.egg-info/scm_version.json
18
+ src/mypackage_blekthsety52.egg-info/top_level.txt
19
+ tests/test_core.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mypackage = mypackage.cli:main
@@ -0,0 +1,17 @@
1
+
2
+ [dev]
3
+ mypackage-blekthsety52[lint,security,test,type]
4
+
5
+ [lint]
6
+ ruff>=0.5
7
+
8
+ [security]
9
+ bandit>=1.7
10
+ safety>=2.3
11
+
12
+ [test]
13
+ pytest>=7.0
14
+ pytest-cov>=4.0
15
+
16
+ [type]
17
+ mypy>=1.8
@@ -0,0 +1,15 @@
1
+ {
2
+ "files": [
3
+ ".github/dependabot.yml",
4
+ ".github/workflows/ci.yml",
5
+ ".github/workflows/release.yml",
6
+ ".gitignore",
7
+ "LICENSE",
8
+ "README.md",
9
+ "pyproject.toml",
10
+ "src/mypackage/__init__.py",
11
+ "src/mypackage/cli.py",
12
+ "src/mypackage/core.py",
13
+ "tests/test_core.py"
14
+ ]
15
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.1.6",
3
+ "distance": 0,
4
+ "node": "gdf6e8fe11724af0c6016206eb08d4608f2eb114d",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-11-30"
8
+ }
@@ -0,0 +1,22 @@
1
+ """Tests for mypackage.core."""
2
+
3
+ import pytest
4
+
5
+ from mypackage.core import add, greet
6
+
7
+
8
+ def test_greet_returns_welcome_message() -> None:
9
+ assert greet("Ada") == "Hello, Ada! Welcome to mypackage."
10
+
11
+
12
+ @pytest.mark.parametrize(
13
+ ("a", "b", "expected"),
14
+ [
15
+ (1, 2, 3),
16
+ (-1, 1, 0),
17
+ (0, 0, 0),
18
+ (100, 200, 300),
19
+ ],
20
+ )
21
+ def test_add(a: int, b: int, expected: int) -> None:
22
+ assert add(a, b) == expected