Skip to content

Commit

Permalink
Use custom dev shells for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed May 23, 2024
1 parent 06f9cb8 commit e590b19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
- run: nix develop -c poetry run isort ./tested ./tests
- run: nix develop -c black ./tested ./tests
- run: nix develop .#format -c poetry run isort --check-only ./tested ./tests
- run: nix develop .#format -c poetry run black --check ./tested ./tests
types:
runs-on: ubuntu-latest
steps:
Expand All @@ -32,4 +32,4 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
- run: nix develop -c pyright ./tested
- run: nix develop .#types -c pyright ./tested
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
}
];
};
types = pkgs.mkShell {
packages = [ pkgs.nodePackages.pyright ];
};
format = pkgs.mkShell {
packages = [ python-dev-env pkgs.poetry ];
};
};
});
}
Expand Down

0 comments on commit e590b19

Please sign in to comment.