-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
- Setup authentication through environment variables. | ||
- Preferably a testing account for integration testing. | ||
- Setup authentication through environment variables | ||
- Preferably a testing account for integration testing | ||
|
||
## Basic Environment | ||
|
||
- Development is ran through Poetry. | ||
|
||
1. `$ git clone https://github.com/ddkasa/toggl-api-wrapper` | ||
2. `$ cd toggl-api-wrapper` | ||
3. `$ poetry shell` | ||
4. `$ poetry install` | ||
|
||
- Lint with `$ ruff toggl_api` | ||
- Check typing with `$ mypy toggl_api` | ||
|
||
|
||
### Testing | ||
|
||
- Make sure to set the environment variables plus the correct workspace id through the **TOGGL_WORKSPACE_ID**. | ||
- All tests are run through `$ pytest`. | ||
- Basic unit tests through `$ pytest -m unit`. | ||
- Integration tests through `$ pytest -m integration`. | ||
- Slow tests are marked as well `$ pytest -m slow`. | ||
- Test all supported python versions through `$ tox`. | ||
- *Alternate python version are set through Pyenv in .python-version so make sure those are installed.* | ||
- Test a specific version with the `-e` flag: `$ tox -e py310`. | ||
|
||
1. `git clone https://github.com/ddkasa/toggl-api-wrapper` | ||
2. `cd toggl-api-wrapper` | ||
3. `poetry shell` | ||
4. `poetry install` | ||
|
||
- Lint with `ruff toggl_api` | ||
- Check typing with `mypy toggl_api` | ||
|
||
## Testing | ||
|
||
- Make sure to set the environment variables plus the correct workspace id through the **TOGGL_WORKSPACE_ID** | ||
- All tests are run through `pytest` | ||
- Basic unit tests through `pytest -m unit` | ||
- Integration tests through `pytest -m integration` | ||
- Slow tests are marked as well `pytest -m slow` | ||
- Test all supported python versions through `tox` | ||
- _Alternate python version are set through Pyenv in .python-version so make sure those are installed_ | ||
- Test a specific version with the `-e` flag: `tox -e py310` | ||
|
||
## Git | ||
|
||
- Commit messages are based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) | ||
|
||
## Documentation | ||
|
||
- Run `mkdocs serve --strict` to preview documentation |