Debian Codegraph @

CONTRIBUTING.md

raw symbols SCIP
1 # ๐Ÿค Contributing to Apprise
2
3 Thank you for your interest in contributing to Apprise!
4
5 We welcome bug reports, feature requests, documentation improvements, and new
6 notification plugins. Please follow the guidelines below to help us review and
7 merge your contributions smoothly.
8
9 ---
10
11 ## โœ… Quick Checklist Before You Submit
12
13 - โœ”๏ธ Your code passes all lint and style checks:
14 ```bash
15 tox -e lint
16 ```
17 If it reports issues, auto-fix them with:
18 ```bash
19 tox -e format
20 ```
21
22 - โœ”๏ธ Your changes are covered by tests:
23 ```bash
24 tox -e qa
25 ```
26
27
28 - โœ”๏ธ You followed the plugin template (if adding a new plugin).
29 - โœ”๏ธ You included inline docstrings and respected the BSD 2-Clause license.
30 - โœ”๏ธ Your commit message is descriptive.
31
32 ---
33
34 ## ๐Ÿ“ฆ Local Development Setup
35
36 To get started with development:
37
38 ### ๐Ÿงฐ System Requirements
39
40 - Python >= 3.9
41 - `pip`
42 - `git`
43 - Optional: `VS Code` with the Python extension
44
45 ### ๐Ÿš€ One-Time Setup
46
47 ```bash
48 git clone https://github.com/caronc/apprise.git
49 cd apprise
50
51 # Install all runtime + dev dependencies
52 pip install '.[dev]'
53 ```
54
55 (Optional, but recommended if actively developing):
56 ```bash
57 pip install -e '.[dev]'
58 ```
59
60 ---
61
62 ## ๐Ÿงช Running Tests
63
64 ```bash
65 pytest # Run all tests
66 pytest tests/foo.py # Run a specific test file
67 ```
68
69 Run with coverage:
70 ```bash
71 pytest --cov=apprise --cov-report=term
72 ```
73
74 ---
75
76 ## ๐Ÿงน Linting & Formatting
77
78 Use `tox` to run through the same toolchain as CI:
79
80 ```bash
81 tox -e lint # Check for lint violations and style issues (read-only)
82 tox -e format # Auto-fix lint violations and apply consistent code style
83 ```
84
85 If you prefer to call ruff directly:
86
87 ```bash
88 ruff check . # Check lint violations
89 ruff check . --fix # Auto-fix lint violations
90 ruff format --check . # Check code style
91 ruff format . # Apply code style
92 ```
93
94 ---
95
96 ## ๐Ÿงฐ Optional: Using VS Code
97
98 1. Open the repo: `code .`
99 2. Press `Ctrl+Shift+P -> Python: Select Interpreter`
100 3. Choose the same interpreter you used for `pip install .[dev]`
101 4. Press `Ctrl+Shift+P -> Python: Discover Tests`
102
103 `.vscode/settings.json` is pre-configured with:
104
105 - pytest as the test runner
106 - ruff for linting
107 - PYTHONPATH set to project root
108
109 No `.venv` is required unless you choose to use one.
110
111 ---
112
113 ## ๐Ÿ“Œ How to Contribute
114
115 1. **Fork the repository** and create a new branch.
116 2. Make your changes.
117 3. Run the checks listed above.
118 4. Submit a pull request (PR) to the `main` branch.
119
120 GitHub Actions will run tests and lint checks on your PR automatically.
121
122 ---
123
124 ## ๐Ÿงช Need Help with Testing or Plugins?
125
126 See [DEVELOPMENT.md](./DEVELOPMENT.md) for:
127 - Full setup instructions
128 - Tox environment descriptions
129 - RPM testing
130 - Plugin development guidance
131
132 ---
133
134 ## ๐Ÿ™ Thank You
135
136 Your contributions make Apprise better for everyone โ€” thank you!
137
138 ๐Ÿ“ See [ACKNOWLEDGEMENTS.md](./ACKNOWLEDGEMENTS.md) for a list of contributors.