From 8b067c88f497c90b69375912f41435a6256b470c Mon Sep 17 00:00:00 2001 From: lgulich Date: Sun, 29 Mar 2020 18:58:36 +0200 Subject: [PATCH] v0.1.4 --- .gitignore | 1 + lib/lg_linter/config/CPPLINT.cfg | 2 +- lib/lg_linter/scripts/init_lg_linter | 6 +++--- setup.py | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1fd8d72..c9bf148 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc dist/ *.egg-info +__pycache__ diff --git a/lib/lg_linter/config/CPPLINT.cfg b/lib/lg_linter/config/CPPLINT.cfg index db74881..7f32c29 100644 --- a/lib/lg_linter/config/CPPLINT.cfg +++ b/lib/lg_linter/config/CPPLINT.cfg @@ -1 +1 @@ -filter=-legal/copyright,-build/header_guard +filter=-legal/copyright,-build/header_guard,-build/include_order diff --git a/lib/lg_linter/scripts/init_lg_linter b/lib/lg_linter/scripts/init_lg_linter index 3ddd0c9..43f51ec 100755 --- a/lib/lg_linter/scripts/init_lg_linter +++ b/lib/lg_linter/scripts/init_lg_linter @@ -5,7 +5,7 @@ REPO_DIR="$(git rev-parse --show-toplevel)" touch "$REPO_DIR"/.git/hooks/pre-commit chmod +x "$REPO_DIR"/.git/hooks/pre-commit -PRE_COMMIT_SCRIPT=' +PRE_COMMIT_SCRIPT=" #!/usr/bin/env python3 import os @@ -24,6 +24,6 @@ def main(): if __name__ == '__main__': exit(main()) -' +" -echo "$PRE_COMMIT_SCRIPT" >> "$REPO_DIR"/.git/hooks/pre-commit +echo "$PRE_COMMIT_SCRIPT" > "$REPO_DIR"/.git/hooks/pre-commit diff --git a/setup.py b/setup.py index f17ea4f..e3e1116 100644 --- a/setup.py +++ b/setup.py @@ -9,14 +9,14 @@ setuptools.setup( name="lg-linter", - version="v0.1.3", + version="v0.1.4", author="Lionel Gulich", author_email="lgulich@ethz.ch", url="https://github.com/lgulich/lg-linter", description="A pre commit linter for cpp, python and sh.", long_description=LONG_DESCRIPTION, long_description_content_type="text/markdown", - download_url="https://github.com/lgulich/lg-linter/archive/v0.1.2b.tar.gz", + download_url="https://github.com/lgulich/lg-linter/archive/v0.1.4.tar.gz", install_requires=[ 'gitpython', 'pylint',