Skip to content

Commit

Permalink
Merge pull request #7 from stfc/6-adding-ignored-module-to-pyprojectt…
Browse files Browse the repository at this point in the history
…oml-triggers-an-error

change the arg used for pylint ignored-modules
  • Loading branch information
RobFirth authored Jul 11, 2022
2 parents 0800a0f + f488b36 commit 24c5a3c
Show file tree
Hide file tree
Showing 4 changed files with 1,179 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ example configuration:
repos:
- repo: https://github.com/stfc/pre-commit-hooks
rev: v0.3.1
rev: v0.3.2
hooks:
- id: check-mypy-import-errors
- id: check-pylint-import-errors
Expand Down
2 changes: 1 addition & 1 deletion hooks/utils/setup_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def add_pylint_ignore(self, bad_imports):

self._modify_section_line(
section_name="[pylint]",
line_start="ignored_modules = ",
line_start="ignored-modules = ",
line_end=bad_imports,
mode="append",
)
Expand Down
Loading

0 comments on commit 24c5a3c

Please sign in to comment.