File: reformat.sh

package info (click to toggle)
python-test-stages 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 792; sh: 24; makefile: 9
file content (10 lines) | stat: -rwxr-xr-x 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: BSD-2-Clause

set -e

script_path="$(readlink -f -- "$0")"
nix_dir="$(dirname -- "$script_path")"
nix-shell --pure -p nixpkgs-fmt --run "nixpkgs-fmt '$nix_dir'/*.nix"