mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
4aaf9d9d1f
* Add contacts shortcut and link to config file * Remove logging in utils * Remove unused imports and create script for checking formatting * Remove unused import <Iterable> in models * Fix check.sh script * Reformat check.sh * Update isort * Add check flag for black
20 lines
527 B
Bash
Executable file
20 lines
527 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
echo Checking and formatting with black...
|
|
black --check .
|
|
|
|
echo Python type checking...
|
|
mypy tg --warn-redundant-casts --warn-unused-ignores \
|
|
--no-warn-no-return --warn-unreachable --strict-equality \
|
|
--ignore-missing-imports --warn-unused-configs \
|
|
--disallow-untyped-calls --disallow-untyped-defs \
|
|
--disallow-incomplete-defs --check-untyped-defs \
|
|
--disallow-untyped-decorators
|
|
|
|
echo Checking import sorting...
|
|
isort -c tg/*.py
|
|
|
|
echo Checking unused imports...
|
|
flake8 --select=F401
|