-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from harisankar95/code-restructuring
Code restructuring
- Loading branch information
Showing
17 changed files
with
798 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,42 +5,71 @@ feature developments, extensions, or bugfixes that you are working on. | |
An easy way is to open an issue or a pull request in which you explain | ||
what you are trying to do. | ||
|
||
Before starting your work, please check the existing issues and discussions to avoid duplicate efforts. Engaging in discussions on issues can provide better clarity and enhance community interaction. | ||
|
||
## Pull Requests | ||
|
||
The preferred way to contribute to *pathfinding3D* is to fork the main repository on Github, then submit a "pull request" | ||
(PR): | ||
The preferred way to contribute to *pathfinding3D* is to fork the main repository on Github, then submit a "pull request" (PR). Follow this checklist before submitting your PR: | ||
|
||
1. Fork the [project repository](https://github.com/harisankar95/pathfinding3D): | ||
click on the 'Fork' button near the top of the page. This creates a copy of | ||
the code under your account on the Github server. | ||
click on the ``Fork`` button near the top of the page. This creates a copy of | ||
the code under your namespace on the Github servers. | ||
|
||
2. Clone this repository to your local disk: | ||
|
||
```bash | ||
git clone [email protected]:YourLogin/pathfinding3D.git | ||
cd pathfinding3D | ||
``` | ||
|
||
3. Prepare the development environment: | ||
|
||
2. Clone this copy to your local disk: | ||
```bash | ||
pip install numpy pytest sphinx | ||
``` | ||
|
||
git clone [email protected]:YourLogin/pathfinding3D.git | ||
4. Create a new branch to hold your changes, for example (replace | ||
``my-feature`` with a short but descriptive name of your feature, bugfix, etc.): | ||
|
||
3. Create a branch to hold your changes: | ||
```bash | ||
git checkout -b my-feature | ||
``` | ||
|
||
git checkout -b my-feature | ||
and start making changes. | ||
|
||
and start making changes. Never work in the ``main`` branch! | ||
5. When you're done making changes, add changed files to the index with ``git add`` and | ||
``git commit`` them with a descriptive message. | ||
|
||
4. Work on this copy, on your computer, using Git to do the version | ||
control. When you're done editing, do:: | ||
```bash | ||
git add modified_files | ||
git commit -m "A short description of the commit" | ||
``` | ||
|
||
git add modified_files | ||
git commit | ||
6. Run the tests with ``pytest``. If they pass, you are ready to submit a pull request. | ||
|
||
to record your changes in Git, then push them to Github with:: | ||
```bash | ||
pytest test | ||
``` | ||
|
||
git push -u origin my-feature | ||
7. Push your changes to Github with: | ||
|
||
Finally, go to the web page of the your fork of the repo, | ||
and click 'Pull request' to send your changes to the maintainers for review. | ||
```bash | ||
git push -u origin my-feature | ||
``` | ||
|
||
Finally, go to the web page of your fork of the repo, | ||
and click ``Pull request`` to send your changes to the maintainers for review. | ||
|
||
## Merge Policy | ||
|
||
Summary: maintainer can push minor changes directly, pull request + 1 reviewer for everything else. | ||
|
||
* Usually it is not possible to push directly to the `main` branch of *pathfinding3D* for anyone. Only tiny changes, urgent bugfixes, and maintenance commits can be pushed directly to the `main` branch by the maintainer without a review. "Tiny" means backwards compatibility is mandatory and all tests must succeed. No new feature must be added. | ||
Usually, direct push to the main branch of pathfinding3D is restricted. Only minor changes, urgent bugfixes, and maintenance commits can be pushed directly to the main branch by the maintainer without a review. "Minor" implies backwards compatibility and successful completion of all tests. No new features must be added. | ||
|
||
Developers should submit pull requests for their changes. PRs should be reviewed by at least one other developer and merged by the maintainer. New features must be documented and tested. Breaking changes must be discussed and announced in advance with deprecation warnings. | ||
|
||
Contributors are encouraged to engage in the feedback and review process. If you haven't received any response on your PR within a reasonable timeframe, feel free to reach out for an update. | ||
|
||
All contributions will be acknowledged, either through mentions in release notes, the contributor list, or other appropriate channels. | ||
|
||
* Developers should submit pull requests. Those will ideally be reviewed by at least one other developer and merged by the maintainer. New features must be documented and tested. Breaking changes must be discussed and announced in advance with deprecation warnings. | ||
By following these guidelines, you help maintain the quality and consistency of the pathfinding3D project. We appreciate your contributions and look forward to your active participation in our community. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.