-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
nixos/python-test-driver: add option to disable the linter without warning #96515
Conversation
…rning This follows up from nixpkgs#76171 to add a way to disable the linter for NixOS tests using the Python driver, without printing a warning to the console, as `skipLint` does. Linting is skipped if either `skipLint` or the new `skipLintSilently` option are true, but a warning about skipping is only printed if `skipLintSilently` is false. This is meant to allow running tests during development, or outside of Nixpkgs, without forcing unnecessary work to conform to a style guide when it's not relevant.
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.
I'm not sure adding yet another option to disable linting entirely is the right way to approach this, and would rather prefer if we'd have a discussion about how/what linting we want to have in #72964.
I would agree with that |
Closing as this isn't needed, Black already offers a way with |
Can you add a small reference to it in the manual? (Maybe add this is for non-nixpkgs usages)
|
Yes, that's a good suggestion! Will do.
…On September 3, 2020 10:46:36 p.m. PDT, Florian Klink ***@***.***> wrote:
Can you add a small reference to it in the manual? (Maybe add this is
for non-nixpkgs usages)
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#96515 (comment)
|
Motivation for this change
This is to partially address #72964.
This follows up from #76171 to add a way to disable the linter for
NixOS tests using the Python driver, without printing a warning to the
console, as
skipLint
does. Linting is skipped if eitherskipLint
orthe new
skipLintSilently
option are true, but a warning about skippingis only printed if
skipLintSilently
is false.This is meant to allow running tests during development, or outside of
Nixpkgs, without forcing unnecessary work to conform to a style guide
when it's not relevant.
skipLintSilently
is not meant to be used for merged to Nixpkgs main,non-feature branches.
I'm open to combining these two parameters or having some other way
to pass them in, I more just want a way to turn off a stream of
messages I see when building a bunch of tests with linting disabled.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)