Skip to content

Commit

Permalink
Update Pylint GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Lee committed Mar 5, 2024
1 parent 2a6ea6f commit fa5bc7b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 50 deletions.
52 changes: 2 additions & 50 deletions .github/workflows/pylint-github-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,10 @@ name: Pylint
on: [push, pull_request]

jobs:
export-requirements-txt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: divideprojects/poetry-export-requirements-action@v1
with:
without-hashes: true
outfile-name: requirements.txt
- name: Upload requirements.txt
uses: actions/upload-artifact@v4
with:
name: requirements_txt
path: requirements.txt

lint:
needs: export-requirements-txt
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v4

# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: "3.9"

# - name: Install poetry
# uses: abatilo/actions-poetry@v2

# - name: Setup a local virtual environment (if no poetry.toml file)
# run: |
# poetry config virtualenvs.create true --local
# poetry config virtualenvs.in-project true --local

# - name: Install the project dependencies
# run: poetry install --only main

# - name: Export requirements.txt
# run: poetry export -f requirements.txt --output requirements.txt

- name: Download requirements-txt
uses: actions/download-artifact@v4
with:
name: requirements_txt

- name: Lint with PyLint
- name: Pylint and add score to README.md
uses: Silleellie/pylint-github-action@v2
with:
# Path of the package(s) or python file(s) to lint, relative to the repository root.
Expand All @@ -66,11 +25,4 @@ jobs:
# and lint the package(s) or python file(s) specified with the `lint-path` argument
#
# Required
python-version: "3.9"

# Path of the requirements of your project, relative to the repository root.
# This can be easily changed in case you have `requirements-dev.txt`
#
# Optional, Default: requirements.txt
# requirements-path: requirements.txt
# requirements-path: requirements.txt
python-version: "3.9"
44 changes: 44 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
aiocache==0.12.2 ; python_full_version >= "3.8.1" and python_version < "4.0"
aiosqlite==0.19.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
annotated-types==0.6.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
anyio==4.2.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
bcrypt==4.1.2 ; python_full_version >= "3.8.1" and python_version < "4.0"
cffi==1.16.0 ; python_full_version >= "3.8.1" and python_version < "4.0" and platform_python_implementation != "PyPy"
click==8.1.7 ; python_full_version >= "3.8.1" and python_version < "4.0"
colorama==0.4.6 ; python_full_version >= "3.8.1" and python_version < "4.0" and (sys_platform == "win32" or platform_system == "Windows")
cryptography==42.0.2 ; python_full_version >= "3.8.1" and python_version < "4.0"
dnspython==2.5.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
ecdsa==0.18.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
email-validator==2.1.0.post1 ; python_full_version >= "3.8.1" and python_version < "4.0"
exceptiongroup==1.2.0 ; python_full_version >= "3.8.1" and python_version < "3.11"
fastapi-users-db-sqlalchemy==6.0.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
fastapi-users==12.1.3 ; python_full_version >= "3.8.1" and python_version < "4.0"
fastapi-users[sqlalchemy]==12.1.3 ; python_full_version >= "3.8.1" and python_version < "4.0"
fastapi==0.109.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
greenlet==3.0.3 ; python_full_version >= "3.8.1" and python_version < "4.0"
h11==0.14.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
httptools==0.6.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
idna==3.6 ; python_full_version >= "3.8.1" and python_version < "4.0"
makefun==1.15.2 ; python_full_version >= "3.8.1" and python_version < "4.0"
passlib[bcrypt]==1.7.4 ; python_full_version >= "3.8.1" and python_version < "4.0"
pyasn1==0.5.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
pycparser==2.21 ; python_full_version >= "3.8.1" and python_version < "4.0" and platform_python_implementation != "PyPy"
pydantic-core==2.16.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
pydantic-settings==2.1.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
pydantic==2.6.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
pyjwt[crypto]==2.8.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
python-dotenv==1.0.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
python-jose[cryptography]==3.3.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
python-multipart==0.0.7 ; python_full_version >= "3.8.1" and python_version < "4.0"
pyyaml==6.0.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
rsa==4.9 ; python_full_version >= "3.8.1" and python_version < "4"
six==1.16.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
sniffio==1.3.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
sqlalchemy==2.0.25 ; python_full_version >= "3.8.1" and python_version < "4.0"
sqlalchemy[asyncio]==2.0.25 ; python_full_version >= "3.8.1" and python_version < "4.0"
starlette==0.35.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
typing-extensions==4.9.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
uvicorn[standard]==0.27.0.post1 ; python_full_version >= "3.8.1" and python_version < "4.0"
uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_full_version >= "3.8.1" and python_version < "4.0"
watchfiles==0.21.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
websockets==12.0 ; python_full_version >= "3.8.1" and python_version < "4.0"

0 comments on commit fa5bc7b

Please sign in to comment.