-
Notifications
You must be signed in to change notification settings - Fork 0
docs(docs): add initial docs baseline #43
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
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
File renamed without changes.
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
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 @@ | ||
| # AI IDE Support | ||
|
|
||
| The AI-Native Python template includes configuration files to work seamlessly with AI-powered development tools. | ||
|
|
||
| [← Back to Documentation Index](index.md) | ||
|
|
||
|
|
||
| ## Tool-agnostic configurations | ||
|
|
||
| ### .mcp.json | ||
|
|
||
| Model Context Protocol configuration pre-set to integrate with: | ||
|
|
||
| - [Zenable](https://zenable.io)'s MCP server | ||
| - [Context7](https://context7.com/)'s MCP server | ||
|
|
||
| ## Specific IDE configurations | ||
|
|
||
| ### Claude Code | ||
|
|
||
| Every generated project includes a `CLAUDE.md` file with: | ||
|
|
||
| - Project-specific context and guidelines | ||
| - Technology stack information | ||
| - Code style rules and patterns | ||
| - Common tasks and workflows | ||
|
|
||
| ### GitHub Copilot Configuration | ||
|
|
||
| The template includes `.github/copilot-instructions.md` with: | ||
|
|
||
| - Project-specific context for GitHub Copilot | ||
| - Code conventions and patterns | ||
| - Testing requirements and workflow | ||
| - Security considerations | ||
| - Common code patterns and examples | ||
| - Task automation commands | ||
|
|
||
| ### Cursor IDE Configuration | ||
|
|
||
| The template includes `.cursor/rules/` directory with: | ||
|
|
||
| - `project.mdc`: Always-active rules with project info, tech stack, and key commands | ||
| - `testing.mdc`: Auto-attached rules for test files with testing guidelines and patterns | ||
|
|
||
| For more details on testing configuration and practices, see the [Testing Guide](testing.md). |
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 @@ | ||
| # CI/CD Workflows | ||
|
|
||
| The AI-Native Python template includes GitHub Actions workflows for automated testing, security scanning, and release management. | ||
|
|
||
| [← Back to Documentation Index](index.md) | ||
|
|
||
| ## Included Workflows | ||
|
|
||
| ### CI Pipeline (`.github/workflows/ci.yml`) | ||
|
|
||
| Runs on every push and pull request: | ||
|
|
||
| 1. **Linting** - Python (Ruff), YAML/JSON, shell scripts, GitHub Actions | ||
| 2. **Testing** - Unit and integration tests with >80% coverage requirement, as well as docker builds on each supported platform | ||
| 3. **Security** - Vulnerability scanning (Grype), SBOM generation (Syft), secret detection | ||
|
|
||
| ### Release Pipeline (`.github/workflows/release.yml`) | ||
|
|
||
| Automates semantic versioning and publishing: | ||
|
|
||
| 1. Analyzes commit messages to determine version bump | ||
| 2. Updates version in `pyproject.toml` | ||
| 3. Generates changelog | ||
| 4. Creates GitHub release | ||
| 5. Pushes Docker images to Docker Hub (if enabled) | ||
|
|
||
| ### PR Validation (`.github/workflows/pr.yml`) | ||
|
|
||
| Ensures pull request quality: | ||
|
|
||
| - Validates PR title follows conventional commit format | ||
| - Checks all commit messages | ||
| - Look for deprecations or warnings and adds them to the finalizer | ||
|
|
||
| ## Configuration | ||
|
|
||
| For GitHub Actions configuration and required secrets, see the [Configuration Guide](configuration.md#post-generation-configuration). | ||
|
|
||
| ### Dependency Updates | ||
|
|
||
| The generated project includes multiple dependency update mechanisms. See the [Configuration Guide](configuration.md#post-generation-configuration) for details | ||
| on customizing these tools. | ||
|
|
||
| ## Customization | ||
|
|
||
| Add new workflows in `.github/workflows/` for specific needs like deployment or scheduled tasks. |
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,81 @@ | ||
| # Configuration Guide | ||
|
|
||
| This guide covers the configuration options available in the AI-Native Python cookiecutter template. | ||
|
|
||
| [← Back to Documentation Index](index.md) | ||
|
|
||
| ## Cookiecutter Variables | ||
|
|
||
| When generating a new project, you'll be prompted for the following configuration options: | ||
|
|
||
| ### Basic Project Information | ||
|
|
||
| | Variable | Description | Default | Example | | ||
| | --------------------------- | -------------------------------- | -------------- | --------------------------- | | ||
| | `project_name` | Human-readable project name | (required) | "My Awesome Project" | | ||
| | `project_slug` | Python package name (snake_case) | Auto-generated | "my_awesome_project" | | ||
| | `project_short_description` | Brief project description | (required) | "A tool for awesome things" | | ||
|
|
||
| ### Organization Details | ||
|
|
||
| | Variable | Description | Default | Example | | ||
| | ------------------------------- | ------------------------------- | ---------- | ----------- | | ||
| | `company_name` | Your organization's name | (required) | "Acme Corp" | | ||
| | `company_domain` | Your organization's domain | (required) | "acme.com" | | ||
| | `github_org` | GitHub organization or username | (required) | "acme-corp" | | ||
| | `project_owner_github_username` | Project owner's GitHub username | (required) | "johndoe" | | ||
|
|
||
| ### Technical Options | ||
|
|
||
| | Variable | Description | Default | Options | | ||
| | ---------------- | ---------------------------- | ------- | ----------------------------- | | ||
| | `python_version` | Minimum Python version | "3.13" | "3.11", "3.12", "3.13" | | ||
| | `dockerhub` | Enable Docker Hub publishing | "no" | "yes", "no" | | ||
| | `public` | Make repository public | "yes" | "yes", "no" | | ||
| | `license` | Project license | "NONE" | "NONE", "MIT", "BSD-3-Clause" | | ||
|
|
||
| ## Post-Generation Configuration | ||
|
|
||
| After your project is generated, you are able to make any changes you'd like. Here are some common modifications: | ||
|
|
||
| ### Environment Variables | ||
|
|
||
| Create or modify the `.envrc` file in your project root: | ||
|
|
||
| ```bash | ||
| # API Keys | ||
| export ZENABLE_API_KEY="your-api-key-here" | ||
|
|
||
| # Development settings | ||
| export PYTHONPATH="${PWD}/src:${PYTHONPATH}" | ||
| export UV_PYTHON_PREFERENCE="only-system" | ||
| ``` | ||
|
|
||
| ### Task Configuration | ||
|
|
||
| The `Taskfile.yml` in your project defines common development tasks. You can customize anything you'd like, such as: | ||
|
|
||
| - Python versions | ||
| - Linting and cleanup tasks | ||
| - Build configurations | ||
|
|
||
| Example task customization: | ||
|
|
||
| ```yaml | ||
| vars: | ||
| IMAGE_NAME: "abc123" # Change the name of the docker image | ||
| PYTHON_VERSION: "3.13" # Change default Python version | ||
| ``` | ||
|
|
||
| ### Pre-commit Hooks | ||
|
|
||
| For detailed information about pre-commit hooks configuration and available hooks, see the [Hooks Guide](hooks.md#pre-commit-hooks). | ||
|
|
||
| #### Docker Hub Secrets | ||
|
|
||
| If you enabled Docker Hub publishing: | ||
|
|
||
| - `DOCKERHUB_USERNAME` | ||
| - `DOCKERHUB_PAT` | ||
|
|
||
| A reminder to set this is also printed after project generation if you answered "yes" to the docker hub question. | ||
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
Oops, something went wrong.
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.