Skip to content

Commit eecccd6

Browse files
committed
Merge branch 'Rasesh2005-master'
2 parents ac759d9 + 10df73a commit eecccd6

1 file changed

Lines changed: 93 additions & 8 deletions

File tree

CONTRIBUTING.md

Lines changed: 93 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,93 @@
1-
# A basic contributing guidelines file
2-
echo "# Contributing to python-bitcoin-utils" > CONTRIBUTING.md
3-
echo "" >> CONTRIBUTING.md
4-
echo "## Code Style" >> CONTRIBUTING.md
5-
echo "" >> CONTRIBUTING.md
6-
echo "- Use 4 spaces for indentation, not tabs" >> CONTRIBUTING.md
7-
echo "- Configure your editor to use spaces instead of tabs when contributing" >> CONTRIBUTING.md
8-
echo "- Follow the existing code style patterns in the project" >> CONTRIBUTING.md
1+
# Contributing to python-bitcoin-utils
2+
3+
Thank you for considering contributing to the `python-bitcoin-utils` project! Your contributions help improve and expand this library for Bitcoin application development.
4+
5+
## How to Contribute
6+
7+
### 1. Reporting Issues
8+
9+
If you encounter any bugs, unexpected behavior, or have feature requests, please open an issue on the [GitHub Issues](https://github.com/karask/python-bitcoin-utils/issues) page. When reporting a bug, provide the following information:
10+
11+
- A clear description of the issue.
12+
- Steps to reproduce the issue.
13+
- Expected behavior.
14+
- Python version and operating system details.
15+
- Any relevant logs or error messages.
16+
17+
### 2. Feature Requests
18+
19+
If you have an idea for a new feature or improvement, open an issue for discussion before submitting a pull request. This helps ensure alignment with the project's goals and maintainability.
20+
21+
### 3. Code Contributions
22+
23+
We welcome pull requests! To contribute code:
24+
25+
#### Step 1: Fork and Clone the Repository
26+
27+
1. Fork the repository on GitHub.
28+
2. Clone your fork to your local machine:
29+
```sh
30+
git clone https://github.com/your-username/python-bitcoin-utils.git
31+
cd python-bitcoin-utils
32+
```
33+
3. Add the upstream repository to keep your fork updated:
34+
```sh
35+
git remote add upstream https://github.com/karask/python-bitcoin-utils.git
36+
```
37+
38+
#### Step 2: Create a Feature Branch
39+
40+
Create a new branch for your changes: (Optional)
41+
42+
```sh
43+
git checkout -b feature-name
44+
```
45+
46+
#### Step 3: Make Changes and Test
47+
48+
- Follow the project’s coding style.
49+
- Ensure your code is well-documented and includes meaningful commit messages.
50+
- Run tests before submitting a pull request:
51+
```sh
52+
pytest tests/
53+
```
54+
Ensure all tests pass and your changes do not introduce regressions.
55+
56+
#### Step 4: Submit a Pull Request
57+
58+
1. Push your changes to your fork's branch:
59+
```sh
60+
git push origin feature-name
61+
```
62+
2. Open a pull request from your fork’s branch to the `main` branch of the original repository.
63+
3. Provide a detailed description of your changes.
64+
4. Address any requested changes from maintainers.
65+
66+
### 4. Code Style Guidelines
67+
68+
- Follow PEP 8 for Python code styling.
69+
- Use meaningful variable and function names.
70+
- Maintain clear and concise documentation in the code.
71+
72+
### 5. Writing Tests
73+
74+
Ensure new features and bug fixes include test cases. The project uses `pytest` for testing. Run all tests with:
75+
76+
```sh
77+
pytest
78+
```
79+
80+
If you add new features, create corresponding test cases under the `tests/` directory.
81+
82+
### 6. Documentation Contributions
83+
84+
Help improve the documentation by submitting corrections, clarifications, or examples. Update the README or other documentation files as needed.
85+
86+
## Code of Conduct
87+
88+
Be respectful and follow the open-source community guidelines. Maintain a collaborative and inclusive environment.
89+
90+
---
91+
92+
Thank you for contributing! 🚀
93+

0 commit comments

Comments
 (0)