Skip to content

Commit

Permalink
Fix Pylint config check strings (pantsbuild#14946)
Browse files Browse the repository at this point in the history
- According to https://pylint.pycqa.org/en/latest/user_guide/run.html the section _starts with_ `tool.pylint`. (E.g. `[tool.pylint.MASTER]`)
- It's `.pylintrc` not `.pylinrc` (missing "t")
  • Loading branch information
thejcannon authored and Eric-Arellano committed Mar 29, 2022
1 parent f8de434 commit 35f857b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/python/lint/pylint/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def config_request(self, dirs: Iterable[str]) -> ConfigFilesRequest:
specified=self.config,
specified_option_name=f"[{self.options_scope}].config",
discovery=cast(bool, self.options.config_discovery),
check_existence=[".pylinrc", *(os.path.join(d, "pylintrc") for d in ("", *dirs))],
check_content={"pyproject.toml": b"[tool.pylint]", "setup.cfg": b"[pylint."},
check_existence=[".pylintrc", *(os.path.join(d, "pylintrc") for d in ("", *dirs))],
check_content={"pyproject.toml": b"[tool.pylint.", "setup.cfg": b"[pylint."},
)

@property
Expand Down

0 comments on commit 35f857b

Please sign in to comment.