-
Notifications
You must be signed in to change notification settings - Fork 7
Enhance cookiecutter template with stricter code quality standards #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dguido
wants to merge
19
commits into
main
Choose a base branch
from
enhance-cookiecutter-standards
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f537826
feat: enhance cookiecutter template with stricter standards
dguido c975cb8
feat: add FastAPI as preferred web framework option
dguido f6dee7f
Merge branch 'main' into enhance-cookiecutter-standards
dguido 6fa0b6a
fix: correct ty version and remove unsupported --strict flag
dguido 517395b
fix: apply ruff formatting to pre_gen_project.py
dguido 08fb765
refactor: remove data library option from cookiecutter
dguido e805061
refactor: simplify PR by removing FastAPI and consolidating config
dguido 330cbb9
fix: restore 'reformat' target as alias to fix CI
dguido 2fbd39b
fix: correct license field syntax in pyproject.toml
dguido d405f81
fix: correct ty configuration field name
dguido d481298
fix: remove ty configuration section to use defaults
dguido 2902ab9
test commit
dguido 67244e8
refactor: replace ty with pyright and improve configurations
dguido a249f00
test commit
dguido 0030cef
fix: address all code review issues
dguido d7c9bbf
Fix the PR
DarkaMaul 08e45c6
Update Makefile
DarkaMaul c335fc3
Merge
DarkaMaul 3726689
Update the pre-commit
DarkaMaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Pre-commit hooks for code quality | ||
| # See https://pre-commit.com for more information | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| # Ruff version. | ||
| rev: v0.14.8 | ||
| hooks: | ||
| # Run the linter. | ||
| - id: ruff-check | ||
| args: [--fix] | ||
| # Run the formatter. | ||
| - id: ruff-format | ||
DarkaMaul marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - repo: local | ||
| hooks: | ||
| - id: pyright | ||
| name: pyright type check | ||
| entry: uv run pyright | ||
| language: system | ||
| types: [python] | ||
| pass_filenames: false | ||
| require_serial: true | ||
|
|
||
| {%- if cookiecutter.docstring_coverage %} | ||
| - id: interrogate | ||
| name: interrogate docstring coverage | ||
| entry: uv run interrogate -c pyproject.toml | ||
| language: system | ||
| types: [python] | ||
| pass_filenames: false | ||
| {%- endif %} | ||
|
|
||
| - id: pytest | ||
| name: pytest | ||
| entry: uv run pytest | ||
| language: system | ||
| types: [python] | ||
| pass_filenames: false | ||
| require_serial: true | ||
| # Only run on pre-commit, not on push | ||
| stages: [pre-commit] | ||
DarkaMaul marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Configuration | ||
| ci: | ||
| autofix_prs: true | ||
| autoupdate_schedule: weekly | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.