mirror of https://github.com/nicolargo/glances
Make the Makefile format target compliant with the future Glancesv4 branch
parent
82bbd00b6c
commit
499288c108
2
Makefile
2
Makefile
|
@ -49,7 +49,7 @@ test: venv-upgrade venv-dev-upgrade ## Run unit tests
|
|||
|
||||
format: venv-dev-upgrade ## Format the code
|
||||
@git ls-files '*.py' | xargs ./venv/bin/python -m autopep8 --in-place --jobs 0 --global-config=.flake8
|
||||
@git ls-files '*.py' | xargs ./venv/bin/python -m autoflake --in-place --remove-all-unused-imports --remove-unused-variables --remove-duplicate-keys --exclude="compat.py"
|
||||
@git ls-files '*.py' | xargs ./venv/bin/python -m autoflake --in-place --remove-all-unused-imports --remove-unused-variables --remove-duplicate-keys --exclude="compat.py,globals.py"
|
||||
./venv/bin/python -m black ./glances --exclude outputs/static
|
||||
|
||||
flake8: venv-dev-upgrade ## Run flake8 linter.
|
||||
|
|
Loading…
Reference in New Issue