Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kunaljubce/integrate pylint to validate imports #21

Merged
merged 4 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: pr-build

on:
workflow_dispatch:

pull_request:
types:
- labeled
- opened
- synchronize
- reopened

jobs:
test_imports:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Install pipenv
run: python -m pip install --upgrade pip && pip install pipenv -q

- name: Cache pipenv
id: cache-pipenv
uses: actions/[email protected]
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-public-${{ hashFiles('**/Pipfile.lock') }}

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv sync -d

- name: pylink checker for imports
run: pipenv run pylint --disable=all --enable=import-error --jobs=3 tests src utils
7 changes: 4 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ verify_ssl = true
name = "pypi"

[packages]
google-api-python-client = "*"
google-auth-httplib2 = "*"
google-auth-oauthlib = "*"
google-api-python-client = "==2.145.0"
google-auth-httplib2 = "==0.2.0"
google-auth-oauthlib = "==1.2.1"
sqlalchemy = "*"
openpyxl = "*"
pandas = "*"
pytest = "*"
oauth2client = "*"
pylint = "*"

[dev-packages]

Expand Down
59 changes: 58 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading