Skip to content

Commit

Permalink
👷 Pre-commit: Ignore import error (pylint)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Feb 27, 2024
1 parent 056e14e commit 71b6172
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pre-commit-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
steps:
- uses: actions/checkout@main

- name: Install python
uses: actions/setup-python@main
with:
cache: pip
python-version: "3.12"
# - name: Install python
# uses: actions/setup-python@main
# with:
# cache: pip
# python-version: "3.12"

- name: Install python requirements
run: pip install -r requirements.txt
# - name: Install python requirements
# run: pip install -r requirements.txt

- uses: pre-commit/action@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
hooks:
- id: pylint
types: [python]
args: ["--rcfile=.pylintrc"]
args: ["--rcfile=.pylintrc", "--disable=F0401"]

- repo: https://github.com/asottile/yesqa
rev: v1.5.0
Expand Down
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ disable=
missing-docstring,
protected-access,
too-few-public-methods,
disallowed-name
disallowed-name,
import-error

[MASTER]

Expand Down

0 comments on commit 71b6172

Please sign in to comment.