@@ -43,66 +43,55 @@ When creating each pull request, it is crucial to adhere to the provided
4343instructions:
4444
454501 . [ Fork] [ fork ] the repo and clone it to your machine.
46- 02 . Go to the project's root directory to create the virtual environment and
47- activate it :
46+ 02 . Go to the project's root directory and sync development dependencies with
47+ [ uv ] [ uv ] :
4848
4949 ``` console
50- $ python -m venv .venv && . .venv/bin/activate
50+ $ uv sync --locked
5151 ```
5252
53- > In order to precisely reproduce the development environment, it is
54- > recommended to use the Python version specified in
55- > [`.python- version`][python-version]. The version given therein is checked
56- > out by default in all the CI environments .
53+ > The command above creates a local virtual environment (`.venv`) and
54+ > installs all dependencies required for development. If a compatible
55+ > Python version is not available on your machine, `uv` will resolve and
56+ > install one automatically .
5757
58- 03. Install the package in editable (development) mode, along with all the
59- optional dependencies:
58+ 03. Install [Pre-commit][pre-commit] hooks:
6059
6160 ```console
62- $ pip install -e ".[dev,docs,lint,test]"
61+ $ uv run pre-commit install
6362 ```
6463
65- 04. Install [Pre-commit][pre-commit] hooks :
64+ 04. Run linters and tests using [Nox][nox] :
6665
6766 ```console
68- $ pre-commit install
69- ```
70-
71- 05. Run linters and tests using [Nox][nox]:
72-
73- ```console
74- $ nox
67+ $ uv run nox
7568 ```
7669
7770 This will check your fork's setup, the code quality with linters, run the
7871 existing tests in different Python environments, and measure the coverage.
7972
80- > Note that you should have all the versions of Python installed on your
81- > machine. Consider using [`pyenv`][pyenv] to work with multiple Python
82- > interpreters.
83-
8473 If you want to be more specific, you can only run the linting or testing
8574 suites via the respective Nox sessions. All the available sessions can be
8675 listed using the command:
8776
8877 ```console
89- $ nox -l
78+ $ uv run nox -l
9079 ```
9180
9281 For more details, see [`noxfile.py`][noxfile] and [Nox docs][nox-docs].
9382 Besides, note that all the linters and testing tools are installed in the
94- virtual environment anyway . Therefore, feel absolutely free to use them
95- independently of Nox as well .
83+ local uv-managed virtual environment. Therefore, feel absolutely free to
84+ invoke them independently of Nox via `uv run`, e.g., `uv run ruff check .` .
9685
97- 06 . Check out a new feature branch and introduce changes.
86+ 05 . Check out a new feature branch and introduce changes.
9887
9988 > All the changes affecting the codebase must be accompanied by relevant
10089 > unit tests and documentation updates. We always attempt to maintain 100%
10190 > test coverage, and we require that from all pull requests as well. Those
10291 > with tests missing (if they are needed, of course) have exactly zero
10392 > chance of being merged!
10493
105- 07 . Run Nox.
94+ 06 . Run Nox.
10695
10796 If all the Nox sessions are successful and the changes are covered by tests,
10897 commit your changes and push them to remote.
@@ -112,7 +101,7 @@ instructions:
112101 > test everything locally before pushing to remote and opening a pull
113102 > request.
114103
115- 08 . [Create a pull request][create-pull-request] from the feature branch of your
104+ 07 . [Create a pull request][create-pull-request] from the feature branch of your
116105 fork to the `main` branch of the original repository.
117106
118107 > Don't forget to mark the pull request with an appropriate Gitmoji! 😜
@@ -135,5 +124,4 @@ project's maintainers as soon as possible. 🧐
135124[open-feature-request]: https://github.com/paduszyk/python-gitmojis/issues/new?template=feature-request.yml
136125[open-issue]: https://github.com/paduszyk/python-gitmojis/issues/new/choose
137126[pre-commit]: https://pre-commit.com
138- [pyenv]: https://github.com/pyenv/pyenv
139- [python-version]: https://github.com/paduszyk/python-gitmojis/blob/main/.python-version
127+ [uv]: https://docs.astral.sh/uv/
0 commit comments