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
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

### Summary
## Summary

Provide a brief summary of the issue you're encountering.

Expand All @@ -19,26 +19,26 @@ Describe the steps you took when you encountered the bug:
2. ...
3. ...

### Expected Behavior
## Expected Behavior

What did you expect to happen when you followed the steps above?

### Actual Behavior
## Actual Behavior

Describe what actually happened. Include details like error messages or unexpected outcomes.

### Technical Details
## Technical Details

Any relevant technical information. Include as much information as possible, including:

- **Operating System**:
- **Browser/Application Version**:
- **Additional relevant software versions**:

### Proposed Solutions (Optional)
## Proposed Solutions (Optional)

If you have any suggestions on how to fix this issue, please share them here.

### Screenshots
## Screenshots

Attach any screenshots that help illustrate the issue.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ assignees: ''

---

### Is your feature request related to a problem? Please describe
## Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

### Describe the solution you'd like
## Describe the solution you'd like

A clear and concise description of what you want to happen.

### Describe alternatives you've considered
## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

### Additional context
## Additional context

Add any other context or screenshots about the feature request here.
12 changes: 6 additions & 6 deletions project_template/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

### Summary
## Summary

Provide a brief summary of the issue you're encountering.

Expand All @@ -19,26 +19,26 @@ Describe the steps you took when you encountered the bug:
2. ...
3. ...

### Expected Behavior
## Expected Behavior

What did you expect to happen when you followed the steps above?

### Actual Behavior
## Actual Behavior

Describe what actually happened. Include details like error messages or unexpected outcomes.

### Technical Details
## Technical Details

Any relevant technical information. Include as much information as possible, including:

- **Operating System**:
- **Browser/Application Version**:
- **Additional relevant software versions**:

### Proposed Solutions (Optional)
## Proposed Solutions (Optional)

If you have any suggestions on how to fix this issue, please share them here.

### Screenshots
## Screenshots

Attach any screenshots that help illustrate the issue.
8 changes: 4 additions & 4 deletions project_template/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ assignees: ''

---

### Is your feature request related to a problem? Please describe
## Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

### Describe the solution you'd like
## Describe the solution you'd like

A clear and concise description of what you want to happen.

### Describe alternatives you've considered
## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

### Additional context
## Additional context

Add any other context or screenshots about the feature request here.
4 changes: 4 additions & 0 deletions project_template/Makefile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ test: ## Run the tests and check coverage.
mypy: ## Run mypy.
{{ package_manager }} run mypy {{ module_name }}

.PHONY: run
run: ## Run the python script
{{ package_manager }} run python -m {{ module_name }}

.PHONY: install
install: ## Install the dependencies excluding dev.
{% if package_manager == "poetry" -%}
Expand Down
26 changes: 26 additions & 0 deletions project_template/{{module_name}}/__main__.py.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from decimal import Decimal

from {{module_name}}.calculator import Calculator


def main() -> None:
calculator = Calculator()

total = calculator.add(Decimal("10.50"))
print(f"After add: {total}")

total = calculator.subtract(Decimal("2.25"))
print(f"After subtract: {total}")

total = calculator.multiply(Decimal("3"))
print(f"After multiply: {total}")

total = calculator.divide(Decimal("4"))
print(f"After divide: {total}")

calculator.reset_cumulative_total()
print(f"After reset: {calculator.cumulative_total}")


if __name__ == "__main__":
main()
Loading