File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ include = ["src"]
4646
4747[tool .ruff .lint ]
4848select = [" ALL" ]
49- ignore = [" COM812" , " D " ]
49+ ignore = [" COM812" , " D203 " , " D213 " ]
5050
5151[tool .ruff .lint .per-file-ignores ]
52- "tests/*" = [" S101" ]
52+ "tests/*" = [" S101" , " D " ]
Original file line number Diff line number Diff line change 1+ """Example Python package for generating Fibonacci sequences."""
2+
13from .sequence import fibonacci_sequence
24
35__all__ = ["fibonacci_sequence" ]
Original file line number Diff line number Diff line change 1+ """Example main module for the CLI application."""
2+
13import argparse
24import sys
35
46from . import fibonacci_sequence
57
68
79def main () -> None :
10+ """Generate and print a Fibonacci sequence based on command line arguments."""
811 parser = argparse .ArgumentParser (
912 prog = "bonacci" ,
1013 description = "Generate a Fibonacci sequence up to the given number of terms" ,
Original file line number Diff line number Diff line change 1+ """Example functions for generating Fibonacci sequences."""
2+
3+
14def fibonacci_sequence (n : int ) -> list [int ]:
25 """Generate a Fibonacci sequence up to the given number of terms."""
36 if n <= 0 :
You can’t perform that action at this time.
0 commit comments