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: docs/contributing.md
+7-21Lines changed: 7 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,22 @@
1
1
# Contributing
2
2
3
-
To contribute to this library, first checkout the code. Then create a new virtual environment:
3
+
To contribute to this library, first checkout the code. Use [uv](https://github.com/astral-sh/uv) to run the tests:
4
4
5
5
cd django-sql-dashboard
6
-
python -m venv venv
7
-
source venv/bin/activate
8
-
9
-
Or if you are using `pipenv`:
10
-
11
-
pipenv shell
12
-
13
-
Now install the dependencies and tests:
14
-
15
-
pip install -e '.[test]'
16
-
17
-
## Running the tests
18
-
19
-
To run the tests:
20
-
21
-
pytest
6
+
uv run pytest
22
7
23
8
## Generating new migrations
24
9
25
10
To generate migrations for model changes:
26
11
27
12
cd test_project
28
-
./manage.py makemigrations
13
+
uv run ./manage.py makemigrations
29
14
30
15
## Code style
31
16
32
-
This library uses [Black](https://github.com/psf/black) for code formatting. The correct version of Black will be installed by `pip install -e '.[test]'` - you can run `black .` in the root directory to apply those formatting rules.
17
+
This library uses [Black](https://github.com/psf/black) for code formatting. You can run it like this:
18
+
19
+
uv run black .
33
20
34
21
## Documentation
35
22
@@ -38,8 +25,7 @@ Documentation for this project uses [MyST](https://myst-parser.readthedocs.io/)
38
25
To build the documentation locally, run the following:
39
26
40
27
cd docs
41
-
pip install -r requirements.txt
42
-
make livehtml
28
+
uv run --with-requirements requirements.txt make livehtml
43
29
44
30
This will start a live preview server, using [sphinx-autobuild](https://pypi.org/project/sphinx-autobuild/).
0 commit comments