Skip to content

Commit 3e82397

Browse files
committed
better readme
1 parent f1a4d32 commit 3e82397

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- markdownlint-disable MD059 -->
2+
13
# Template
24

35
![testing workflow](https://github.com/Komorebi-AI/python-template/actions/workflows/pytest.yml/badge.svg)
@@ -23,7 +25,6 @@ Tools:
2325

2426
- [uv](https://docs.astral.sh/uv/): manage dependencies, Python versions and virtual environments
2527
- [ruff](https://docs.astral.sh/ruff/): lint and format Python code
26-
- [mypy](https://mypy.readthedocs.io/): check types
2728
- [pytest](https://docs.pytest.org/en/): run unit tests
2829
- [pre-commit](https://pre-commit.com/): manage pre-commit hooks
2930
- [prettier](https://prettier.io/): format YAML and Markdown
@@ -59,12 +60,18 @@ Install package and pinned dependencies with the [`uv`](https://docs.astral.sh/u
5960

6061
### Library
6162

62-
Install a specific version of the package with `pip` or `uv pip`:
63+
If using `pip` or `uv pip`, a specific version of the package can be installed with:
6364

6465
```{bash}
6566
pip install git+ssh://git@github.com/Komorebi-AI/template.git@0.1.0
6667
```
6768

69+
It can also be added to the `requirements.in` or `pyproject.toml`. If using `uv`, it can be added as a dependency with:
70+
71+
```{bash}
72+
uv add "python-template @ git+https://github.com/Komorebi-AI/python-template@0.1.0"
73+
```
74+
6875
## Setup development environment (Unix)
6976

7077
Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) and pre-commit hooks:
@@ -95,6 +102,18 @@ Remove dependency with:
95102
uv remove <PACKAGE>
96103
```
97104

105+
Upgrade all dependencies:
106+
107+
```{bash}
108+
uv lock --upgrade
109+
```
110+
111+
or a single package:
112+
113+
```{bash}
114+
uv lock --upgrade-package ruff
115+
```
116+
98117
In all cases `uv` will automatically update the `uv.lock` file and sync the virtual environment. This can also be done manually with:
99118

100119
```{bash}
@@ -122,9 +141,3 @@ make ruff
122141
```{bash}
123142
make test
124143
```
125-
126-
#### Run type checker
127-
128-
```{bash}
129-
make mypy
130-
```

0 commit comments

Comments
 (0)