Skip to content

Commit

Permalink
add a fake KARMABOT_DATABASE_URL to the nox env (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmayd authored Sep 9, 2020
1 parent a3afbae commit 94f23ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ The poetry virtual environment should be available in the the project folder as
For testing you need to install [nox](https://nox.thea.codes/en/stable/) separately from the project venv created by poetry. For testing just use the `nox` command within the project folder. You can run all the nox sessions separately if need, e.g.,

- only linting `nox -rs lint`
- only testing `nox -rs test`
- only testing `nox -rs tests`

For different sessions see the `nox.py` file. Please make sure all tests and checks pass before opening pull requests!
For different sessions see the `nox.py` file. You can run `nox --list` to see a list of all available sessions.

Please make sure all tests and checks pass before opening pull requests!

### [pre-commit](https://pre-commit.com/)

Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"KARMABOT_SLACK_INVITE_USER_TOKEN": "FAKE_INVITE_USER_TOKEN",
"KARMABOT_GENERAL_CHANNEL": "GENERAL",
"KARMABOT_ADMINS": "FAKE_ADMIN",
"KARMABOT_DATABASE_URL": "FAKE_URL",
}

nox.options.sessions = "lint", "mypy", "safety", "tests"
Expand Down

0 comments on commit 94f23ed

Please sign in to comment.