-
Notifications
You must be signed in to change notification settings - Fork 1
Update README with detailed instructions #6
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
Merged
Merged
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,50 @@ | ||
| # Template Python Repository | ||
|
|
||
| A minimal, conservative Python project template configured with: | ||
| This repository provides a minimal yet opinionated starting point for Python | ||
| projects. It bundles common development tools and a GitHub Actions workflow so | ||
| you can focus on writing code rather than configuring your environment. | ||
|
|
||
| ## Features | ||
|
|
||
| - **Poetry** for dependency management | ||
| - **Ruff** for linting & formatting | ||
| - **Pyright** for type-checking | ||
| - **Pytest** for testing | ||
| - **Wily** for code complexity analysis | ||
| - **GitHub Actions** for CI (lint, test, complexity check) | ||
| - **Ruff** for formatting and linting | ||
| - **Pyright** for static type checking | ||
| - **Pytest** for unit tests | ||
| - **Wily** for complexity metrics | ||
| - **GitHub Actions** for CI (lint, tests and complexity analysis) | ||
| - **Makefile** with handy developer commands | ||
|
|
||
| ## Usage | ||
| ## Getting Started | ||
|
|
||
| 1. **Replace** all occurrences of `template` with your project name. This is | ||
| primarily in `pyproject.toml` and the `template/` package directory. | ||
| 2. **Install dependencies**: | ||
|
|
||
| ```bash | ||
| poetry install | ||
| ``` | ||
| 3. **Run code checks** (formatting, linting and type checking): | ||
|
|
||
| ```bash | ||
| make check | ||
| ``` | ||
| 4. **Execute tests**: | ||
|
|
||
| ```bash | ||
| make test | ||
| ``` | ||
|
|
||
| ## Common Makefile Commands | ||
|
|
||
| - **Format code**: `make format` | ||
| - **Run linter**: `make lint` | ||
| - **Auto-fix lint issues**: `make lint-fix` | ||
| - **Type check**: `make typecheck` | ||
| - **Watch tests**: `make watch` | ||
| - **Show all commands**: `make help` | ||
|
|
||
| ## Continuous Integration | ||
|
|
||
| The included GitHub Actions workflow runs linting, type checks, unit tests and | ||
| complexity analysis for every push and pull request. | ||
|
|
||
| - **Replace** all occurrences of "`template`" (e.g., in `pyproject.toml` and the top-level `template` directory) with your project name. | ||
| - **Install dependencies**: `poetry install` | ||
| - **Run linting**: `make lint` | ||
| - **Run type checks**: `make typecheck` | ||
| - **Run tests**: `make test` | ||
| - **View additional commands**: `make help` | ||
Oops, something went wrong.
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.