Skip to content

Commit f34e8b9

Browse files
authored
refactor: rename sample project to bonacci (#310)
* refactor: rename example project to `bonaccis` Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * docs: use example metadata in `pyproject.toml` Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * style: use 4 spaces indentation in `pyproject.toml` Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> --------- Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
1 parent c6f4317 commit f34e8b9

6 files changed

Lines changed: 41 additions & 44 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,45 @@
11
[project]
2-
name = "my_fibonacci"
2+
name = "bonacci"
33
version = "0.0.0"
44
dependencies = []
55
requires-python = ">=3.10"
66
authors = [
7-
{name = "Alfi Maulana", email = "alfi.maulana.f@gmail.com"},
7+
{name = "Leonardo Bonacci", email = "leonardo@bonacci.com"},
88
]
9-
description = "A starter python module for generating a Fibonacci sequence."
9+
description = "An example Python project for generating a Fibonacci sequence"
1010
readme = "README.md"
1111
license = "Unlicense"
12-
keywords = ["python", "starter", "fibonacci"]
12+
keywords = ["example", "fibonacci"]
1313
classifiers = [
14-
"Development Status :: 1 - Planning",
15-
"Intended Audience :: Developers",
16-
"Operating System :: OS Independent",
17-
"Programming Language :: Python :: 3 :: Only",
18-
"Topic :: Software Development :: Libraries :: Python Modules",
14+
"Development Status :: 1 - Planning",
15+
"Programming Language :: Python :: 3 :: Only",
1916
]
2017

2118
[project.scripts]
22-
my_fibonacci = "my_fibonacci.__main__:main"
19+
bonacci = "bonacci.__main__:main"
2320

2421
[project.urls]
25-
repository = "https://github.com/threeal/python-starter.git"
26-
issues = "https://github.com/threeal/python-starter/issues"
22+
repository = "https://github.com/leonardo/bonacci.git"
23+
issues = "https://github.com/leonardo/bonacci/issues"
2724

2825
[build-system]
2926
requires = ["hatchling"]
3027
build-backend = "hatchling.build"
3128

3229
[dependency-groups]
3330
dev = [
34-
"lefthook>=1.11.14",
35-
"pytest>=8.4.0",
36-
"pytest-cov>=6.2.1",
37-
"ruff>=0.11.13",
31+
"lefthook>=1.11.14",
32+
"pytest>=8.4.0",
33+
"pytest-cov>=6.2.1",
34+
"ruff>=0.11.13",
3835
]
3936

4037
[tool.coverage.report]
4138
fail_under = 100
4239
omit = ["__main__.py"]
4340

4441
[tool.coverage.run]
45-
source = ["my_fibonacci"]
42+
source = ["bonacci"]
4643

4744
[tool.ruff.lint]
4845
select = ["ALL"]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
def main() -> None:
77
parser = argparse.ArgumentParser(
8-
prog="my_fibonacci",
9-
description="Generate a Fibonacci sequence up to the given number of terms.",
8+
prog="bonacci",
9+
description="Generate a Fibonacci sequence up to the given number of terms",
1010
)
11-
parser.add_argument("--version", action="version", version="0.0.0")
11+
parser.add_argument("-v", "--version", action="version", version="0.0.0")
1212
parser.add_argument("n", type=int, help="The number of terms")
1313
args = parser.parse_args()
1414

tests/test_sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from my_fibonacci import fibonacci_sequence
1+
from bonacci import fibonacci_sequence
22

33

44
def test_fibonacci_sequence() -> None:

uv.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)