You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,13 +134,38 @@ You can now install the project and its dependencies using:
134
134
```bash
135
135
pip install -e .[test]
136
136
```
137
+
138
+
### Code Style and Linting
139
+
140
+
This project uses [ruff](https://docs.astral.sh/ruff/) for both linting and code formatting. Before submitting a pull request, ensure your code follows the project's style guidelines.
141
+
142
+
To check for linting and formatting issues:
143
+
```bash
144
+
hatch run style:check
145
+
```
146
+
147
+
To automatically fix linting issues and format your code:
148
+
```bash
149
+
hatch run style:format
150
+
```
151
+
152
+
To only run linting (with auto-fix):
153
+
```bash
154
+
hatch run style:lint
155
+
```
156
+
137
157
### Testing
138
158
To run the tests, use:
139
159
140
160
```bash
141
161
bash tests/e2e/run_tests.sh
142
162
```
143
163
164
+
Or using hatch:
165
+
```bash
166
+
hatch run test:test
167
+
```
168
+
144
169
## License
145
170
146
171
Python-vaultwarden is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
0 commit comments