Skip to content

Commit

Permalink
Merge pull request #2 from noteable-io/tox
Browse files Browse the repository at this point in the history
Tox
  • Loading branch information
Matt Kafonek authored Nov 30, 2021
2 parents 0754dc7 + 4c31a31 commit 9a6f638
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 49 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ repos:
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.6.4
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a3
hooks:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ This project uses [poetry](https://python-poetry.org/) and [pre-commit](https://

If the `pre-commit` hooks can not be easily resolved, you can still commit using `git commit --no-verify`.

### Testing

This project uses [tox](https://github.com/tox-dev/tox) and [pytest](https://docs.pytest.org) for testing. You'll need to have [installed tox](https://tox.wiki/en/latest/install.html) on your system Python. To run tests, just execute `tox` (`tox -q` for less verbosity, `tox -p` to run in parallel).

You'll also need a system installation for each Python version you want to test with `tox` (e.g. `python3.7`, `python3.8`, `python3.9`, `python3.10`). Installation steps may be different for each OS. On Ubuntu 20.04, it is a matter of adding the [deadsnakes](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) repository (`sudo add-apt-repository ppa:deadsnakes/ppa`) and installing the version you want: `sudo apt install python3.10`.


## Inspiration and gratitude

Expand Down
Loading

0 comments on commit 9a6f638

Please sign in to comment.