python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Return error message on subprocess exit to VSCode Git
I'm in the process of implementing a little pre-commit hook that calls gitleaks protect prior to every commit.
This works well in a terminal but when trying to commit from within VSCode, a non-descrip...
user237251
Votes: 0
Answers: 2
pre-commit not using virtual environment
I added this to pre-commit-config.yml
- repo: local
hooks:
- id: python-hook
name: python-hook
entry: python python_script.py
language: python
pass_filename...
caverac
Votes: 0
Answers: 1
Allow import from the original module only
Suppose I have three modules:
a.py
class A: ...
b.py
from a import A
c.py
from b import A
Is there some tool that flags the import in c.py, as it is a re-import from the original module?
BayerSe
Votes: 0
Answers: 0
How to display scores for meeting --fail-under requirement .py files in .py lint, while using pre-commit?
My current pylint configuration:
Installed via pip (in requirements.txt).
The .pre-commit-config.yaml:
- repo: local
hooks:
name: pylint
entry: pylint
language: system
...
F1sher
Votes: 0
Answers: 1