filmov
tv
Configuring Pre-Commit Hooks to Automate Python Testing and Linting in vscode (Visual Studio Code)
Показать описание
In this video tutorial, I'll show you how to set up pre-commit hooks to automatically run Python tests and linting checks every time you commit code changes. Pre-commit hooks are an easy and efficient way to ensure that your code is always up to standards and free of errors, saving you time and effort in the long run. I'll walk you through the process of installing and configuring pre-commit and the necessary plugins, as well as demonstrate how to customize the hook to fit your specific needs. By the end of this tutorial, you'll have a fully functional pre-commit hook setup that will save you time and effort in the development process.
repos:
rev: v2.4.0
hooks:
- id: flake8
args: ["--config", ".flake8"]
- repo: local
hooks:
- id: run-tests
language: script
name: Run tests
stages: [commit]
#!/bin/bash
~/Documents/code/blogthedata/django_project/venv/bin/python3 -m pytest django_project/tests
repos:
rev: v2.4.0
hooks:
- id: flake8
args: ["--config", ".flake8"]
- repo: local
hooks:
- id: run-tests
language: script
name: Run tests
stages: [commit]
#!/bin/bash
~/Documents/code/blogthedata/django_project/venv/bin/python3 -m pytest django_project/tests
Configuring Pre-Commit Hooks to Automate Python Testing and Linting in vscode (Visual Studio Code)
Precommit Hooks Are Bad
Complete guide to GitHooks - Creating your own pre-commit hooks
The easy way to keep your repos tidy.
Python Pre-Commit Hooks Setup in a single video!
Git Commit Hooks with Husky - Format with Prettier on Pre-Commit Tutorial
Automate formatting and linting your code with pre-commit - Arthur Rio
What are GitHooks? Explained in 5 minutes
Git pre-commit hook in 45 seconds! #Shorts
Automatically Detect and Fix Issues in Your Python Code with pre-commit pipeline
Using Git Hooks
11. Git Tutorial - Hooks in git
Git hooks with pre-commit | CodiLime
Automate Code Reviewing and Formatting in Python with pre-commit
Automate Git With Hooks And Husky 🐺
Setting up Git post hook for automated deployments
Automate Code Formatting with Pre-commit Hooks: Husky, lint-staged & Prettier
How GitHub Actions 10x my productivity
Pre Commit Hooks EXPLAINED | Easy Way Clean Repo! GitHub & PyCharm
How to Automate Development Workflow Using Git Hooks
Git Hooks: Pre-commit, Eslint, Prettier, Autosave actions
Pre-commit 101
Use Git Hooks To Automate Your Workflow
Pre-Commit: Enforce coding best-practices
Комментарии