-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/emulator: add license, lint with ruff #412
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new formatting LGTM, though I am not that familiar with ruff or its alternatives. But basic linting and formatting is always a good thing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nitpick but looks good
uses: cachix/install-nix-action@v25 | ||
|
||
- name: Run ruff linter | ||
run: nix run 'nixpkgs#ruff' -- check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the interest of running the version of ruff we expect to run, shouldn't this point to something in flake.nix
? Unfortunately I don't think nix run .#nixpkgs.legacyPackages.x86_64.ruff
works but we could expose ruff in the flake and run that.
hm. maybe it'd be more logical to pack it into a flake check than to expose ruff from it? I don't have experience with flake checks though.
|
in the end, a flake check is just a derivation that either ends with |
Adds ruff-based linting for python files.
Related to @shelvacu's #393,
where I do appreciate the idea of linting, but I'd like to have it decoupled from script-building time.