Commit b4831914 authored by Katerina Koukiou's avatar Katerina Koukiou

Add syntax-check target in Makefile.am

For now syntax checking is performed only on the python
files using flake8.

E501: (line too long) warning is ignored.
Signed-off-by: 's avatarKaterina Koukiou <kkoukiou@redhat.com>
Reviewed-by: 's avatarJán Tomko <jtomko@redhat.com>
parent 7200a3db
......@@ -29,7 +29,7 @@ Running from git repository
```
* Before posting a patch, you should run tests:
* Before posting a patch, you should run tests and perform syntax-checking:
```
make check
......@@ -37,6 +37,12 @@ Running from git repository
The test tool requires python3, python3-pytest and python3-dbus.
```
make syntax-check
```
To run this flake8 package is required.
* To run libvirt-dbus directly from the build dir without installing it
use the run script:
......
......@@ -42,3 +42,10 @@ gen-AUTHORS:
mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
rm -f all.list maint.list contrib.list; \
fi
# E501: (line too long) warning is ignored.
.PHONY: flake8
flake8:
flake8 --show-source --ignore=E501
syntax-check: flake8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment