-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from WizzyGeek/devops
Add configuration for tox, poetry and mypy
- Loading branch information
Showing
25 changed files
with
870 additions
and
97 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- TODO, write more about tox and poetry later --> | ||
|
||
# What you need. | ||
|
||
Install tox as mentioned [here](https://tox.wiki/en/latest/installation.html) | ||
|
||
Then install poetry as detailed [here](https://python-poetry.org/docs/#installation) | ||
|
||
|
||
|
||
## Adding a dependency | ||
Warning, never use pip to add a dependency. Nasty things are gonna | ||
happen if you ignore that advice. | ||
|
||
``` | ||
$ poetry add yourdep yourdep2 ... | ||
``` | ||
|
||
The command may take time due to dependency resolution sometimes, but | ||
if it exceeds 5 minutes it is abnormal. Usually it should be done before you notice. | ||
|
||
## Spawning a shell in the environment | ||
|
||
``` | ||
$ poetry shell | ||
``` | ||
|
||
You can learn more at https://python-poetry.org/docs/cli/ | ||
|
||
## Running tests | ||
|
||
``` | ||
$ tox r | ||
``` |
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
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
Oops, something went wrong.