@@ -70,44 +70,22 @@ and understanding are greatly appreciated.
7070
7171## Development
7272
73- ** higlass-python** uses
74- [ the recommended] ( https://packaging.python.org/en/latest/flow/# ) ` hatchling `
75- build-system, which is convenient to use via the
76- [ ` hatch ` CLI] ( https://hatch.pypa.io/latest/ ) . We recommend installing ` hatch `
77- globally (e.g., via ` pipx ` ) and running the various commands defined within
78- ` pyproject.toml ` . ` hatch ` will take care of creating and synchronizing a virtual
79- environment with all dependencies defined in ` pyproject.toml ` .
73+ ** higlass-python** uses uses [ uv] ( https://astral.sh/uv ) for development.
8074
8175### Commands Cheatsheet
8276
8377All commands are run from the root of the project, from a terminal:
8478
85- | Command | Action |
86- | :--------------------- | :------------------------------------------------------------------ |
87- | ` hatch run fix ` | Format project with ` black . ` and apply linting with ` ruff --fix . ` |
88- | ` hatch run lint ` | Lint project with ` ruff . ` . |
89- | ` hatch run test ` | Run unit tests with ` pytest ` in latest Python version. |
90- | ` hatch run test:test ` | Run unit tests with ` pytest ` in all target Python versions. |
91- | ` hatch run docs:build ` | Build the documentation in ` docs/_build/html ` . |
92- | ` hatch run docs:serve ` | Start an dev-server for live editing RST files in ` docs/ ` . |
93-
94- > ** Note** : ` hatch build ` and ` hatch publish ` are available to build and publish
95- > the project to PyPI, but all releases are handled automatically via CI.
96-
97- Alternatively, you can develop ** higlass-python** by manually creating a virtual
98- environment and managing installation and dependencies with ` pip ` . For example,
99- create a virtual environment with ` conda ` :
100-
101- ``` bash
102- conda create -n higlass python=3.11
103- conda activate higlass
104- ```
105-
106- and install ** higlass-python** in _ editable_ mode with all optional
107- dependencies:
79+ | Command | Action |
80+ | ---------| --------|
81+ | ` uv run ruff check --fix && uv run ruff format ` | Lint and apply formatting |
82+ | ` uv run check ` | Check linting rules |
83+ | ` uv run ruff format --check ` | Check formatting |
84+ | ` uv run pytest ` | Run unit tests |
85+ | ` uv run docs/build.py ` | Build the documentation in ` docs/_build/html ` |
10886
109- ``` bash
110- pip install -e " .[dev,fuse,docs] "
111- ```
87+ This table now includes only the UV-related commands, with each command in the
88+ left column and its corresponding action in the right column. The formatting is
89+ clean and easy to read.
11290
113- Our CI checks formatting ( ` black . ` ) , linting ( ` ruff . ` ) , and tests ( ` pytest ` ) .
91+ Our CI enforces formatting, linting, and tests.
0 commit comments