Skip to content

Commit 07983a6

Browse files
committed
fix(cli): fix command script
0 parents  commit 07983a6

File tree

16 files changed

+1018
-0
lines changed

16 files changed

+1018
-0
lines changed

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
exclude-file=poetry.lock
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
______________________________________________________________________
2+
3+
name: Bug report
4+
about: Create a report to help us improve
5+
title: "[BUG]"
6+
labels: bug
7+
assignees: Tlaloc-Es
8+
9+
______________________________________________________________________
10+
11+
**Issue description**
12+
Describe the issue you are experiencing in detail.
13+
14+
**Steps to reproduce**
15+
Please provide detailed steps to reproduce the issue, including any code snippets, configuration settings, or error messages that you received.
16+
17+
**Expected behavior**
18+
Explain what you expected to happen when you encountered the issue.
19+
20+
**Actual behavior**
21+
Explain what actually happened when you encountered the issue.
22+
23+
**Environment**
24+
25+
- Python version:
26+
- Library version:
27+
- Operating system:
28+
29+
**Additional context**
30+
Provide any additional context or information that may be relevant to the issue, such as relevant documentation links, screenshots, or error logs.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
______________________________________________________________________
2+
3+
name: Feature request
4+
about: Suggest an idea for this project
5+
title: ''
6+
labels: enhancement
7+
assignees: Tlaloc-Es
8+
9+
______________________________________________________________________
10+
11+
**Feature description**
12+
Describe the feature you are requesting in detail.
13+
14+
**Use case**
15+
Explain how you envision using this feature, and how it would benefit you and/or other users.
16+
17+
**Proposed implementation**
18+
If you have ideas for how the feature could be implemented, please provide them here. This could include code samples, API designs, or anything else that would help the project maintainers understand your proposal.
19+
20+
**Alternatives considered**
21+
Have you considered any alternatives to this feature request? If so, please describe them and explain why you believe this feature is a better solution.
22+
23+
**Additional context**
24+
Provide any additional context or information that may be relevant to the feature request, such as relevant documentation links, screenshots, or examples from other projects.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
______________________________________________________________________
2+
3+
name: Question
4+
about: Ask a question
5+
title: "[QUESTION]"
6+
labels: question
7+
assignees: Tlaloc-Es
8+
9+
______________________________________________________________________
10+
11+
**Question**
12+
State your question clearly and concisely.
13+
14+
**Background**
15+
Provide some context or background information to help readers understand your question. This could include code snippets, relevant documentation links, or a brief summary of your project.
16+
17+
**What I've tried**
18+
Explain what steps you've taken so far to try to answer the question yourself. This can help others understand what you've already done and avoid suggesting solutions that you've already tried.
19+
20+
**Expected outcome**
21+
Explain what outcome you are expecting from the question. This can help others tailor their answers to your specific needs.
22+
23+
**Additional context**
24+
Provide any additional context or information that may be relevant to your question, such as relevant documentation links, screenshots, or error logs.

.github/ISSUE_TEMPLATE/task.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
______________________________________________________________________
2+
3+
name: Task
4+
about: Use this template to track general tasks, such as improving documentation or minor adjustments
5+
title: "[TASK]"
6+
labels: task
7+
assignees: Tlaloc-Es
8+
9+
______________________________________________________________________
10+
11+
**Task description**
12+
Provide a detailed description of the task to be completed. Be clear and concise about the objective.
13+
14+
**Objective**
15+
What is the expected outcome of completing this task?
16+
Example: "Complete the missing sections of the project documentation, focusing on the models module."
17+
18+
**Steps to complete**
19+
List the steps required to complete this task, if applicable.
20+
Example:
21+
22+
1. Review the current documentation structure.
23+
1. Add missing sections for the `models` module.
24+
1. Validate the documentation with `mkdocs serve`.
25+
26+
**Priority**
27+
28+
- [ ] Low
29+
- [ ] Medium
30+
- [ ] High
31+
32+
**Relevant links/files**
33+
Include any links to documentation, code, or files that might help complete this task.
34+
35+
**Additional context**
36+
Add any additional information that might be useful, such as dependencies, deadlines, or suggestions.

.github/workflows/bump-version.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Bump version
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
bump_version:
13+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
14+
runs-on: ubuntu-latest
15+
name: "Bump version and create changelog with commitizen"
16+
steps:
17+
- name: Check out
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
token: "${{ secrets.GITHUB_TOKEN }}"
22+
- id: cz
23+
name: Create bump and changelog
24+
uses: commitizen-tools/commitizen-action@master
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Print Version
28+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and publish python package
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Bump version"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
publish-service-client-package:
11+
runs-on: ubuntu-latest
12+
name: "Publish package at PyPi"
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
- name: "build"
21+
env:
22+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
23+
id: build
24+
run: |
25+
curl -sSL https://install.python-poetry.org | python3 -
26+
poetry build
27+
poetry config pypi-token.pypi "$POETRY_PYPI_TOKEN_PYPI"
28+
poetry publish

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: check-json
7+
- id: check-toml
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
11+
- repo: https://github.com/executablebooks/mdformat
12+
rev: 0.7.19
13+
hooks:
14+
- id: mdformat
15+
16+
- hooks:
17+
- id: commitizen
18+
repo: https://github.com/commitizen-tools/commitizen
19+
rev: v4.0.0
20+
21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
rev: v0.8.1
23+
hooks:
24+
- id: ruff
25+
args: [ --fix]
26+
- id: ruff-format
27+
28+
- repo: https://github.com/pre-commit/mirrors-mypy
29+
rev: "v1.13.0"
30+
hooks:
31+
- id: mypy
32+
- repo: https://github.com/codespell-project/codespell
33+
rev: v2.3.0
34+
hooks:
35+
- id: codespell
36+
args: ["@.codespellrc"]

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

0 commit comments

Comments
 (0)