Skip to content

Commit

Permalink
docs: fix Nox install command (#2069)
Browse files Browse the repository at this point in the history
See wntrblm/nox#711

`session.run_always` works more similarly to `session.install`.
  • Loading branch information
MicaelJarniac authored Jun 30, 2023
1 parent 2339fd3 commit 390600e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/usage/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ os.environ.update({"PDM_IGNORE_SAVED_PYTHON": "1"})

@nox.session
def tests(session):
session.run('pdm', 'install', '-G', 'test', external=True)
session.run_always('pdm', 'install', '-G', 'test', external=True)
session.run('pytest')

@nox.session
def lint(session):
session.run('pdm', 'install', '-G', 'lint', external=True)
session.run_always('pdm', 'install', '-G', 'lint', external=True)
session.run('flake8', '--import-order-style', 'google')
```

Expand Down

0 comments on commit 390600e

Please sign in to comment.