Skip to content

Commit

Permalink
chore: Simplify 'pixi run' commands (#10)
Browse files Browse the repository at this point in the history
* The run commands are properly defined in the environments and are unique,
  so the environment does not need to be specified with the --environment flag.
  • Loading branch information
matthewfeickert authored Mar 29, 2024
1 parent d0232ef commit 77cee6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:

- name: Test with pytest and coverage
run: |
pixi run --environment test test
pixi run test
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:

- name: Lint with ruff
run: |
pixi run --environment lint ruff
pixi run ruff
- name: Check formatting with black
run: |
pixi run --environment lint black
pixi run black
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ pixi run <task name>
So for example, to run all the tests run

```
pixi run --environment test test
pixi run test
```

or to lint

```
pixi run --environment lint lint
pixi run lint
```

If you would like to have interactive shell access (like a classic virtual environment) run
Expand Down

0 comments on commit 77cee6a

Please sign in to comment.