Skip to content

docs: improve conributing guide and fix linux developer setup script#1002

Merged
amilcarlucas merged 3 commits into
ArduPilot:masterfrom
neo-0007:docs/improve-conributing-guide
Oct 31, 2025
Merged

docs: improve conributing guide and fix linux developer setup script#1002
amilcarlucas merged 3 commits into
ArduPilot:masterfrom
neo-0007:docs/improve-conributing-guide

Conversation

@neo-0007

Copy link
Copy Markdown
Contributor
  • Add detailed steps in CONTRIBUTING.md to include developer environment setup , code execution guide and commit specification
  • Fix developer environment setup script for Linux/MacOS by adding a venv creation and activation step

…setupDeveloperPC.sh

Previously, setupDeveloperPC.sh for Linux/MacOS tried to install python packages
even if no virtual environment is active
It was causing to skip installation of packages leading to dependency issues

This commit
- checks if venv exists , if not than it creates it and activates it
- added .venv/ to gitignore to stop tracking it

Signed-off-by: neo-0007 <hrishikeshgohain123@gmail.com>
…G.md

Added detailed steps for:
- developer environment setup
- running code locally
- submitting patches
- signing off commits

Signed-off-by: neo-0007 <hrishikeshgohain123@gmail.com>
Copilot AI review requested due to automatic review settings October 30, 2025 17:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the developer setup process by adding automatic Python virtual environment creation to the Linux/MacOS setup script and updating the contributing documentation with clearer setup and contribution guidelines.

  • Adds automatic .venv creation and activation in SetupDeveloperPC.sh
  • Updates .gitignore to exclude the new .venv directory
  • Restructures and expands CONTRIBUTING.md with detailed setup instructions, execution commands, and commit signing guidelines

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
SetupDeveloperPC.sh Added automatic virtual environment creation and activation before installing dependencies
.gitignore Added .venv/ to ignored directories to complement existing venv/ exclusion
CONTRIBUTING.md Restructured with new sections for learning, setup, execution, and patch submission with conventional commits and DCO signing
Comments suppressed due to low confidence (2)

SetupDeveloperPC.sh:48

  • Using sudo with pip can cause permission issues and conflicts with the virtual environment. Since the virtual environment is already activated at this point (line 33), this should use the virtual environment's pip without sudo: python3 -m pip uninstall -y serial pyserial
    sudo python3 -m pip uninstall -y serial pyserial

SetupDeveloperPC.sh:52

  • According to the project's coding guidelines, the project uses uv for dependency management, not pip directly. This should be uv pip install -e .[dev] to align with the documented standards in .github/copilot-instructions.md.
    python3 -m pip install -e .[dev]

Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
amilcarlucas
amilcarlucas previously approved these changes Oct 31, 2025
Remove redundant and outdated install_* scripts

Signed-off-by: Dr.-Ing. Amilcar do Carmo Lucas <amilcar.lucas@iav.de>
@amilcarlucas amilcarlucas merged commit 8d40df6 into ArduPilot:master Oct 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants