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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/tushar-mahalya/kdev/discussions/categories/q-a
url: https://github.com/kdev-cli/kdev/discussions/categories/q-a
about: How do I…? Is this expected? Ask in Discussions.
- name: Report a security vulnerability
url: https://github.com/tushar-mahalya/kdev/security/advisories/new
url: https://github.com/kdev-cli/kdev/security/advisories/new
about: Privately, please, never in a public issue.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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.
For a question about using kdev, ask in [Q&A](https://github.com/kdev-cli/kdev/discussions/categories/q-a) instead.
- type: input
id: location
attributes:
Expand Down
36 changes: 29 additions & 7 deletions .github/rulesets/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,29 @@
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] }
"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" }
{
"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": "required_linear_history"
},
{
"type": "pull_request",
"parameters": {
Expand All @@ -20,7 +35,9 @@
"require_last_push_approval": true,
"required_review_thread_resolution": true,
"require_extra_approval_for_unattributed_changes": true,
"allowed_merge_methods": ["squash"]
"allowed_merge_methods": [
"squash"
]
}
},
{
Expand All @@ -29,8 +46,13 @@
"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 }
{
"context": "CI passed",
"integration_id": 15368
},
{
"context": "license/cla"
}
]
}
}
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,19 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0
- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0
# The gitleaks CLI, not gitleaks-action, which needs a licence key in a
# repository owned by an organization. Bump the version and checksum
# together; the checksum is in the release's checksums file.
- name: gitleaks over every commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_VERSION: 8.30.1
GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb # pragma: allowlist secret
run: |
tarball="$RUNNER_TEMP/gitleaks.tar.gz"
curl -fsSL -o "$tarball" "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
echo "${GITLEAKS_SHA256} ${tarball}" | sha256sum -c -
tar -xzf "$tarball" -C "$RUNNER_TEMP" gitleaks
"$RUNNER_TEMP/gitleaks" git --redact --no-banner --verbose .

# One check for branch protection to require: the job names above change with
# the test matrix, this one does not.
Expand Down
3 changes: 3 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Verified false positives: the fingerprint of each gitleaks finding that is not a secret.
# A placeholder <token> and a public Kaggle session number in a test docstring.
b479b6ed833d1ca78ef35beed525360ad0c7545a:tests/test_bootstrap.py:generic-api-key:223
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ All notable changes are recorded here. The format follows
## [Unreleased]

### Changed
- The repository moved to the kdev-cli organization: it is now
<https://github.com/kdev-cli/kdev>. Old links, clones and
`uv tool install git+https://github.com/tushar-mahalya/kdev` redirect.
- The minimum versions of two dependencies are now the ones kdev works with:
typer 0.27.2 (0.27.0 and 0.27.1 crash when a command fails) and questionary 2.1
(2.0 fails on every numbered list prompt). CI now runs the tests against the
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors:
- given-names: Tushar
family-names: Sharma
alias: tushar-mahalya
repository-code: https://github.com/tushar-mahalya/kdev
repository-code: https://github.com/kdev-cli/kdev
url: https://kdev-cli.pages.dev
license: MIT
keywords:
Expand Down
2 changes: 1 addition & 1 deletion CLA.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>
> You sign it once, by following the link that the CLA Assistant bot posts on
> your first pull request. It does not change the project's
> [MIT License](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE).
> [MIT License](https://github.com/kdev-cli/kdev/blob/main/LICENSE).

Thank you for your interest in kdev (the "Project"), maintained by
Tushar Sharma (GitHub: [tushar-mahalya](https://github.com/tushar-mahalya))
Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ in [SUPPORT.md](SUPPORT.md).

## Ways to help

- **Ask a question** in [Discussions](https://github.com/tushar-mahalya/kdev/discussions):
- **Ask a question** in [Discussions](https://github.com/kdev-cli/kdev/discussions):
how to do something, or whether what you see is expected.
- **Report a bug.** Open an issue with what you ran, what you expected and
what happened. The output of the same command with `-v` (`kdev -v up …`)
helps most. It logs every Kaggle API call; check it for anything you would
rather not share before you paste it.
- **Fix something.** Issues labelled
[`good first issue`](https://github.com/tushar-mahalya/kdev/labels/good%20first%20issue)
are small and well described; [`help wanted`](https://github.com/tushar-mahalya/kdev/labels/help%20wanted)
[`good first issue`](https://github.com/kdev-cli/kdev/labels/good%20first%20issue)
are small and well described; [`help wanted`](https://github.com/kdev-cli/kdev/labels/help%20wanted)
ones are bigger. Say in the issue that you are on it, so two people don't
fix the same thing.
- **Improve the docs.** If something was unclear when you set up, it will
Expand All @@ -38,7 +38,7 @@ in [SUPPORT.md](SUPPORT.md).
You need Python 3.11+ and [uv](https://docs.astral.sh/uv/).

```bash
git clone https://github.com/tushar-mahalya/kdev && cd kdev
git clone https://github.com/kdev-cli/kdev && cd kdev
uv sync
uv run pre-commit install # hooks on commit and commit message, tests on push
uv run basedpyright # basic-mode type check, also on every commit
Expand Down Expand Up @@ -191,12 +191,12 @@ not required checks.

The files are not applied by themselves. A maintainer applies a changed one
with the GitHub CLI, `POST` for a ruleset that does not exist yet and `PUT`
with its ID to update one (`gh api repos/tushar-mahalya/kdev/rulesets` lists
with its ID to update one (`gh api repos/kdev-cli/kdev/rulesets` lists
the IDs):

```bash
gh api repos/tushar-mahalya/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json
gh api repos/tushar-mahalya/kdev/rulesets/<id> --method PUT --input .github/rulesets/main.json
gh api repos/kdev-cli/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json
gh api repos/kdev-cli/kdev/rulesets/<id> --method PUT --input .github/rulesets/main.json
```

## Releasing
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://raw.githubusercontent.com/tushar-mahalya/kdev/main/docs/assets/kdev-logo.png" alt="kdev" width="520">
<img src="https://raw.githubusercontent.com/kdev-cli/kdev/main/docs/assets/kdev-logo.png" alt="kdev" width="520">
</p>

<p align="center">
Expand All @@ -9,22 +9,22 @@
</p>

<p align="center">
<a href="https://github.com/tushar-mahalya/kdev/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/tushar-mahalya/kdev/actions/workflows/ci.yml/badge.svg"></a>
<a href="https://github.com/kdev-cli/kdev/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/kdev-cli/kdev/actions/workflows/ci.yml/badge.svg"></a>
<a href="https://pypi.org/project/kdev-cli/"><img alt="PyPI" src="https://img.shields.io/pypi/v/kdev-cli?logo=pypi&logoColor=white&color=00b8d4"></a>
<a href="https://pypi.org/project/kdev-cli/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/kdev-cli?logo=python&logoColor=white&color=3776AB"></a>
<a href="https://github.com/tushar-mahalya/kdev/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/tushar-mahalya/kdev?label=release&logo=github&color=2ea44f"></a>
<a href="https://github.com/tushar-mahalya/kdev/blob/main/LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-2ea44f"></a>
<a href="https://scorecard.dev/viewer/?uri=github.com/tushar-mahalya/kdev"><img alt="OpenSSF Scorecard" src="https://api.scorecard.dev/projects/github.com/tushar-mahalya/kdev/badge"></a>
<a href="https://github.com/kdev-cli/kdev/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/kdev-cli/kdev?label=release&logo=github&color=2ea44f"></a>
<a href="https://github.com/kdev-cli/kdev/blob/main/LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-2ea44f"></a>
<a href="https://scorecard.dev/viewer/?uri=github.com/kdev-cli/kdev"><img alt="OpenSSF Scorecard" src="https://api.scorecard.dev/projects/github.com/kdev-cli/kdev/badge"></a>
<a href="https://kdev-cli.pages.dev"><img alt="Website" src="https://img.shields.io/badge/website-kdev--cli.pages.dev-00b8d4"></a>
<a href="https://github.com/tushar-mahalya/kdev/blob/main/CONTRIBUTING.md"><img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-00b8d4"></a>
<a href="https://github.com/kdev-cli/kdev/blob/main/CONTRIBUTING.md"><img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-00b8d4"></a>
</p>

<p align="center">
<a href="https://kdev-cli.pages.dev"><b>Website</b></a> ·
<a href="https://kdev-cli.pages.dev/docs/">Docs</a> ·
<a href="https://kdev-cli.pages.dev/docs/how-it-works/">How it works</a> ·
<a href="https://kdev-cli.pages.dev/docs/commands/">Commands</a> ·
<a href="https://github.com/tushar-mahalya/kdev/blob/main/CHANGELOG.md">Changelog</a>
<a href="https://github.com/kdev-cli/kdev/blob/main/CHANGELOG.md">Changelog</a>
</p>

## Why kdev
Expand Down Expand Up @@ -135,15 +135,15 @@ Most messages name the command that fixes them. Common ones are listed in
- [How it works](https://kdev-cli.pages.dev/docs/how-it-works/): the architecture, what `kdev up` does, how files persist, with diagrams
- [Your files](https://kdev-cli.pages.dev/docs/files/) and [Several accounts, several machines](https://kdev-cli.pages.dev/docs/accounts/)
- [Security and limits](https://kdev-cli.pages.dev/docs/security/)
- [Architecture for contributors](https://github.com/tushar-mahalya/kdev/blob/main/docs/ARCHITECTURE.md), including how the code is laid out
- [Architecture for contributors](https://github.com/kdev-cli/kdev/blob/main/docs/ARCHITECTURE.md), including how the code is laid out

## Contributing

Bug reports, fixes, docs and features are welcome. For anything bigger than a
fix, open an issue first. Questions go to
[Discussions](https://github.com/tushar-mahalya/kdev/discussions). How to set
[Discussions](https://github.com/kdev-cli/kdev/discussions). How to set
up, test without spending GPU quota, and send a pull request:
[CONTRIBUTING.md](https://github.com/tushar-mahalya/kdev/blob/main/CONTRIBUTING.md).
[CONTRIBUTING.md](https://github.com/kdev-cli/kdev/blob/main/CONTRIBUTING.md).

## Security

Expand All @@ -153,10 +153,10 @@ with Can Edit. Kaggle allows one account per person and restricts tunnelling
out of notebooks; know the rules you are working under. Details are in
[Security and limits](https://kdev-cli.pages.dev/docs/security/). Report a
vulnerability privately, as
[SECURITY.md](https://github.com/tushar-mahalya/kdev/blob/main/SECURITY.md)
[SECURITY.md](https://github.com/kdev-cli/kdev/blob/main/SECURITY.md)
describes.

## License

[MIT](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE). kdev is an
[MIT](https://github.com/kdev-cli/kdev/blob/main/LICENSE). kdev is an
independent project, not affiliated with Kaggle, Google or Cloudflare.
9 changes: 6 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Security fixes go into the latest release only. Upgrade with
## Reporting a vulnerability

Please report it **privately** through GitHub's private vulnerability reporting:
**<https://github.com/tushar-mahalya/kdev/security/advisories/new>**. Don't open
**<https://github.com/kdev-cli/kdev/security/advisories/new>**. Don't open
a public issue, discussion or pull request for it.

Tell us, as far as you can:
Expand All @@ -40,12 +40,15 @@ Sigstore-signed build provenance for its wheel and sdist. To check that a file
was built from this repository by its release workflow:

```bash
gh attestation verify kdev_cli-0.2.0-py3-none-any.whl --repo tushar-mahalya/kdev
gh attestation verify kdev_cli-<version>-py3-none-any.whl --repo kdev-cli/kdev
```

The same signed provenance is attached to each GitHub release as
`kdev_cli-<version>.sigstore.json`, for checking without going to GitHub:
`gh attestation verify <file> --repo tushar-mahalya/kdev --bundle kdev_cli-<version>.sigstore.json`.
`gh attestation verify <file> --repo kdev-cli/kdev --bundle kdev_cli-<version>.sigstore.json`.
Releases up to 0.2.0 were built before the repository moved to the kdev-cli
organization, so their provenance names `tushar-mahalya/kdev`: check those with
`--repo tushar-mahalya/kdev`.
The files on PyPI carry their own attestations, shown under "Verified details"
on the project page.

Expand Down
6 changes: 3 additions & 3 deletions SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Get help

- **Questions and ideas:** use [GitHub Discussions](https://github.com/tushar-mahalya/kdev/discussions).
- **Questions and ideas:** use [GitHub Discussions](https://github.com/kdev-cli/kdev/discussions).
Choose *Q&A* for how to do something or whether what you see is expected.
- **Bugs:** open a [bug report](https://github.com/tushar-mahalya/kdev/issues/new?template=bug_report.yml).
- **Bugs:** open a [bug report](https://github.com/kdev-cli/kdev/issues/new?template=bug_report.yml).
Include the output of the same command with `-v`, the kdev version and your
operating system.
- **Documentation problems:** open a [documentation issue](https://github.com/tushar-mahalya/kdev/issues/new?template=documentation.yml).
- **Documentation problems:** open a [documentation issue](https://github.com/kdev-cli/kdev/issues/new?template=documentation.yml).
- **Security issues:** do not use a public issue. Follow [SECURITY.md](SECURITY.md).

## Before you ask
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ dependencies = [
[project.urls]
Homepage = "https://kdev-cli.pages.dev"
Documentation = "https://kdev-cli.pages.dev/docs/"
Repository = "https://github.com/tushar-mahalya/kdev"
Issues = "https://github.com/tushar-mahalya/kdev/issues"
Changelog = "https://github.com/tushar-mahalya/kdev/blob/main/CHANGELOG.md"
Repository = "https://github.com/kdev-cli/kdev"
Issues = "https://github.com/kdev-cli/kdev/issues"
Changelog = "https://github.com/kdev-cli/kdev/blob/main/CHANGELOG.md"

[project.scripts]
kdev = "kdev.cli:main"
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Architecture.astro
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const payload = JSON.stringify({ edges, flows, nodes: nodes.map(({ id, t, s, d,
type Node = { id: string; t: string; s: string; d: string; facts?: string[]; src?: string };

const NS = 'http://www.w3.org/2000/svg';
const REPO = 'https://github.com/tushar-mahalya/kdev/blob/main/';
const REPO = 'https://github.com/kdev-cli/kdev/blob/main/';

function setup() {
const dlg = document.querySelector<HTMLDialogElement>('[data-arch]');
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Faq.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { faq } from '../data/faq';
<header class="section__head faq__head">
<span class="eyebrow">Questions</span>
<h2 id="faq-h" class="h-section">Asked before<br /><span class="dim">you install.</span></h2>
<p class="lede">Still unsure? <a class="link" href="https://github.com/tushar-mahalya/kdev/discussions" rel="noopener">Ask in Discussions</a>.</p>
<p class="lede">Still unsure? <a class="link" href="https://github.com/kdev-cli/kdev/discussions" rel="noopener">Ask in Discussions</a>.</p>
</header>
<div class="faq__list">
{faq.map((f, i) => (
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ order: 6

> `kdev forward`, `kdev history` and the 15- and 5-minute end-of-session
> warnings are on `main` and ship in the next release. To use them now:
> `uv tool install git+https://github.com/tushar-mahalya/kdev`.
> `uv tool install git+https://github.com/kdev-cli/kdev`.

| command | what it does |
|---|---|
Expand Down
Loading
Loading