lint python
This commit is contained in:
parent
a5d8c67260
commit
5a89616f5c
1 changed files with 10 additions and 0 deletions
10
sh/lint/python.sh
Normal file
10
sh/lint/python.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# lint python code
|
||||||
|
rwx_python_lint() {
|
||||||
|
local path="${1}"
|
||||||
|
# check pydoc
|
||||||
|
rwx_log "pydoc"
|
||||||
|
pydoclint "${path}"
|
||||||
|
# check typing
|
||||||
|
rwx_log "mypy"
|
||||||
|
mypy "${path}"
|
||||||
|
}
|
Loading…
Reference in a new issue