You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you fortaking an interestin 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:
2. Create and activate a Python virtual environment:
43
+
2. Run the setup script to install dependencies and prepare the environment:
39
44
40
-
```powershell
41
-
python -m venv .venv
42
-
.\.venv\Scripts\Activate.ps1
43
-
```
45
+
```powershell
46
+
.\setup.ps1
47
+
```
44
48
45
-
3. Install dependencies:
49
+
After `setup.ps1` completes, run the web dashboard or CLI as described below.
46
50
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
64
52
65
53
- Branch from `main` for new work: `git checkout -b feat/short-description` or `fix/short-description`.
66
54
- 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
69
57
70
58
- Rebase or squash when appropriate before opening a PR to keep history tidy.
71
59
72
-
## Pull Requests
60
+
## Pull Requests
73
61
74
62
1. Push your branch to your fork and open a Pull Request against `DataBoySu/Local-GPUMonitor:main`.
75
63
2. In the PR description include:
76
64
- A short summary of the change/with images if possible.
77
65
- Motivation and any relevant issue links.
78
66
- Testing steps to reproduce or verify the change.
79
-
3. Ensure CI (if any) passes and address review comments promptly.
80
67
81
-
## Code Style & Tests
68
+
## Code Style & Tests
82
69
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.
84
71
- JavaScript: keep vanilla JS simple and modular. Follow consistent indentation and naming.
85
-
- Add tests where appropriate (unit tests forcollectors, integration tests for API endpoints). If you add tests, include instructions to run themin your PR.
86
72
87
-
## Running Locally (developer tips)
73
+
## Running Locally (developer tips)
88
74
89
75
- 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.
90
76
- For debugging GPU collectors on non-GPU machines, mock or stub out GPU calls (see `monitor/collectors` for structure).
91
77
92
-
## Communication, Reporting Issues & Security
78
+
## Communication, Reporting Issues & Security
93
79
94
80
- Use GitHub Discussions for general conversation and design proposals: <https://github.com/DataBoySu/Local-GPUMonitor/discussions/9>
95
81
- Open issues for bugs, feature requests, and design discussions
96
82
- For sensitive security issues, please contact the repository owner directly instead of opening a public issue.
97
83
98
-
## License
84
+
## License
99
85
100
86
This project is distributed under the MIT License. See `LICENSE` for details.
0 commit comments