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: CONTRIBUTING.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,12 @@ Once there is consensus that a PR based on the issue would be helpful, adhering
25
25
26
26
### Setting Up Your Development Environment
27
27
28
-
To set up your development environment, you can follow these steps:
28
+
To set up your development environment, first clone the posit-dev/pointblank repository.
29
29
30
-
- Clone the posit-dev/pointblank repository
31
-
- Create a virtual environment for the folder
32
-
- Install the package in editable mode with `pip install -e .` from the root of the project folder
30
+
If you're using UV, you may run `uv sync` and your environment is setup! If using pip or another package manager, keep following these steps:
31
+
32
+
- Create a virtual environment for the folder.
33
+
- Install the package in editable mode with `pip install -e .` from the root of the project folder.
33
34
- Install the development dependencies with `pip install '.[dev]'` (have a look at the `pyproject.toml` file for the list of development dependencies)
34
35
35
36
Our documentation uses `quartodoc` which in turn requires a local install of the Quarto CLI. To install Quarto, go to <https://quarto.org/docs/get-started/> to get the latest build for your platform.
@@ -43,3 +44,7 @@ Building the documentation can be done with `make docs-build` from the root of t
43
44
The tests are located in the `tests` folder and we use `pytest` for running them. To run all of the tests, use `make test`. If you want to run a specific test file, you can use `pytest tests/test_file.py`.
44
45
45
46
If you create new tests involving snapshots, please ensure that the resulting snapshots are relatively small. After adding snapshots, use `make test-update` (this runs `pytest --snapshot-update`). A subsequent use of `make test` should pass without any issues.
47
+
48
+
### Linting and Type Checking
49
+
50
+
We use `ruff` for linting, the settings used are fairly loose and objective. Linting is run in pre-commit in CI. You can run it locally with `make lint`. Type checking is currently not enforced, but we intend on gradually typing the codebase. You can run `make type` to run Astral's new experimental type checker `ty`. Feel free to leverage type hints and occasionally type checking but it's not obligatory at this time.
0 commit comments