-
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.
- Loading branch information
1 parent
b040d26
commit 6d6bc0a
Showing
2 changed files
with
47 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Contributing to mlx-examples | ||
|
||
We want to make contributing to this project as easy and transparent as | ||
possible. | ||
|
||
## Pull Requests | ||
|
||
1. Fork and submit pull requests to the repo. | ||
2. If you've added code that should be tested, add tests. | ||
3. Every PR should have passing tests and at least one review. | ||
4. For code formatting install `pre-commit` using something like `pip install pre-commit` and run `pre-commit install`. | ||
This should install hooks for running `black` and `clang-format` to ensure | ||
consistent style for C++ and python code. | ||
|
||
You can also run the formatters manually as follows on individual files: | ||
|
||
```bash | ||
clang-format -i file.cpp | ||
``` | ||
|
||
```bash | ||
black file.py | ||
``` | ||
|
||
or, | ||
|
||
```bash | ||
# single file | ||
pre-commit run --files file1.py | ||
# specific files | ||
pre-commit run --files file1.py file2.py | ||
``` | ||
|
||
or run `pre-commit run --all-files` to check all files in the repo. | ||
|
||
## Issues | ||
|
||
I use GitHub issues to track public bugs. Please ensure your description is | ||
clear and has sufficient instructions to be able to reproduce the issue. | ||
|
||
## License | ||
|
||
By contributing to mlx-kan, you agree that your contributions will be licensed | ||
under the LICENSE file in the root directory of this source tree. |
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