Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,45 @@
[project]
name = "my_fibonacci"
name = "bonacci"
version = "0.0.0"
dependencies = []
requires-python = ">=3.10"
authors = [
{name = "Alfi Maulana", email = "alfi.maulana.f@gmail.com"},
{name = "Leonardo Bonacci", email = "leonardo@bonacci.com"},
]
description = "A starter python module for generating a Fibonacci sequence."
description = "An example Python project for generating a Fibonacci sequence"
readme = "README.md"
license = "Unlicense"
keywords = ["python", "starter", "fibonacci"]
keywords = ["example", "fibonacci"]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 1 - Planning",
"Programming Language :: Python :: 3 :: Only",
]

[project.scripts]
my_fibonacci = "my_fibonacci.__main__:main"
bonacci = "bonacci.__main__:main"

[project.urls]
repository = "https://github.com/threeal/python-starter.git"
issues = "https://github.com/threeal/python-starter/issues"
repository = "https://github.com/leonardo/bonacci.git"
issues = "https://github.com/leonardo/bonacci/issues"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
"lefthook>=1.11.14",
"pytest>=8.4.0",
"pytest-cov>=6.2.1",
"ruff>=0.11.13",
"lefthook>=1.11.14",
"pytest>=8.4.0",
"pytest-cov>=6.2.1",
"ruff>=0.11.13",
]

[tool.coverage.report]
fail_under = 100
omit = ["__main__.py"]

[tool.coverage.run]
source = ["my_fibonacci"]
source = ["bonacci"]

[tool.ruff.lint]
select = ["ALL"]
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/my_fibonacci/__main__.py → src/bonacci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

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

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_sequence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from my_fibonacci import fibonacci_sequence
from bonacci import fibonacci_sequence


def test_fibonacci_sequence() -> None:
Expand Down
46 changes: 23 additions & 23 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.