We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6fad93 commit 11d27adCopy full SHA for 11d27ad
bin/lint.sh
@@ -4,10 +4,19 @@ dir=$(dirname "$0")
4
cd "$dir/.."
5
6
exitCode=0
7
+
8
+# Check for errors and capture non-zero exit codes.
9
uv run validate-pyproject pyproject.toml
10
code=$?; test $code -eq 0 || exitCode=$code
11
+uv run ruff check >/dev/null 2>&1
12
+code=$?; test $code -eq 0 || exitCode=$code
13
+uv run ruff format --check >/dev/null 2>&1
14
15
16
+# Do actual code reformatting.
17
uv run ruff check --fix
18
19
uv run ruff format
20
21
22
exit $exitCode
0 commit comments