Skip to content

Commit 1116e6a

Browse files
committed
feat: redo the package
1 parent f89cc6f commit 1116e6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2097
-362
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ How would users interact with this feature? If applicable, provide example code
2424

2525
```python
2626
# Example code demonstrating how the feature would be used
27-
from my_python_package import new_feature
27+
from greeting_toolkit import new_feature
2828

2929
new_feature.do_something()
3030
```

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Run tests with coverage
3636
run: |
37-
poetry run pytest --cov=my_python_package --cov-report=xml --cov-report=term
37+
poetry run pytest --cov=greeting_toolkit --cov-report=xml --cov-report=term
3838
3939
- name: Upload coverage to Codecov
4040
uses: codecov/codecov-action@v4

.github/workflows/docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
- name: Install Poetry
20+
run: |
21+
curl -sSL https://install.python-poetry.org | python3 -
22+
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Install dependencies
24+
run: |
25+
poetry install --with docs
26+
- name: Build docs
27+
run: |
28+
poetry run make -C docs html
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: docs/_build/html

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ jobs:
205205
206206
# Update the links at the bottom
207207
if grep -q "\[unreleased\]:" CHANGELOG.md; then
208-
sed -i "s|\[unreleased\]:.*|[unreleased]: https://github.com/DiogoRibeiro7/my_python_package/compare/v${{ steps.extract_version.outputs.version }}...HEAD|" CHANGELOG.md
209-
sed -i "/\[unreleased\]:/a [{{ steps.extract_version.outputs.version }}]: https://github.com/DiogoRibeiro7/my_python_package/compare/v$(git describe --tags --abbrev=0 ${{ github.ref_name }}^)...v${{ steps.extract_version.outputs.version }}" CHANGELOG.md
208+
sed -i "s|\[unreleased\]:.*|[unreleased]: https://github.com/DiogoRibeiro7/greeting-toolkit/compare/v${{ steps.extract_version.outputs.version }}...HEAD|" CHANGELOG.md
209+
sed -i "/\[unreleased\]:/a [{{ steps.extract_version.outputs.version }}]: https://github.com/DiogoRibeiro7/greeting-toolkit/compare/v$(git describe --tags --abbrev=0 ${{ github.ref_name }}^)...v${{ steps.extract_version.outputs.version }}" CHANGELOG.md
210210
fi
211211
fi
212212
fi
@@ -215,4 +215,4 @@ jobs:
215215
if: success()
216216
run: |
217217
echo "✅ Package v${{ steps.extract_version.outputs.version }} has been released to PyPI!"
218-
echo "📦 https://pypi.org/project/my-python-package/${{ steps.extract_version.outputs.version }}/"
218+
echo "📦 https://pypi.org/project/greeting-toolkit/${{ steps.extract_version.outputs.version }}/"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Run tests with coverage
3636
run: |
37-
poetry run pytest --cov=my_python_package --cov-report=xml
37+
poetry run pytest --cov=greeting_toolkit --cov-report=xml
3838
3939
- name: Upload coverage to Codecov
4040
uses: codecov/codecov-action@v4

.pre-commit-config.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
8+
exclude: ^mkdocs\.yaml$
89
- id: check-toml
910
- id: check-added-large-files
1011
- id: check-ast
@@ -15,38 +16,42 @@ repos:
1516
args: [--fix=lf]
1617

1718
- repo: https://github.com/pycqa/isort
18-
rev: 5.13.2
19+
rev: 6.0.1
1920
hooks:
2021
- id: isort
2122
args: [--profile, black, --filter-files]
2223

2324
- repo: https://github.com/psf/black
24-
rev: 24.2.0
25+
rev: 25.1.0
2526
hooks:
2627
- id: black
2728
args: [--line-length=100]
2829

2930
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.3.0
31+
rev: v0.12.9
3132
hooks:
3233
- id: ruff
3334
args: [--fix]
3435

3536
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v1.9.0
37+
rev: v1.17.1
3738
hooks:
3839
- id: mypy
39-
additional_dependencies: [types-all]
40+
files: ^src/
41+
# Use only the required typing stubs instead of the heavy types-all package.
42+
additional_dependencies:
43+
# Stub package for setuptools (includes pkg_resources types)
44+
- types-setuptools
4045

4146
- repo: https://github.com/PyCQA/bandit
42-
rev: 1.7.7
47+
rev: 1.8.6
4348
hooks:
4449
- id: bandit
4550
args: ["-c", "pyproject.toml"]
4651
exclude: "tests/"
4752

4853
- repo: https://github.com/asottile/pyupgrade
49-
rev: v3.15.1
54+
rev: v3.20.0
5055
hooks:
5156
- id: pyupgrade
5257
args: [--py310-plus]

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2727

2828
- Fixed GitHub Actions permissions for the code coverage workflow
2929

30+
### Migration
31+
32+
- Renamed package from `my_python_package` to `greeting-toolkit`. Update imports to `greeting_toolkit` and CLI usage to `greeting-toolkit`.
33+
3034
## [0.1.1] - 2025-08-14
3135

3236
### Added
@@ -48,6 +52,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4852
- Basic project structure
4953
- MIT License
5054

51-
[0.1.0]: https://github.com/DiogoRibeiro7/my_python_package/releases/tag/v0.1.0
52-
[0.1.1]: https://github.com/DiogoRibeiro7/my_python_package/compare/v0.1.0...v0.1.1
53-
[unreleased]: https://github.com/DiogoRibeiro7/my_python_package/compare/v0.1.1...HEAD
55+
[0.1.0]: https://github.com/DiogoRibeiro7/greeting-toolkit/releases/tag/v0.1.0
56+
[0.1.1]: https://github.com/DiogoRibeiro7/greeting-toolkit/compare/v0.1.0...v0.1.1
57+
[unreleased]: https://github.com/DiogoRibeiro7/greeting-toolkit/compare/v0.1.1...HEAD

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Contributing to my_python_package
1+
# Contributing to greeting-toolkit
22

3-
Thank you for considering contributing to my_python_package! This document provides guidelines and instructions for contributing.
3+
Thank you for considering contributing to greeting-toolkit! This document provides guidelines and instructions for contributing.
4+
5+
> **Migration note:** The project was renamed from `my_python_package` to `greeting-toolkit`. Update imports to `greeting_toolkit` and CLI usage to `greeting-toolkit`.
46
57
## Code of Conduct
68

@@ -43,8 +45,8 @@ For feature requests, please use the feature request template. Include:
4345

4446
1. Clone the repository:
4547
```bash
46-
git clone https://github.com/DiogoRibeiro7/my_python_package.git
47-
cd my_python_package
48+
git clone https://github.com/DiogoRibeiro7/greeting-toolkit.git
49+
cd greeting-toolkit
4850
```
4951

5052
2. Set up the development environment:

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributors
22

3-
This file lists the contributors to the `my_python_package` project.
3+
This file lists the contributors to the `greeting-toolkit` project.
44

55
## Core Contributors
66

@@ -17,7 +17,7 @@ Template for new contributors:
1717

1818
## How to Contribute
1919

20-
Thank you for considering contributing to `my_python_package`! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for details on how to contribute to this project.
20+
Thank you for considering contributing to `greeting-toolkit`! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for details on how to contribute to this project.
2121

2222
## Contributor License Agreement
2323

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ RUN poetry install
4040
ENTRYPOINT ["poetry", "run"]
4141

4242
# Default command
43-
CMD ["python", "-m", "my_python_package"]
43+
CMD ["python", "-m", "greeting_toolkit"]

0 commit comments

Comments
 (0)