Skip to content

Update contribution guide, move all checks to tox #1960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 27, 2025

Conversation

zariiii9003
Copy link
Collaborator

No description provided.

Copy link
Owner

@hardbyte hardbyte left a comment

Choose a reason for hiding this comment

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

Awesome

mypy can
ruff check can
pylint can/**.py can/io doc/conf.py examples/**.py can/interfaces/socketcan
* **pipx** is a tool for installing and running Python applications (such as tox)
Copy link
Owner

Choose a reason for hiding this comment

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

Fair to aim to move entirely to uv

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, i guess pipx is a bit redundant now. I removed all mentions of it.


pipx install tox

**Create a virtual environment and install python-can in editable mode**
Copy link
Owner

Choose a reason for hiding this comment

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

This is not standard in uv so if required it would be worth justifying.

uv run should already use that local project and the python virtual environment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So far i used uv only for the speed benefit and automatic python version management on linux, so i wasn't aware of that. I updated the docs with a comparison of the traditional and the uv way. Take a look, please.


* Open a pull request from your branch to the ``main`` branch of the main python-can repository on GitHub.

Please be patient — maintainers review contributions as time allows.
Copy link
Owner

Choose a reason for hiding this comment

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

😅

* Add docs where appropriate. At a minimum add to ``doc/interfaces.rst`` and add
a new interface specific document in ``doc/interface/*``.
It should document the supported platforms and also the hardware/software it requires.
A small snippet of how to install the dependencies would also be useful to get people started without much friction.
Copy link
Owner

Choose a reason for hiding this comment

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

Let's steer people towards declaring optional dependencies

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved the attention note up and explicitely said, that pull requests for new interfaces will not be accepted. (Unless there's a good reason...)

@zariiii9003
Copy link
Collaborator Author

Awesome

Thank you for the unexpected review 😄

@zariiii9003
Copy link
Collaborator Author

@hardbyte I'll merge this for now. I'm going to create another PR to introduce towncrier to automate changelog generation, so i'll need to edit the contribution guide again anyway. Then I'll request another review.

@zariiii9003 zariiii9003 merged commit afb1204 into hardbyte:main Jul 27, 2025
32 checks passed
@zariiii9003 zariiii9003 deleted the ci-config branch July 27, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants