diff --git a/.github/linters/.flake8 b/.github/linters/.flake8 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/linters/.flake8 @@ -0,0 +1 @@ + diff --git a/.github/linters/.python-lint b/.github/linters/.python-lint new file mode 100644 index 0000000..e46e081 --- /dev/null +++ b/.github/linters/.python-lint @@ -0,0 +1,2 @@ +[MESSAGES CONTROL] +disable=import-error diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..4ef0890 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,57 @@ +--- +########################### +########################### +## Linter GitHub Actions ## +########################### +########################### +name: Lint Code Base + +# +# Documentation: +# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [master] + # Remove the line above to run when pushing to master + pull_request: + branches: [master] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v3 + env: + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_ALL_CODEBASE: true + VALIDATE_PYTHON_BLACK: false + VALIDATE_PYTHON_ISORT: false diff --git a/setup.py b/setup.py index e4f9c7b..68850ec 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setuptools.setup( name='wavefront-sdk-python', - version='1.7.8', + version='1.7.9', author='Wavefront by VMware', author_email='chitimba@wavefront.com', url='https://github.com/wavefrontHQ/wavefront-sdk-python',