mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
Removing duplicate lines and $ sign before the bash commands to make quick copy/paste possible of these commands possible. (#719)
Co-authored-by: Santhosh Gandhe <santhosh.gandhe@gmail.com>
This commit is contained in:
parent
8749593773
commit
28a4242c6e
1 changed files with 20 additions and 32 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
# Contribution
|
# Contribution
|
||||||
|
|
||||||
We would love feedback on our [Roadmap](https://github.com/orgs/katanemo/projects/1) and we welcome contributions to **Plano**!
|
|
||||||
We would love feedback on our [Roadmap](https://github.com/orgs/katanemo/projects/1) and we welcome contributions to **Plano**!
|
We would love feedback on our [Roadmap](https://github.com/orgs/katanemo/projects/1) and we welcome contributions to **Plano**!
|
||||||
Whether you're fixing bugs, adding new features, improving documentation, or creating tutorials, your help is much appreciated.
|
Whether you're fixing bugs, adding new features, improving documentation, or creating tutorials, your help is much appreciated.
|
||||||
|
|
||||||
|
|
@ -8,10 +7,8 @@ Whether you're fixing bugs, adding new features, improving documentation, or cre
|
||||||
|
|
||||||
### 1. Fork the Repository
|
### 1. Fork the Repository
|
||||||
|
|
||||||
Fork the repository to create your own version of **Plano**:
|
|
||||||
Fork the repository to create your own version of **Plano**:
|
Fork the repository to create your own version of **Plano**:
|
||||||
|
|
||||||
- Navigate to the [Plano GitHub repository](https://github.com/katanemo/plano).
|
|
||||||
- Navigate to the [Plano GitHub repository](https://github.com/katanemo/plano).
|
- Navigate to the [Plano GitHub repository](https://github.com/katanemo/plano).
|
||||||
- Click the "Fork" button in the upper right corner.
|
- Click the "Fork" button in the upper right corner.
|
||||||
- This will create a copy of the repository under your GitHub account.
|
- This will create a copy of the repository under your GitHub account.
|
||||||
|
|
@ -21,8 +18,8 @@ Fork the repository to create your own version of **Plano**:
|
||||||
Once you've forked the repository, clone it to your local machine (replace `<your-username>` with your GitHub username):
|
Once you've forked the repository, clone it to your local machine (replace `<your-username>` with your GitHub username):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone git@github.com:<your-username>/plano.git
|
git clone git@github.com:<your-username>/plano.git
|
||||||
$ cd plano
|
cd plano
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Add Upstream Remote
|
### 3. Add Upstream Remote
|
||||||
|
|
@ -30,15 +27,15 @@ $ cd plano
|
||||||
Add the original repository as an upstream remote so you can keep your fork in sync:
|
Add the original repository as an upstream remote so you can keep your fork in sync:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git remote add upstream git@github.com:katanemo/plano.git
|
git remote add upstream git@github.com:katanemo/plano.git
|
||||||
```
|
```
|
||||||
|
|
||||||
To sync your fork with the latest changes from the main repository:
|
To sync your fork with the latest changes from the main repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git fetch upstream
|
git fetch upstream
|
||||||
$ git checkout main
|
git checkout main
|
||||||
$ git merge upstream/main
|
git merge upstream/main
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Install Prerequisites
|
### 4. Install Prerequisites
|
||||||
|
|
@ -46,7 +43,7 @@ $ git merge upstream/main
|
||||||
**Install uv** (Python package manager for the planoai CLI):
|
**Install uv** (Python package manager for the planoai CLI):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**Install pre-commit hooks:**
|
**Install pre-commit hooks:**
|
||||||
|
|
@ -54,8 +51,8 @@ $ curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
Pre-commit hooks help maintain code quality by running automated checks before each commit. Install them with:
|
Pre-commit hooks help maintain code quality by running automated checks before each commit. Install them with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pip install pre-commit
|
pip install pre-commit
|
||||||
$ pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
The pre-commit hooks will automatically run:
|
The pre-commit hooks will automatically run:
|
||||||
|
|
@ -69,19 +66,12 @@ The pre-commit hooks will automatically run:
|
||||||
The planoai CLI is used to build, run, and manage Plano locally:
|
The planoai CLI is used to build, run, and manage Plano locally:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd cli
|
cd cli
|
||||||
$ uv sync
|
uv sync
|
||||||
```
|
```
|
||||||
|
|
||||||
This creates a virtual environment in `.venv` and installs all dependencies.
|
This creates a virtual environment in `.venv` and installs all dependencies.
|
||||||
|
|
||||||
Optionally, install planoai globally in editable mode:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ git clone https://github.com/katanemo/plano.git
|
|
||||||
$ cd plano
|
|
||||||
```
|
|
||||||
|
|
||||||
Now you can use `planoai` commands from anywhere, or use `uv run planoai` from the `cli` directory.
|
Now you can use `planoai` commands from anywhere, or use `uv run planoai` from the `cli` directory.
|
||||||
|
|
||||||
### 6. Create a Branch
|
### 6. Create a Branch
|
||||||
|
|
@ -89,7 +79,7 @@ Now you can use `planoai` commands from anywhere, or use `uv run planoai` from t
|
||||||
Use a descriptive name for your branch (e.g., fix-bug-123, add-feature-x).
|
Use a descriptive name for your branch (e.g., fix-bug-123, add-feature-x).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git checkout -b <your-branch-name>
|
git checkout -b <your-branch-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Make Your Changes
|
### 7. Make Your Changes
|
||||||
|
|
@ -101,25 +91,25 @@ Make your changes in the relevant files. If you're adding new features or fixing
|
||||||
**Run Rust tests:**
|
**Run Rust tests:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd crates
|
cd crates
|
||||||
$ cargo test
|
cargo test
|
||||||
```
|
```
|
||||||
|
|
||||||
For library tests only:
|
For library tests only:
|
||||||
```bash
|
```bash
|
||||||
$ cargo test --lib
|
cargo test --lib
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run Python CLI tests:**
|
**Run Python CLI tests:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd cli
|
cd cli
|
||||||
$ uv run pytest
|
uv run pytest
|
||||||
```
|
```
|
||||||
|
|
||||||
Or with verbose output:
|
Or with verbose output:
|
||||||
```bash
|
```bash
|
||||||
$ uv run pytest -v
|
uv run pytest -v
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run pre-commit checks manually:**
|
**Run pre-commit checks manually:**
|
||||||
|
|
@ -127,13 +117,11 @@ $ uv run pytest -v
|
||||||
Before committing, you can run all pre-commit checks manually:
|
Before committing, you can run all pre-commit checks manually:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd plano
|
pre-commit run --all-files
|
||||||
cargo test
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 6. Push changes, and create a Pull request
|
### 9. Push changes, and create a Pull request
|
||||||
|
|
||||||
Go back to the original Plano repository, and you should see a "Compare & pull request" button. Click that to submit a Pull Request (PR). In your PR description, clearly explain the changes you made and why they are necessary.
|
|
||||||
Go back to the original Plano repository, and you should see a "Compare & pull request" button. Click that to submit a Pull Request (PR). In your PR description, clearly explain the changes you made and why they are necessary.
|
Go back to the original Plano repository, and you should see a "Compare & pull request" button. Click that to submit a Pull Request (PR). In your PR description, clearly explain the changes you made and why they are necessary.
|
||||||
|
|
||||||
We will review your pull request and provide feedback. Once approved, your contribution will be merged into the main repository!
|
We will review your pull request and provide feedback. Once approved, your contribution will be merged into the main repository!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue