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
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,14 +67,14 @@ Start by visiting the [Spotify Developer Portal](https://developer.spotify.com/d
67
67
68
68
The project utilizes the [pre-commit](https://pre-commit.com/) framework. Having [created a virtual environment and installed the required dependencies](#installing-poetry), you may run `pre-commit install` to install the [git hook scripts](https://github.com/the-dotify-project/dotify/blob/master/.pre-commit-config.yaml).
69
69
70
-
### Formatting, Linting and Testing
70
+
### Using `tox`
71
71
72
-
All of the above can be done via [tox](https://tox.readthedocs.io/en/latest/config.html):
72
+
> We are using [tox](https://tox.readthedocs.io/en/latest/index.html) to automate testing on multiple environments.
73
73
74
74
- You can lint the code by simply running `tox -e lint`
75
75
- Checking for type errors, using [Mypy](https://mypy.readthedocs.io/en/stable/), can be achieved via `tox -e type-check`
76
76
- Checking if your changes follow the project's formatting standard can be done via `tox -e fmt-check`
77
-
- You may run `tox -e py38`in order to run the library's unit tests using Python 3.8 (the `py37`, `py38` and `py39` test environments assumes that you have **Python 3.7, 3.8 or 3.9**installed)
77
+
- You may run `tox -e py38` to run the library's unit tests using Python 3.8 (the `py37`, `py38` and `py39` test environments assume, you have installed **Python 3.7, 3.8 or 3.9**accordingly)
78
78
- Alternatively, you may simply run `tox` to execute all of the above
79
79
80
80
Note that in order to run the test suite, you must export your client credentials beforehand, as such
You may also utilize [direnv](https://direnv.net/), in order to avoid re-exporting them every time you spawn a new shell instance.
87
+
You may also utilize [direnv](https://direnv.net/), so that you avoid re-exporting them every time you spawn a new shell instance.
88
88
89
89
_**ATTENTION**: Even though, using a `.envrc` file is far more convenient than re-exporting environment variables each and every time you open up a new shell, it is **strongly** recommended that, you prefer the first approach as you risk compromising your client credentials otherwise._
90
90
91
+
#### Using `poethepoet`
92
+
93
+
> We are using [poethepoet](https://github.com/nat-n/poethepoet), to perform various development oriented tasks.
94
+
95
+
Formatting, type-checking, running the test suite, as well as a few other operations, can be performed by running `poe <task>`. Please run `poe --help` (or `poetry run poe --help`), to list all available operations.
96
+
91
97
#### (Optional) Installing pyenv
92
98
93
99
[pyenv](https://github.com/pyenv/pyenv) is used, in the context of the **Dotify** project, in order to determine the project's compatibility with various versions of Python. Installing `pyenv` is not strictly required, but it is **strongly** recommended.
0 commit comments