mirror of
https://github.com/jantic/DeOldify.git
synced 2026-09-21 04:28:14 +08:00
With these changes Black and Pylint become a required check for every PR.
22 lines
303 B
INI
22 lines
303 B
INI
[tox]
|
|
envlist=static,format
|
|
skipsdist=True
|
|
|
|
[testenv]
|
|
whitelist_externals=
|
|
/usr/bin/sh
|
|
/usr/bin/test
|
|
|
|
[testenv:format]
|
|
deps=
|
|
black
|
|
commands=
|
|
black -S --check deoldify
|
|
|
|
[testenv:static]
|
|
deps=
|
|
-rrequirements.txt
|
|
pylint
|
|
commands=
|
|
sh -c 'pylint --disable=W deoldify; test $(( $? & (1|2|4|32) )) = 0'
|