@@ -8,23 +8,15 @@ Contributions (pull requests) are very welcome! Here's how to get started.
88
99First fork the library on GitHub.
1010
11- Then clone and install the library in development mode :
11+ Then clone and install the library:
1212
1313``` bash
1414git clone https://github.com/your-username-here/lineax.git
1515cd lineax
16- pip install -e .
16+ pip install -e ' .[dev]'
17+ pre-commit install # `pre-commit` is installed by `pip` on the previous line
1718```
1819
19- Then install the pre-commit hook:
20-
21- ``` bash
22- pip install pre-commit
23- pre-commit install
24- ```
25-
26- These hooks use Black to format the code, and ruff to lint it.
27-
2820---
2921
3022** If you're making changes to the code:**
@@ -34,8 +26,8 @@ Now make your changes. Make sure to include additional tests if necessary.
3426Next verify the tests all pass:
3527
3628``` bash
37- pip install -r tests/requirements.txt
38- python -m tests
29+ pip install -e ' .[tests] '
30+ pytest # `pytest` is installed by `pip` on the previous line.
3931```
4032
4133Then push your changes back to your fork of the repository:
@@ -53,26 +45,8 @@ Finally, open a pull request on GitHub!
5345Make your changes. You can then build the documentation by doing
5446
5547``` bash
56- pip install -r docs/requirements.txt
48+ pip install -e ' .[docs] '
5749mkdocs serve
5850```
59- Then doing ` Control-C ` , and running:
60- ```
61- mkdocs serve
62- ```
63- (So you run ` mkdocs serve ` twice.)
6451
6552You can then see your local copy of the documentation by navigating to ` localhost:8000 ` in a web browser.
66-
67- ## Contributor License Agreement
68-
69- Contributions to this project must be accompanied by a Contributor License
70- Agreement (CLA). You (or your employer) retain the copyright to your
71- contribution; this simply gives us permission to use and redistribute your
72- contributions as part of the project. Head over to
73- < https://cla.developers.google.com/ > to see your current agreements on file or
74- to sign a new one.
75-
76- You generally only need to submit a CLA once, so if you've already submitted one
77- (even if it was for a different project), you probably don't need to do it
78- again.
0 commit comments