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
10 changes: 10 additions & 0 deletions docs/contributing_tldr.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Please check the [pyproject.toml](https://github.com/commitizen-tools/commitizen
### Code Changes

```bash
# Make sure you have the latest version of poetry installed
poetry self update
Comment on lines +15 to +16
Copy link
Member

Choose a reason for hiding this comment

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

This really depends on how poetry is installed. It will not work with system installation, mise or asdf based installation...
So not sure we should include this instruction.
However, instead of forcing an update which might not be required, saying that "we require poetry>=X.Y.Z, you can verify with poetry --version" might be a better option

Copy link
Member

Choose a reason for hiding this comment

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

agreed


# Ensure you have the correct dependencies, for nix user's see below
poetry install

Expand All @@ -36,6 +39,13 @@ pytest -n auto <test_suite>
poetry doc
```

Also, we use [Lychee](https://lychee.cli.rs/) to check for broken links in the documentation.

```bash
# Check for broken links in the documentation
lychee .
```
Comment on lines +42 to +47
Copy link
Member

Choose a reason for hiding this comment

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

If this is a TLDR, broken link checking, with a tool not installed with the other dependencies but run on CI, may not be worth adding there. Breaking links while contributing is rare enough to just let it fail on CI if it happends, WDYT ?

Copy link
Member

Choose a reason for hiding this comment

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

agreed, also it's not nice to drop this responsibility on other. I think is better the PR runs, reports and someone can take action if they want


### Nix Users

If you are using Nix, you can install poetry locally by running:
Expand Down