refactor: make the path relative to the linting script (#264)

This commit is contained in:
Kevin 2022-09-02 18:52:15 +07:00 committed by GitHub
parent d9c53ca6b2
commit 7cc06460e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
#!/bin/bash
# These are the same steps we are running in Travis CI
python tests/syntax_lint.py
python $(dirname "$0")/../tests/syntax_lint.py
flake8 --max-line-length=100 . && echo "PEP8 Passed"