File: check-missing-types

package info (click to toggle)
pyglossary 5.0.9-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,896 kB
  • sloc: python: 46,165; sh: 308; javascript: 100; xml: 42; makefile: 28
file content (18 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e

if [ -z "$1" ]; then
	cd $(dirname "$0")/..
	set .
fi

if [ -z "$NO_COLOR" ]; then
	export CLICOLOR_FORCE=1
fi

ruff check --fix "$@"
ruff check --select ANN "$@" |
	grep -v 'Missing type annotation for `\*\*' |
	grep -v _test.py |
	grep -v _debug.py |
	less -R