diff options
Diffstat (limited to 'nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml')
-rw-r--r-- | nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml b/nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml index cab4c067e0d3..5f70f74d5d90 100644 --- a/nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml +++ b/nixpkgs/nixos/doc/manual/development/writing-nixos-tests.xml @@ -449,5 +449,16 @@ import ./make-test-python.nix { ''; } </programlisting> + This will produce a Nix warning at evaluation time. To fully disable the + linter, wrap the test script in comment directives to disable the Black linter + directly (again, don't commit this within the Nixpkgs repository): +<programlisting> + testScript = + '' + # fmt: off + <replaceable>Python codeā¦</replaceable> + # fmt: on + ''; +</programlisting> </para> </section> |