Skip to content

Commit b230dc0

Browse files
Documentation cleanups
1 parent a4b7956 commit b230dc0

File tree

2 files changed

+55
-46
lines changed

2 files changed

+55
-46
lines changed

README.md

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This tool is ideal if:
4242

4343
1. **Clone the repository:**
4444
```bash
45-
git clone <repository-url>
45+
git clone https://github.com/dx-tooling/platform-problem-monitoring-core.git
4646
cd platform-problem-monitoring-core
4747
```
4848

@@ -111,7 +111,7 @@ This tool is ideal if:
111111

112112
7. **Run the tool:**
113113
```bash
114-
./bin/ppmc ./main.conf
114+
./bin/ppmc ./etc/main.conf
115115
```
116116

117117
## How It Works
@@ -178,7 +178,7 @@ To run the tool periodically, set up a cron job:
178178

179179
```bash
180180
# Run every 6 hours
181-
0 */6 * * * cd /path/to/platform-problem-monitoring-core && ./src/ppmc ./main.conf >> /var/log/platform-monitoring.log 2>&1
181+
0 */6 * * * cd /path/to/platform-problem-monitoring-core && ./bin/ppmc ./etc/main.conf >> /var/log/platform-monitoring.log 2>&1
182182
```
183183

184184
## Advanced Configuration
@@ -222,49 +222,6 @@ If you encounter problems or have questions, please:
222222
2. Open an issue in our repository with your configuration (with sensitive data removed)
223223
3. Include error messages and steps to reproduce the issue
224224

225-
## Development
226-
227-
### Development Setup
228-
229-
1. **Clone the repository:**
230-
```bash
231-
git clone <repository-url>
232-
cd platform-problem-monitoring-core
233-
```
234-
235-
2. **Install development dependencies:**
236-
```bash
237-
make install
238-
```
239-
This creates a virtual environment, installs the package and all development dependencies, and sets up pre-commit hooks.
240-
241-
3. **Activate the virtual environment:**
242-
```bash
243-
source venv/bin/activate # On Windows: venv\Scripts\activate
244-
```
245-
246-
### Code Quality Tools
247-
248-
This project uses a unified approach to code quality with all tools configured in `pyproject.toml` and executed via:
249-
250-
1. **Pre-commit hooks** - Run automatically before each commit
251-
2. **Make commands** - Run manually or in CI
252-
253-
Available make commands:
254-
255-
```bash
256-
make format # Format code with black and isort
257-
make format-check # Check formatting without changing files
258-
make lint # Run ruff linter
259-
make lint-fix # Run ruff linter with auto-fix
260-
make type-check # Run mypy type checking
261-
make security-check # Run bandit security checks
262-
make quality # Run all checks with formatting
263-
make ci-quality # Run all checks without formatting (used in CI)
264-
```
265-
266-
The pre-commit hooks are configured to use the same Makefile targets, ensuring consistency between local development and CI environments.
267-
268225
## License
269226

270227
This project is available under the MIT License — Copyright (c) 2025 Manuel Kießling.

docs/DEVELOPMENT.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Development
2+
3+
## Development Setup
4+
5+
1. **Clone the repository:**
6+
```bash
7+
git clone https://github.com/dx-tooling/platform-problem-monitoring-core.git
8+
cd platform-problem-monitoring-core
9+
```
10+
11+
2. **Install development dependencies:**
12+
```bash
13+
make install
14+
```
15+
This creates a virtual environment, installs the package and all development dependencies, and sets up pre-commit hooks.
16+
17+
3. **Activate the virtual environment:**
18+
```bash
19+
source venv/bin/activate # On Windows: venv\Scripts\activate
20+
```
21+
22+
## Code Quality Tools
23+
24+
This project uses a unified approach to code quality with all tools configured in `pyproject.toml` and executed via:
25+
26+
1. **Pre-commit hooks** - Run automatically before each commit
27+
2. **Make commands** - Run manually or in CI
28+
29+
Available make commands:
30+
31+
```bash
32+
make install Install package and development dependencies
33+
make activate-venv Instructions to activate the virtual environment
34+
make format Format code with black and isort
35+
make format-check Check if code is properly formatted without modifying files
36+
make lint Run linters (ruff)
37+
make lint-fix Run linters and auto-fix issues where possible
38+
make type-check Run mypy type checking
39+
make security-check Run bandit security checks
40+
make quality Run all code quality checks (with formatting)
41+
make ci-quality Run all code quality checks (without modifying files)
42+
make test Run tests
43+
make test-verbose Run tests with verbose output
44+
make test-coverage Run tests with coverage report
45+
make test-file Run tests for a specific file (usage: make test-file file=path/to/test_file.py)
46+
make update-deps Update all dependencies to their latest semver-compatible versions
47+
make bump-version Update the version number in pyproject.toml
48+
make release Create a new release tag (after running quality checks and tests)
49+
make clean Remove build artifacts and cache directories
50+
```
51+
52+
The pre-commit hooks are configured to use the same Makefile targets, ensuring consistency between local development and CI environments.

0 commit comments

Comments
 (0)