Skip to content

Commit 069ebca

Browse files
committed
contrib re
1 parent 5e478cb commit 069ebca

1 file changed

Lines changed: 31 additions & 45 deletions

File tree

CONTRIBUTING.md

Lines changed: 31 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to Cluster Health Monitor
1+
# Contributing to Local GPU Monitor
22

33
First off, thanks for taking the time to go through my project!
44

@@ -14,53 +14,41 @@ All contributions are welcome, bug fixes, new features, documentation improvemen
1414
- **Python**: 3.10+
1515
- **CUDA**: Toolkit 12.x (required for GPU benchmarking features).
1616

17-
### Setting Up the Development Environment
17+
### Two ways to get started
1818

19-
1. **Clone the repository**:
19+
Choose one of the options below — both end with running the included `setup.ps1` to prepare the environment.
2020

21-
```bash
22-
git clone https://github.com/DataBoySu/Local-GPUMonitor.git
23-
# Contributing to GPU Health Monitor
21+
Option A — Install from Releases (ZIP)
22+
-------------------------------------
2423

25-
Thank you for taking an interest in contributing. This document describes how to get the repository locally, coding and commit guidelines, and the process for submitting changes.
24+
1. Download the latest release ZIP from the Releases page: https://github.com/DataBoySu/Local-GPUMonitor/releases
25+
2. Extract the ZIP to a local folder.
26+
3. Open PowerShell, `cd` into the extracted folder and run:
2627

27-
Repository: https://github.com/DataBoySu/Local-GPUMonitor
28+
```powershell
29+
# from the extracted release folder
30+
.\setup.ps1
31+
```
2832

29-
## Quick Start (clone & run)
33+
Option B — Clone the repository (for development)
34+
-----------------------------------------------
3035

31-
1. Fork the repository on GitHub and clone your fork:
36+
1. Clone the repository and `cd` into it:
3237

33-
```bash
34-
git clone https://github.com/DataBoySu/Local-GPUMonitor.git
35-
cd Local-GPUMonitor
36-
```
38+
```bash
39+
git clone https://github.com/DataBoySu/Local-GPUMonitor.git
40+
cd Local-GPUMonitor
41+
```
3742

38-
2. Create and activate a Python virtual environment:
43+
2. Run the setup script to install dependencies and prepare the environment:
3944

40-
```powershell
41-
python -m venv .venv
42-
.\.venv\Scripts\Activate.ps1
43-
```
45+
```powershell
46+
.\setup.ps1
47+
```
4448

45-
3. Install dependencies:
49+
After `setup.ps1` completes, run the web dashboard or CLI as described below.
4650

47-
```powershell
48-
pip install -r requirements.txt
49-
```
50-
51-
4. Run the application (web dashboard):
52-
53-
```powershell
54-
python health_monitor.py web
55-
```
56-
57-
Or run the CLI mode:
58-
59-
```powershell
60-
python health_monitor.py cli
61-
```
62-
63-
## Branching & Commit Guidelines
51+
## Branching & Commit Guidelines
6452

6553
- Branch from `main` for new work: `git checkout -b feat/short-description` or `fix/short-description`.
6654
- Keep commits small and focused. Use clear commit messages (imperative present tense):
@@ -69,33 +57,31 @@ All contributions are welcome, bug fixes, new features, documentation improvemen
6957

7058
- Rebase or squash when appropriate before opening a PR to keep history tidy.
7159

72-
## Pull Requests
60+
## Pull Requests
7361

7462
1. Push your branch to your fork and open a Pull Request against `DataBoySu/Local-GPUMonitor:main`.
7563
2. In the PR description include:
7664
- A short summary of the change/with images if possible.
7765
- Motivation and any relevant issue links.
7866
- Testing steps to reproduce or verify the change.
79-
3. Ensure CI (if any) passes and address review comments promptly.
8067

81-
## Code Style & Tests
68+
## Code Style & Tests
8269

83-
- Python: follow PEP 8 and use type hints where appropriate. We prefer readable, explicit code.
70+
- Python: follow PEP 8 and use type hints where appropriate.
8471
- JavaScript: keep vanilla JS simple and modular. Follow consistent indentation and naming.
85-
- Add tests where appropriate (unit tests for collectors, integration tests for API endpoints). If you add tests, include instructions to run them in your PR.
8672

87-
## Running Locally (developer tips)
73+
## Running Locally (developer tips)
8874

8975
- To run the web server with auto-reload during development, use your editor's Python run configuration or run with `watchdog`/`honcho` if you add it.
9076
- For debugging GPU collectors on non-GPU machines, mock or stub out GPU calls (see `monitor/collectors` for structure).
9177

92-
## Communication, Reporting Issues & Security
78+
## Communication, Reporting Issues & Security
9379

9480
- Use GitHub Discussions for general conversation and design proposals: <https://github.com/DataBoySu/Local-GPUMonitor/discussions/9>
9581
- Open issues for bugs, feature requests, and design discussions
9682
- For sensitive security issues, please contact the repository owner directly instead of opening a public issue.
9783

98-
## License
84+
## License
9985

10086
This project is distributed under the MIT License. See `LICENSE` for details.
10187

0 commit comments

Comments
 (0)