ricardochaves / python-lint

GitHub Action for Lint your code
MIT License
92 stars 41 forks source link

Error: No module named 'pylint-pytest' #15

Open LorhanSohaky opened 3 years ago

LorhanSohaky commented 3 years ago

I'm new to Python. I'm trying to set up a script to pass the pylint. I managed to configure the pre-commit, but the CI script had a problem

lint.yml

name: lint
on: [pull_request]
jobs:
  code_style:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Install requirements
        run: pip install -r requirements.txt
      - uses: ricardochaves/python-lint@v1.4.0
        with:
          use-pycodestyle: false
          use-black: false
          use-mypy: false
          extra-pylint-options: "--errors-only --rcfile .pylintrc"

.pylintrc

[MASTER]
init-hook='import sys; sys.path.append(".")'
load-plugins=pylint_pytest
extension-pkg-whitelist=pydantic
ricardochaves commented 3 years ago

Hi @LorhanSohaky.

Could you send me the error, please?

LorhanSohaky commented 3 years ago

@ricardochaves , here

image