Skip to content

Commit

Permalink
docs: recommended way to run pylint with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Aug 19, 2023
1 parent 6a661f0 commit db69164
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ repos:
additional_dependencies:
[types-freezegun, types-toml, attrs, types-requests, types-python-slugify, types-dataclasses]
# Run pylint also with tox, because local repos don't seem to work well with https://pre-commit.ci/
# Note for future attempts with pylint as a pre-commit hook:
# Using https://github.com/PyCQA/pylint doesn't work, it's a huge pain dealing with [MASTER]init-hook.
# This solution helped: https://github.com/pre-commit/pre-commit/issues/1309
# The recommended way is to use a local hook:
# https://pylint.pycqa.org/en/latest/user_guide/installation/pre-commit-integration.html
- repo: local
hooks:
- id: pylint
Expand Down

0 comments on commit db69164

Please sign in to comment.