aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-20 07:52:30 +0200
committerEgor Tensin <egor@tensin.name>2026-05-20 07:52:30 +0200
commit5b740b93e97f9f8ea08ea3dd8335f0f69c315ada (patch)
tree53b15a89a13a725990af065175dbd2b2b21d871f
parentmain: move out the error header code (diff)
downloadcgitize-5b740b93e97f9f8ea08ea3dd8335f0f69c315ada.tar.gz
cgitize-5b740b93e97f9f8ea08ea3dd8335f0f69c315ada.zip
pylint: add support for pylint-venv
Diffstat (limited to '')
-rw-r--r--.pylintrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/.pylintrc b/.pylintrc
index eeb630b..93ae978 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -1,3 +1,10 @@
+[MAIN]
+# Enable Pylint to be run in the venv:
+init-hook=
+ try: import pylint_venv
+ except ImportError: pass
+ else: pylint_venv.inithook()
+
[MESSAGES CONTROL]
disable=invalid-name,missing-docstring,too-few-public-methods,too-many-arguments