Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 1442e3e

Browse files
aguschinmike0sv
andauthored
Add pylint (#36)
Addressing pylint warnings in few dozens of commits. Co-authored-by: mike0sv <mike0sv@gmail.com>
1 parent 351fac2 commit 1442e3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1170
-330
lines changed

.github/workflows/check-test-release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
pull_request:
55
schedule:
6-
- cron: '0 9 * * 1' # M H d m w (Mondays at 9:00)
6+
- cron: '0 7 * * 1' # M H d m w (Mondays at 7:00)
77
jobs:
88
check:
99
if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.event_name == 'schedule' || github.repository_owner != 'iterative'
@@ -21,7 +21,7 @@ jobs:
2121
path: ~/.cache/pre-commit
2222
key: pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }}
2323
- run: pip install -U pre-commit tox
24-
- run: pre-commit run -a --show-diff-on-failure
24+
- run: SKIP=pylint pre-commit run -a --show-diff-on-failure
2525
test:
2626
if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.event_name == 'schedule' || github.repository_owner != 'iterative'
2727
name: Test py${{ matrix.python }}
@@ -35,11 +35,12 @@ jobs:
3535
fetch-depth: 0
3636
- uses: actions/setup-python@v2
3737
# legacy-resolver makes install faster by order of magnitude
38-
- run: pip install -U .[tests] --use-deprecated=legacy-resolver
38+
- run: pip install -U pre-commit .[tests] --use-deprecated=legacy-resolver
3939
- run: pytest
4040
env:
4141
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
4242
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
43+
- run: pre-commit run pylint -a --show-diff-on-failure
4344
- name: "Upload coverage to Codecov"
4445
uses: codecov/codecov-action@v1
4546
with:

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ repos:
4545
- types-six
4646
- types-PyYAML
4747
- pydantic
48+
- repo: local
49+
hooks:
50+
- id: pylint
51+
name: pylint
52+
entry: pylint
53+
language: system
54+
types: [ python ]
4855
# - repo: https://github.com/PyCQA/bandit
4956
# rev: '1.7.0'
5057
# hooks:

0 commit comments

Comments
 (0)