typer-repyt 0.2.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.
- typer_repyt-0.2.0/.github/workflows/deploy.yml +28 -0
- typer_repyt-0.2.0/.github/workflows/docs.yml +37 -0
- typer_repyt-0.2.0/.github/workflows/main.yml +44 -0
- typer_repyt-0.2.0/.gitignore +148 -0
- typer_repyt-0.2.0/.python-version +1 -0
- typer_repyt-0.2.0/CHANGELOG.md +18 -0
- typer_repyt-0.2.0/CONDUCT.md +132 -0
- typer_repyt-0.2.0/CONTRIBUTING.md +128 -0
- typer_repyt-0.2.0/LICENSE.md +21 -0
- typer_repyt-0.2.0/Makefile +71 -0
- typer_repyt-0.2.0/PKG-INFO +41 -0
- typer_repyt-0.2.0/README.md +26 -0
- typer_repyt-0.2.0/docs/mkdocs.yaml +65 -0
- typer_repyt-0.2.0/docs/source/css/fonts.css +3 -0
- typer_repyt-0.2.0/docs/source/features/build_command.md +666 -0
- typer_repyt-0.2.0/docs/source/images/logo-dark.png +0 -0
- typer_repyt-0.2.0/docs/source/images/logo-dark.png:Zone.Identifier +3 -0
- typer_repyt-0.2.0/docs/source/images/logo-dark.svg +72 -0
- typer_repyt-0.2.0/docs/source/images/logo-light.png +0 -0
- typer_repyt-0.2.0/docs/source/images/logo-light.png:Zone.Identifier +3 -0
- typer_repyt-0.2.0/docs/source/images/logo-light.svg +72 -0
- typer_repyt-0.2.0/docs/source/index.md +22 -0
- typer_repyt-0.2.0/docs/source/quickstart.md +46 -0
- typer_repyt-0.2.0/docs/source/reference.md +4 -0
- typer_repyt-0.2.0/examples/build_command/arg_def/envvar.py +30 -0
- typer_repyt-0.2.0/examples/build_command/arg_def/hidden.py +26 -0
- typer_repyt-0.2.0/examples/build_command/arg_def/metavar.py +26 -0
- typer_repyt-0.2.0/examples/build_command/arg_def/show_envvar.py +26 -0
- typer_repyt-0.2.0/examples/build_command/dynamic.py +25 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/callback.py +31 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/confirmation_prompt.py +25 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/hide_input.py +25 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/is_eager.py +39 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/override_name.py +25 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/prompt.py +29 -0
- typer_repyt-0.2.0/examples/build_command/opt_def/short_name.py +25 -0
- typer_repyt-0.2.0/examples/build_command/param_def/default.py +21 -0
- typer_repyt-0.2.0/examples/build_command/param_def/help.py +21 -0
- typer_repyt-0.2.0/examples/build_command/param_def/name.py +21 -0
- typer_repyt-0.2.0/examples/build_command/param_def/param_type.py +21 -0
- typer_repyt-0.2.0/examples/build_command/param_def/rich_help_panel.py +21 -0
- typer_repyt-0.2.0/examples/build_command/param_def/show_default.py +29 -0
- typer_repyt-0.2.0/examples/build_command/static.py +22 -0
- typer_repyt-0.2.0/pyproject.toml +91 -0
- typer_repyt-0.2.0/src/typer_repyt/__init__.py +3 -0
- typer_repyt-0.2.0/src/typer_repyt/build_command.py +257 -0
- typer_repyt-0.2.0/src/typer_repyt/constants.py +12 -0
- typer_repyt-0.2.0/src/typer_repyt/exceptions.py +9 -0
- typer_repyt-0.2.0/src/typer_repyt/py.typed +0 -0
- typer_repyt-0.2.0/src/typer_repyt/version.py +24 -0
- typer_repyt-0.2.0/tests/__init__.py +0 -0
- typer_repyt-0.2.0/tests/conftest.py +0 -0
- typer_repyt-0.2.0/tests/helpers.py +119 -0
- typer_repyt-0.2.0/tests/test_build_command.py +415 -0
- typer_repyt-0.2.0/tests/test_version.py +60 -0
- typer_repyt-0.2.0/uv.lock +964 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Deploy on tag
|
|
2
|
+
run-name: deploy-on-tag
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
8
|
+
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
deploy:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout repository
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v3
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
run: uv python install 3.13
|
|
23
|
+
|
|
24
|
+
- name: Build package
|
|
25
|
+
run: uv build
|
|
26
|
+
|
|
27
|
+
- name: Publish package
|
|
28
|
+
run: uv publish --token=${{ secrets.PYPI_API_KEY }}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Docs on main
|
|
2
|
+
run-name: build-docs
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
paths:
|
|
9
|
+
- 'docs/**'
|
|
10
|
+
- 'src/typer_repyt/**'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
docs:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
pages: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout repository
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Install uv
|
|
24
|
+
uses: astral-sh/setup-uv@v3
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
run: uv python install 3.13
|
|
28
|
+
|
|
29
|
+
- name: Build Documentation
|
|
30
|
+
run: |
|
|
31
|
+
make docs/build
|
|
32
|
+
|
|
33
|
+
- name: Deploy documentation
|
|
34
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
35
|
+
with:
|
|
36
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
publish_dir: ./docs/site
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: QA on push
|
|
2
|
+
run-name: qa-checks
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [ main ]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [ main ]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version:
|
|
16
|
+
- '3.12'
|
|
17
|
+
- '3.13'
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout repository
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Install uv
|
|
24
|
+
uses: astral-sh/setup-uv@v5
|
|
25
|
+
|
|
26
|
+
- name: Install python
|
|
27
|
+
run: uv python install ${{ matrix.python-version }}
|
|
28
|
+
|
|
29
|
+
- name: Check Quality
|
|
30
|
+
run: make qa/full
|
|
31
|
+
|
|
32
|
+
- name: Upload coverage reports to Codecov
|
|
33
|
+
uses: codecov/codecov-action@v5
|
|
34
|
+
with:
|
|
35
|
+
files: ./.coverage.xml
|
|
36
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
37
|
+
if: success()
|
|
38
|
+
|
|
39
|
+
- name: Upload test results to Codecov
|
|
40
|
+
uses: codecov/test-results-action@v1
|
|
41
|
+
with:
|
|
42
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
43
|
+
files: ./.junit.xml
|
|
44
|
+
if: success()
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.junit.xml
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
.DS_Store
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
*.job
|
|
11
|
+
osu_*
|
|
12
|
+
mpi-*
|
|
13
|
+
param_dict.json
|
|
14
|
+
*.tar*
|
|
15
|
+
*java*
|
|
16
|
+
application.sh
|
|
17
|
+
lgcy*
|
|
18
|
+
~*
|
|
19
|
+
# Distribution / packaging
|
|
20
|
+
.Python
|
|
21
|
+
build/
|
|
22
|
+
develop-eggs/
|
|
23
|
+
dist/
|
|
24
|
+
downloads/
|
|
25
|
+
eggs/
|
|
26
|
+
.eggs/
|
|
27
|
+
lib/
|
|
28
|
+
lib64/
|
|
29
|
+
parts/
|
|
30
|
+
sdist/
|
|
31
|
+
var/
|
|
32
|
+
wheels/
|
|
33
|
+
starccm_app/
|
|
34
|
+
pip-wheel-metadata/
|
|
35
|
+
share/python-wheels/
|
|
36
|
+
*.egg-info/
|
|
37
|
+
.installed.cfg
|
|
38
|
+
*.egg
|
|
39
|
+
MANIFEST
|
|
40
|
+
.idea/
|
|
41
|
+
|
|
42
|
+
# PyInstaller
|
|
43
|
+
# Usually these files are written by a python script from a template
|
|
44
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
45
|
+
*.manifest
|
|
46
|
+
*.spec
|
|
47
|
+
|
|
48
|
+
# Installer logs
|
|
49
|
+
pip-log.txt
|
|
50
|
+
pip-delete-this-directory.txt
|
|
51
|
+
|
|
52
|
+
# Unit test / coverage reports
|
|
53
|
+
htmlcov/
|
|
54
|
+
.tox/
|
|
55
|
+
.nox/
|
|
56
|
+
.coverage
|
|
57
|
+
.coverage.*
|
|
58
|
+
.cache
|
|
59
|
+
nosetests.xml
|
|
60
|
+
coverage.xml
|
|
61
|
+
*.cover
|
|
62
|
+
*.py,cover
|
|
63
|
+
.hypothesis/
|
|
64
|
+
.pytest_cache/
|
|
65
|
+
|
|
66
|
+
# Translations
|
|
67
|
+
*.mo
|
|
68
|
+
*.pot
|
|
69
|
+
|
|
70
|
+
# Django stuff:
|
|
71
|
+
*.log
|
|
72
|
+
local_settings.py
|
|
73
|
+
db.sqlite3
|
|
74
|
+
db.sqlite3-journal
|
|
75
|
+
|
|
76
|
+
# Flask stuff:
|
|
77
|
+
instance/
|
|
78
|
+
.webassets-cache
|
|
79
|
+
|
|
80
|
+
# Scrapy stuff:
|
|
81
|
+
.scrapy
|
|
82
|
+
|
|
83
|
+
# Sphinx documentation
|
|
84
|
+
docs/_build/
|
|
85
|
+
|
|
86
|
+
# PyBuilder
|
|
87
|
+
target/
|
|
88
|
+
|
|
89
|
+
# Jupyter Notebook
|
|
90
|
+
.ipynb_checkpoints
|
|
91
|
+
|
|
92
|
+
# IPython
|
|
93
|
+
profile_default/
|
|
94
|
+
ipython_config.py
|
|
95
|
+
|
|
96
|
+
# pipenv
|
|
97
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
98
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
99
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
100
|
+
# install all needed dependencies.
|
|
101
|
+
#Pipfile.lock
|
|
102
|
+
|
|
103
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
104
|
+
__pypackages__/
|
|
105
|
+
|
|
106
|
+
# Celery stuff
|
|
107
|
+
celerybeat-schedule
|
|
108
|
+
celerybeat.pid
|
|
109
|
+
|
|
110
|
+
# SageMath parsed files
|
|
111
|
+
*.sage.py
|
|
112
|
+
|
|
113
|
+
# Environments
|
|
114
|
+
.env
|
|
115
|
+
.venv
|
|
116
|
+
env/
|
|
117
|
+
venv/
|
|
118
|
+
ENV/
|
|
119
|
+
env.bak/
|
|
120
|
+
venv.bak/
|
|
121
|
+
|
|
122
|
+
# Spyder project settings
|
|
123
|
+
.spyderproject
|
|
124
|
+
.spyproject
|
|
125
|
+
|
|
126
|
+
# Rope project settings
|
|
127
|
+
.ropeproject
|
|
128
|
+
|
|
129
|
+
# mkdocs documentation
|
|
130
|
+
/docs/site
|
|
131
|
+
|
|
132
|
+
# mypy
|
|
133
|
+
.mypy_cache/
|
|
134
|
+
.dmypy.json
|
|
135
|
+
dmypy.json
|
|
136
|
+
|
|
137
|
+
# Pyre type checker
|
|
138
|
+
.pyre/
|
|
139
|
+
|
|
140
|
+
# git
|
|
141
|
+
.git/
|
|
142
|
+
|
|
143
|
+
# vs code
|
|
144
|
+
/*.code-workspace
|
|
145
|
+
/.vscode
|
|
146
|
+
|
|
147
|
+
# snapcraft
|
|
148
|
+
/*.snap
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## v0.2.0 - 2025-04-17
|
|
10
|
+
- Renamed the project to `typer-repyt`
|
|
11
|
+
- Completed `build_command` function
|
|
12
|
+
- Added documentation for the `build_command` feature
|
|
13
|
+
- Added examples of the `build_command` feature
|
|
14
|
+
- Added a logo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## v0.1.0 - 2025-04-15
|
|
18
|
+
- Generated project from template
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct([2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/)
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
[tucker.beck@gmail.com](mailto:tucker.beck@gmail.com).
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributing Guidelines
|
|
2
|
+
|
|
3
|
+
## Security Concerns
|
|
4
|
+
|
|
5
|
+
Before any further discussion, a point about security needs to be addressed:
|
|
6
|
+
|
|
7
|
+
> [!WARNING]
|
|
8
|
+
> If you find a serious security vulnerability that could affect current users, please report it to maintainers via
|
|
9
|
+
> email or some form of private communication. For other issue reports, see below.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Thanks!
|
|
13
|
+
|
|
14
|
+
First, thank you for your interest in contributing to typer-repyt! Even though this is mostly a personal project,
|
|
15
|
+
it takes a bit of work to keep it maintained. All contributions help and improve it.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Contact Us
|
|
19
|
+
|
|
20
|
+
The maintainers of typer-repyt can be reached most easily via email:
|
|
21
|
+
|
|
22
|
+
* **Tucker Beck**: [tucker.beck@gmail.com](mailto:tucker.beck@gmail.com)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Conduct
|
|
26
|
+
|
|
27
|
+
Everyone's conduct should be respectful and friendly. For most folks, these things don't need to be spelled out.
|
|
28
|
+
However, to establish a baseline of acceptable conduct, the typer-repyt project expects contributors to adhere to
|
|
29
|
+
the [Code of Conduct](./CONDUCT.md) for this project. Any issues working with other contributors should be reported to
|
|
30
|
+
the maintainers
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Contribution Recommendations
|
|
34
|
+
|
|
35
|
+
### Github Issues
|
|
36
|
+
|
|
37
|
+
The first and primary source of contributions is opening issues on github. Please feel free to open issues when you find
|
|
38
|
+
problems or wish to request a feature. All issues will be treated seriously and taken under consideration. However, the
|
|
39
|
+
maintainers may disregard/close issues at their discretion.
|
|
40
|
+
|
|
41
|
+
Issues are most helpful when they contain specifics about the problem they address. Specific error messages, references
|
|
42
|
+
to specific lines of code, environment contexts, and such are extremely helpful.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Code Contributions
|
|
46
|
+
|
|
47
|
+
Code contributions should be submitted via pull-requests on github. Project maintainers will review pull-requests and
|
|
48
|
+
may test new features out. All merge requests should come with commit messages that describe the changes as well as a
|
|
49
|
+
reference to the issue that the code addresses. Commit messages should also adhere to
|
|
50
|
+
[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
51
|
+
|
|
52
|
+
Commit messages should look like this:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
fix: Fixed gizmo component that was parfolecting
|
|
56
|
+
|
|
57
|
+
Addresses Issue #56
|
|
58
|
+
|
|
59
|
+
The parfolection happening in the gizmo component was causing a vulterability in the anti-parfolection checks during the
|
|
60
|
+
enmurculation process.
|
|
61
|
+
|
|
62
|
+
This was addressed by caching the restults of parfolection prior to enmurculation.
|
|
63
|
+
|
|
64
|
+
Also:
|
|
65
|
+
* Added and updated unit tests
|
|
66
|
+
* Added documentation
|
|
67
|
+
* Cleaned up some code
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
> [!Note]
|
|
71
|
+
> The maintainers of typer-repyt _hate_ the use of `!` to indicate breaking changes in the subject line. If you
|
|
72
|
+
> introduce a breaking change, please note it in a _footer_ instead.
|
|
73
|
+
|
|
74
|
+
Code contributions should follow best-practices where possible. Use the
|
|
75
|
+
[Zen of Python](https://www.python.org/dev/peps/pep-0020/) as a guideline. All code must stick to pep8 style guidelines.
|
|
76
|
+
|
|
77
|
+
Adding additional dependencies should be limited except where needed functionality can be easily added through pip
|
|
78
|
+
packages. Please include dependencies that are only applicable to development and testing in the dev dependency list.
|
|
79
|
+
Packages should only be added to the dependency lists if:
|
|
80
|
+
|
|
81
|
+
* They are actively maintained
|
|
82
|
+
* They are widely used
|
|
83
|
+
* They are hosted on pypi.org
|
|
84
|
+
* They have source code hosted on a public repository (github, gitlab, bitbucket, etc)
|
|
85
|
+
* They include tests in their repositories
|
|
86
|
+
* They include a software license
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Documentation
|
|
90
|
+
|
|
91
|
+
Help with documentation is *always* welcome.
|
|
92
|
+
|
|
93
|
+
The typer-repyt project uses [mkdocs-material](https://squidfunk.github.io/mkdocs-material/) for document
|
|
94
|
+
generation.
|
|
95
|
+
|
|
96
|
+
Documentation lives in the `docs` subdirectory.
|
|
97
|
+
|
|
98
|
+
Documentation should be clear, include examples where possible, and reference source material as much as possible.
|
|
99
|
+
|
|
100
|
+
Documentation through code comments should be kept to a minimum. Code should
|
|
101
|
+
be as self-documenting as possible. If a section of code needs some explanation,
|
|
102
|
+
the bulk of it should be be presented as docstrings that use
|
|
103
|
+
[Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
|
|
104
|
+
`docstrings <https://www.python.org/dev/peps/pep-0257/>`_ for methods, modules,
|
|
105
|
+
and classes.
|
|
106
|
+
|
|
107
|
+
> [!Note]
|
|
108
|
+
> The maintainers of typer-repyt don't like starting the docstring on the same line as the triple-quotes.
|
|
109
|
+
> Instead, the > docstring should stat on a new line:
|
|
110
|
+
>
|
|
111
|
+
> ```python
|
|
112
|
+
> def gizmo():
|
|
113
|
+
> """"
|
|
114
|
+
> Parfolect the enmurculation process.
|
|
115
|
+
> """
|
|
116
|
+
> ...
|
|
117
|
+
> ```
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## Non-preferred Contributions
|
|
121
|
+
|
|
122
|
+
There are some types of contribution that aren't as helpful and are not as welcome:
|
|
123
|
+
|
|
124
|
+
* Complaints without suggestion
|
|
125
|
+
* Criticism about the overall approach of the extension
|
|
126
|
+
* Copied code without attribution
|
|
127
|
+
* Promotion of personal packages/projects without due need
|
|
128
|
+
* Sarcasm/ridicule of contributions or design choices
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) `2025` `Tucker Beck`
|
|
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,71 @@
|
|
|
1
|
+
.ONESHELL:
|
|
2
|
+
.DEFAULT_GOAL:=help
|
|
3
|
+
SHELL:=/bin/bash
|
|
4
|
+
PACKAGE_TARGET:=src/typer_repyt
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# ==== Helpers =========================================================================================================
|
|
8
|
+
.PHONY: confirm
|
|
9
|
+
confirm: ## Don't use this directly
|
|
10
|
+
@echo -n "Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.PHONY: help
|
|
14
|
+
help: ## Show help message
|
|
15
|
+
@awk 'BEGIN {FS = ": .*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% 0-9a-zA-Z_\/-]+(\\:[$$()% 0-9a-zA-Z_\/-]+)*:.*?##/ { gsub(/\\:/,":", $$1); printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
|
16
|
+
|
|
17
|
+
.PHONY: clean
|
|
18
|
+
clean: ## Clean up build artifacts and other junk
|
|
19
|
+
@rm -rf .venv
|
|
20
|
+
@uv run pyclean . --debris
|
|
21
|
+
@rm -rf dist
|
|
22
|
+
@rm -rf .ruff_cache
|
|
23
|
+
@rm -rf .pytest_cache
|
|
24
|
+
@rm -rf .mypy_cache
|
|
25
|
+
@rm -f .coverage*
|
|
26
|
+
@rm -f .junit.xml
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# ==== Quality Control =================================================================================================
|
|
30
|
+
.PHONY: qa/test
|
|
31
|
+
qa/test: ## Run the tests
|
|
32
|
+
uv run pytest
|
|
33
|
+
|
|
34
|
+
.PHONY: qa/types
|
|
35
|
+
qa/types: ## Run static type checks
|
|
36
|
+
uv run mypy ${PACKAGE_TARGET} tests --pretty
|
|
37
|
+
uv run basedpyright ${PACKAGE_TARGET} tests
|
|
38
|
+
|
|
39
|
+
.PHONY: qa/lint
|
|
40
|
+
qa/lint: ## Run linters
|
|
41
|
+
uv run ruff check ${PACKAGE_TARGET} tests
|
|
42
|
+
uv run typos ${PACKAGE_TARGET} tests
|
|
43
|
+
|
|
44
|
+
.PHONY: qa/full
|
|
45
|
+
qa/full: qa/test qa/lint qa/types ## Run the full set of quality checks
|
|
46
|
+
@echo "All quality checks pass!"
|
|
47
|
+
|
|
48
|
+
.PHONY: qa/format
|
|
49
|
+
qa/format: ## RUn code formatter
|
|
50
|
+
uv run ruff format ${PACKAGE_TARGET} tests
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# ==== Documentation ===================================================================================================
|
|
54
|
+
.PHONY: docs/build
|
|
55
|
+
docs/build: ## Build the documentation
|
|
56
|
+
uv run mkdocs build --config-file=docs/mkdocs.yaml
|
|
57
|
+
|
|
58
|
+
.PHONY: docs/serve
|
|
59
|
+
docs/serve: ## Build the docs and start a local dev server
|
|
60
|
+
uv run mkdocs serve --config-file=docs/mkdocs.yaml --dev-addr=localhost:10000
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# ==== App Commands ====================================================================================================
|
|
64
|
+
.PHONY: app/run
|
|
65
|
+
app/run: ## Run the app in debug mode
|
|
66
|
+
uv run src/typer_repyt/command_builder.py
|
|
67
|
+
|
|
68
|
+
.PHONY: app/debug
|
|
69
|
+
app/debug: ## Run the app in debug mode
|
|
70
|
+
uv run debugpy --listen localhost:5678 --wait-for-client src/typer_repyt/command_builder.py
|
|
71
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: typer-repyt
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Tools to extended functionality for typer based CLIs
|
|
5
|
+
Project-URL: homepage, https://github.com/dusktreader/typer-repyt
|
|
6
|
+
Project-URL: source, https://github.com/dusktreader/typer-repyt
|
|
7
|
+
Project-URL: changelog, https://github.com/dusktreader/typer-repyt/blob/main/CHANGELOG.md
|
|
8
|
+
Author-email: Tucker Beck <tucker.beck@gmail.com>
|
|
9
|
+
License-File: LICENSE.md
|
|
10
|
+
Requires-Python: >=3.12,~=3.13
|
|
11
|
+
Requires-Dist: py-buzz>=7.0.0
|
|
12
|
+
Requires-Dist: snick~=2.1
|
|
13
|
+
Requires-Dist: typer>=0.15.2
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
[](https://pypi.org/project/typer-repyt/)
|
|
17
|
+
[](https://www.python.org/)
|
|
18
|
+
[](https://github.com/dusktreader/typer-repyt/actions/workflows/main.yml)
|
|
19
|
+
[](https://dusktreader.github.io/typer-repyt/)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
_Tools to extended functionality for typer based CLIs_
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Super-quick Start
|
|
28
|
+
|
|
29
|
+
Requires: Python 3.12 to 3.13
|
|
30
|
+
|
|
31
|
+
Install through pip:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install typer-repyt
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
The complete documentation can be found at the
|
|
41
|
+
[typer-repyt home page](https://dusktreader.github.io/typer-repyt)
|