From 1fee39dddf79937c198a4b7450ff1892394ec1b8 Mon Sep 17 00:00:00 2001 From: Ayush Shah Date: Fri, 10 Sep 2021 11:59:33 +0530 Subject: [PATCH] Pylint fix (#460) * Pylint fix * Directory modified * Python Source added * Pylint modified --- .github/workflows/pylint.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index cd321f1b3d1..112be5681fa 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -27,14 +27,17 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.9 - - name: Install dependencies + - name: Install Ubuntu related dependencies run: | - python -m pip install --upgrade pip - pip install pylint + sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv + - name: Install Python & Openmetadata related dependencies + run: | + python3 -m venv env + source env/bin/activate cd ingestion - sudo apt-get install -y libsasl2-dev unixodbc-dev - pip install '.[all]' + pip install '.[all]' pylint - name: Analysing the code with pylint run: | + source env/bin/activate pylint $(find ./ingestion/src -path ./ingestion/src/metadata/generated -prune -false -o -type f -name "*.py") \ No newline at end of file