diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 62716ef..ea79034 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -3,40 +3,40 @@ name: pylint on: push: branches: - - "main" + - "main" pull_request: - branches: - - "main" - - "develop" - + branches: + - "main" + - "develop" + jobs: linter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install pipenv - pipenv --python '3.10' install --dev + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + pip install pipenv + pipenv --python '3.10' install --dev - - name: Analysing the code with pylint - run: | - pipenv run pylint --rcfile=.pylintrc src/*.py + - name: Analysing the code with pylint + run: | + pipenv run pylint --rcfile=.pylintrc src/*.py - - name: Analysing the code with pycodestyle - run: | - pip install pycodestyle - pipenv run pycodestyle src/*.py + - name: Analysing the code with pycodestyle + run: | + pip install pycodestyle==2.10.0 + pipenv run pycodestyle src/*.py # - name: Analysing the code with black # run: | # pipenv install --skip-lock "black==22.3.0" # pipenv run black --check core/views.py core/views_platform.py - # # $(git ls-files '*.py') \ No newline at end of file + # # $(git ls-files '*.py')