Skip to content
Open
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
22 changes: 10 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,21 @@ Have ideas for new features or use cases? We're eager to hear them! But first:

- **1.2. Create a branch**: create the branch that you will work on by using the link provided in the issue details page (right panel at the bottom - section "Development")

- **1.3. Setup the SDK locally**: clone the repository
- **1.3. Setup the SDK locally**: clone the repository and install dependencies

```sh
$ git clone https://github.com/genlayerlabs/genlayer-py.git
$ cd genlayer-py
$ uv sync --group dev
```
Comment on lines 41 to 45
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove shell prompts to satisfy markdownlint MD014.

Line 42, Line 43, Line 44, and Line 50 use $ prompts without output, which triggers lint warnings.

💡 Proposed docs-only fix
    ```sh
-   $ git clone https://github.com/genlayerlabs/genlayer-py.git
-   $ cd genlayer-py
-   $ uv sync --group dev
+   git clone https://github.com/genlayerlabs/genlayer-py.git
+   cd genlayer-py
+   uv sync --group dev
    ```
@@
    ```sh
-   $ uv run pytest
+   uv run pytest
    ```

Also applies to: 49-51

🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 42-42: Dollar signs used before commands without showing output

(MD014, commands-show-output)


[warning] 43-43: Dollar signs used before commands without showing output

(MD014, commands-show-output)


[warning] 44-44: Dollar signs used before commands without showing output

(MD014, commands-show-output)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` around lines 41 - 45, Remove the shell prompt characters
from the fenced code blocks in CONTRIBUTING.md: replace lines containing "$ git
clone https://github.com/genlayerlabs/genlayer-py.git", "$ cd genlayer-py", "$
uv sync --group dev", and "$ uv run pytest" with the same commands without the
leading "$" so the code blocks show raw commands (e.g., "git clone ...", "cd
genlayer-py", "uv sync --group dev", "uv run pytest") to satisfy markdownlint
MD014; ensure both occurrences (the blocks around the initial clone/sync and the
pytest block) are updated.


- **1.4. Add the package to your project locally**: to add the package locally, use the command:
- **Option 1:** Install the package in regular mode
```sh
$ pip install path/to/genlayer-py
```
- **Option 2:** Install the package in editable mode

```sh
$ pip install -e path/to/genlayer-py --config-settings editable_mode=strict
```
This will allow you to use the package in your project without publishing it. With option 1 you need to re-install the package on every changes you make and with option 2 you only need to perform a re-installation if you change the project metadata. You can find more information in the pip [documentation](https://pip.pypa.io/en/stable/topics/local-project-installs/)
This will install all dependencies including dev tools. You can then run tests with:

```sh
$ uv run pytest
```

> **Note**: This project uses [uv](https://docs.astral.sh/uv/) for dependency management. If you don't have it installed, see the [uv installation guide](https://docs.astral.sh/uv/getting-started/installation/).


#### 2. Submit your solution
Expand Down