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
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* text=auto eol=lf
*.png binary
*.ico binary

# Written by tools, not by hand. GitHub collapses these in pull request diffs
# and leaves them out of language stats.
uv.lock linguist-generated=true
website/package-lock.json linguist-generated=true
.secrets.baseline linguist-generated=true
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Documentation problem
description: Missing, unclear or incorrect documentation, or a command's help text.
title: "docs: "
labels: [documentation]
body:
- type: markdown
attributes:
value: |
For a question about using kdev, ask in [Q&A](https://github.com/tushar-mahalya/kdev/discussions/categories/q-a) instead.
- type: input
id: location
attributes:
label: Where
description: The URL or path of the page or section, or the command whose `--help` is wrong.
placeholder: "https://kdev-cli.pages.dev/docs/troubleshooting/ or kdev forward --help"
validations:
required: true
- type: dropdown
id: kind
attributes:
label: What kind of problem
options:
- Incorrect or out of date
- Missing
- Unclear or hard to follow
- Broken link or anchor
- Other
validations:
required: true
- type: textarea
id: problem
attributes:
label: What is wrong or missing
validations:
required: true
- type: textarea
id: suggestion
attributes:
label: What it should say
description: Optional. Proposed wording.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
# Version updates are grouped per ecosystem and wait 7 days after a release
# (cooldown), so a bad release is usually yanked before we are offered it.
# Security updates are not delayed.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
actions:
patterns: ["*"]
- package-ecosystem: uv
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
python:
patterns: ["*"]
- package-ecosystem: npm
directory: /website
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
website:
patterns: ["*"]
88 changes: 88 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Pull request labels for actions/labeler (.github/workflows/labeler.yml).
# Area labels follow changed paths. Type labels follow the head branch prefix
# (feat/, fix/, docs/) described in CONTRIBUTING.md. Labels are defined in .github/labels.yml.

"area: cli":
- changed-files:
- any-glob-to-any-file:
- src/kdev/cli.py
- src/kdev/__main__.py
- src/kdev/commands/**
- src/kdev/errors.py
- src/kdev/menu.py
- src/kdev/ui.py
- src/kdev/wizard.py

"area: box":
- changed-files:
- any-glob-to-any-file:
- src/kdev/bootstrap.py
- src/kdev/kdev_box.py
- src/kdev/notebook.py
- src/kdev/persistence.py
- src/kdev/quota.py
- src/kdev/safety.py
- src/kdev/session.py

"area: tunnel":
- changed-files:
- any-glob-to-any-file:
- src/kdev/cloudflared.py
- src/kdev/sshcfg.py
- src/kdev/tunnel.py

"area: kaggle":
- changed-files:
- any-glob-to-any-file:
- src/kdev/api.py
- src/kdev/auth.py
- src/kdev/config.py

"area: tests":
- changed-files:
- any-glob-to-any-file:
- tests/**

"area: docs":
- changed-files:
- any-glob-to-any-file:
- docs/**
- CITATION.cff
- all-globs-to-any-file: ["*.md", "!CHANGELOG.md"]

"area: website":
- changed-files:
- any-glob-to-any-file:
- website/**
- .github/workflows/website.yml

"area: ci":
- changed-files:
- any-glob-to-any-file:
- .github/**
- .pre-commit-config.yaml
- .coderabbit.yaml
- .gitignore
- _typos.toml
- .editorconfig
- .gitattributes

"area: deps":
- changed-files:
- any-glob-to-any-file:
- pyproject.toml
- uv.lock
- website/package.json
- website/package-lock.json

enhancement:
- head-branch: ["^feat/"]

bug:
- head-branch: ["^fix/"]

documentation:
- head-branch: ["^docs/"]

dependencies:
- head-branch: ["^dependabot/", "^deps/"]
85 changes: 85 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Repository labels as code. .github/workflows/sync-labels.yml applies this file on main.
# Labels missing from this file are kept (skip-delete), so remove a label here and in the UI.
# Rename a label with `from_name` to keep it on existing issues and pull requests.

# Type
- name: bug
color: "d73a4a"
description: Something isn't working
- name: enhancement
color: "a2eeef"
description: New feature or request
- name: documentation
color: "0075ca"
description: Improvements or additions to documentation
- name: dependencies
color: "0366d6"
description: Pull requests that update a dependency file
- name: performance
color: "5319e7"
description: Makes kdev or the box faster
- name: quota
color: "fbca04"
description: Saves Kaggle GPU/TPU quota or session time
- name: breaking-change
color: "b60205"
description: Changes behavior or configuration in a way users must act on
- name: security
color: "ee0701"
description: Hardening or a fix for a security weakness
- name: accessibility
color: "f143ab"
description: Barrier affecting people with disabilities

# Area (applied to pull requests by .github/labeler.yml)
- name: "area: cli"
color: "c5def5"
description: Commands, prompts and the terminal UI
- name: "area: box"
color: "c5def5"
description: Starting, stopping and restoring the box, quota, and kdev_box.py
- name: "area: tunnel"
color: "c5def5"
description: Cloudflare tunnel, SSH config and port forwarding
- name: "area: kaggle"
color: "c5def5"
description: Kaggle API client, accounts and settings
- name: "area: tests"
color: "c5def5"
description: Test suite
- name: "area: docs"
color: "c5def5"
description: README, architecture notes and community files
- name: "area: website"
color: "c5def5"
description: Project website and its docs pages
- name: "area: ci"
from_name: ci
color: "c5def5"
description: Workflows, hooks and release packaging
- name: "area: deps"
color: "c5def5"
description: Dependency manifests and lockfiles

# Triage and status
- name: question
color: "d876e3"
description: Further information is requested
- name: good first issue
color: "7057ff"
description: Good for newcomers
- name: help wanted
color: "008672"
description: Extra attention is needed
- name: duplicate
color: "cfd3d7"
description: This issue or pull request already exists
- name: invalid
color: "e4e669"
description: This doesn't seem right
- name: wontfix
color: "ffffff"
description: This will not be worked on
- name: ignore-for-release
color: "ededed"
description: Leave out of generated release notes
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
- [ ] `uv run pytest` and `uv run pre-commit run --all-files` pass locally
- [ ] What users will notice is under `## [Unreleased]` in `CHANGELOG.md`
- [ ] The README is updated if a command or its behaviour changed
- [ ] Any AI-generated code has been reviewed line by line by me, and I can explain it

AI tools used (if any):
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Categories for GitHub's generated release notes ("Generate release notes" and
# `gh release create --generate-notes`). Pull requests are sorted into the first match.
# The release workflow itself uses the CHANGELOG.md section as the notes.
changelog:
exclude:
labels: [ignore-for-release, duplicate, invalid, wontfix]
categories:
- title: Breaking changes
labels: [breaking-change]
- title: Features
labels: [enhancement]
- title: Fixes
labels: [bug, security]
- title: Performance
labels: [performance]
- title: Documentation
labels: [documentation]
- title: Dependencies
labels: [dependencies]
- title: Other changes
labels: ["*"]
13 changes: 13 additions & 0 deletions .github/rulesets/main-integrity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "main-integrity",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] }
},
"bypass_actors": [],
"rules": [
{ "type": "deletion" },
{ "type": "non_fast_forward" }
]
}
38 changes: 38 additions & 0 deletions .github/rulesets/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "main",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] }
},
"bypass_actors": [
{ "actor_id": 5, "actor_type": "RepositoryRole", "bypass_mode": "pull_request" },
{ "actor_id": 78840863, "actor_type": "User", "bypass_mode": "always" }
],
"rules": [
{ "type": "required_linear_history" },
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 1,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": true,
"require_last_push_approval": true,
"required_review_thread_resolution": true,
"require_extra_approval_for_unattributed_changes": true,
"allowed_merge_methods": ["squash"]
}
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": [
{ "context": "CI passed", "integration_id": 15368 },
{ "context": "license/cla", "integration_id": 128106 }
]
}
}
]
}
16 changes: 16 additions & 0 deletions .github/rulesets/release-tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "release tags",
"target": "tag",
"enforcement": "active",
"conditions": {
"ref_name": { "include": ["refs/tags/v*"], "exclude": [] }
},
"bypass_actors": [
{ "actor_id": 5, "actor_type": "RepositoryRole", "bypass_mode": "always" }
],
"rules": [
{ "type": "creation" },
{ "type": "update" },
{ "type": "deletion" }
]
}
Loading
Loading