File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,15 @@ You can also create a git hook which will sign off all your commits automaticall
55
55
56
56
First, create the hook file and make it executable:
57
57
58
- ``` sh
58
+ ``` console
59
59
cd your/checkout/of/replicate-python
60
60
touch .git/hooks/prepare-commit-msg
61
61
chmod +x .git/hooks/prepare-commit-msg
62
62
```
63
63
64
64
Then paste the following into the file:
65
65
66
- ```
66
+ ``` sh
67
67
#! /bin/sh
68
68
69
69
NAME=$( git config user.name)
@@ -86,18 +86,15 @@ git interpret-trailers --if-exists doNothing --trailer \
86
86
87
87
## Development
88
88
89
- To run the tests:
89
+ The Python project is managed using [ ` rye ` ] ( https://rye.astral.sh ) .
90
+ Run the setup script to install Rye and install the project's dependencies.
90
91
91
- ``` sh
92
- pip install -r requirements-dev.txt
93
- pytest
92
+ ``` console
93
+ ./script/setup
94
94
```
95
95
96
- To install the package in development:
97
-
98
- ``` sh
99
- pip install -e .
100
- ```
96
+ You can run the ` format ` , ` lint ` , and ` test ` scripts before commiting
97
+ to validate your changes locally before going through CI.
101
98
102
99
### Environment variables
103
100
Original file line number Diff line number Diff line change 14
14
case " $REPLY " in
15
15
[yY])
16
16
echo " Installing rye..."
17
- curl -sSf https://rye-up.com /get | sh
17
+ curl -sSf https://rye.astral.sh /get | sh
18
18
echo " rye has been successfully installed."
19
19
;;
20
20
* )
You can’t perform that action at this time.
0 commit comments