-
Notifications
You must be signed in to change notification settings - Fork 0
Add repository governance and contribution standards #1
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
CameronImmesoete
merged 2 commits into
main
from
user/CameronImmesoete/add-repo-governance
Apr 26, 2026
Merged
Changes from all commits
Commits
Show all changes
2 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * @CameronImmesoete | ||
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,13 @@ | ||
| # Copilot Instructions | ||
|
|
||
| > Base instructions: [CameronImmesoete/.github/.github/copilot-instructions.md@1f79bfb](https://github.com/CameronImmesoete/.github/blob/1f79bfb3e9eee277d05ecdd3332220204cb0f38b/.github/copilot-instructions.md) | ||
|
|
||
| ## Repository-Specific Guidelines | ||
|
|
||
| This is a Pascal's triangle generator in Python. | ||
|
|
||
| - Algorithmic correctness is the priority (binomial coefficient math) | ||
| - Handle edge cases: row 0, negative inputs, very large row numbers | ||
| - Integer overflow considerations for large rows | ||
| - Output formatting should be consistent and readable | ||
| - This is a single-file project; keep it simple and self-contained |
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,17 @@ | ||
| # Code Review Standards | ||
|
|
||
| > Base review standards: [CameronImmesoete/.github/.github/copilot-review-skill.md@1f79bfb](https://github.com/CameronImmesoete/.github/blob/1f79bfb3e9eee277d05ecdd3332220204cb0f38b/.github/copilot-review-skill.md) | ||
|
|
||
| ## Repository-Specific Review Criteria | ||
|
|
||
| ### Algorithm Correctness | ||
| - Pascal's triangle values match binomial coefficients | ||
| - Each row sum equals 2^n | ||
| - Symmetry property: C(n,k) = C(n,n-k) | ||
| - Edge values are always 1 | ||
|
|
||
| ### Edge Cases | ||
| - Row 0 returns [1] | ||
| - Negative row numbers rejected with clear error | ||
| - Large row numbers: integer overflow handling | ||
| - Input validation (non-negative integers only) |
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,6 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v4 | ||
|
|
||
| - name: Lint | ||
| run: uvx ruff check . | ||
|
|
||
| - name: Format check | ||
| run: uvx ruff format --check . | ||
|
|
||
| - name: Syntax check | ||
| run: python -c "import py_compile; py_compile.compile('pascal.py', doraise=True)" |
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,43 @@ | ||
| # Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.egg-info/ | ||
| dist/ | ||
| build/ | ||
| *.egg | ||
| .eggs/ | ||
| *.whl | ||
|
|
||
| # Virtual environments | ||
| .venv/ | ||
| venv/ | ||
| ENV/ | ||
|
|
||
| # IDE | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
| .project | ||
| .settings/ | ||
|
|
||
| # OS | ||
| .DS_Store | ||
| Thumbs.db | ||
| Desktop.ini | ||
|
|
||
| # Testing / Coverage | ||
| .pytest_cache/ | ||
| .mypy_cache/ | ||
| .ruff_cache/ | ||
| htmlcov/ | ||
| .coverage | ||
| coverage.xml | ||
|
|
||
| # Secrets | ||
| .env | ||
| .env.* | ||
| *.pem | ||
| *.key |
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,31 @@ | ||
| # Agent Guidelines | ||
|
|
||
| ## PR Rules | ||
| - One PR per branch. One branch per task. | ||
| - Never close a PR to open a replacement. Fix in place. | ||
| - Never push directly to main. | ||
| - Squash merge only. | ||
| - Branches auto-delete after merge. | ||
| - Branch naming: `user/CameronImmesoete/<description>` | ||
|
|
||
| ## CI Requirements | ||
| - All CI checks must pass before merge. | ||
| - No `[skip ci]` commits unless pure documentation. | ||
| - If CI is red on main, fix it before other work. | ||
|
|
||
| ## Security | ||
| - Never commit secrets, API keys, tokens, or credentials. | ||
| - Never add dependencies without justification. | ||
| - Never force push to main. | ||
| - Run tests before pushing. | ||
|
|
||
| ## Code Quality | ||
| - Tests required for all new functions. | ||
| - Lint must pass (ruff for Python, eslint for TypeScript). | ||
| - Type checks must pass (mypy for Python, tsc for TypeScript). | ||
| - Prefer simple, readable code over clever abstractions. | ||
|
|
||
| ## Shared Workflows | ||
| - Python repos can use the reusable CI workflow: `uses: CameronImmesoete/.github/.github/workflows/python-ci.yml@main` | ||
| - Note: The doubled `.github` is intentional. The first is the repo name (`CameronImmesoete/.github`), the second is the workflows directory within it (`.github/workflows/`). | ||
| - **Pinning policy:** `@main` is temporary during initial setup. Once the shared workflow repo has a stable first release, all callers must pin to a tagged release or specific commit SHA (e.g., `@v1.0.0` or `@abc1234`). Never use `@main` in production workflows. Update callers when the shared workflow changes by bumping the pinned reference. |
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,9 @@ | ||
| # Contributing | ||
|
|
||
| Solo project maintained by [Cam Immesoete](https://github.com/CameronImmesoete). External contributions are not accepted at this time. | ||
|
|
||
| ## Standards | ||
|
|
||
| - All changes go through pull requests (no direct pushes to main) | ||
| - Clean, descriptive commit messages | ||
| - No secrets, credentials, or API keys in code |
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,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2024 Cam Immesoete | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
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,8 @@ | ||
| # Ruff configuration for Pascal repo | ||
| # Preserve existing code style | ||
|
|
||
| indent-width = 2 | ||
|
|
||
| [lint] | ||
| # Ignore naming convention rules (PascalCase function names are intentional) | ||
| ignore = ["N802", "N803"] |
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.