Standard pre commit and isort, flake8 settings
✓ Published0🌍 Public
Aandyreagan
Last edited Jul 14, 2020
Created on Jul 14, 2020
This example shows a standardized Python project configuration that enforces consistent code style through pre-commit hooks, isort, and flake8. The `.pre-commit-config.yaml` file orchestrates multiple git hooks, including Black for formatting, isort for import sorting, flake8 for linting, and mypy for type checking, all triggered on commit and push stages. The `.flake8` and `.isort.cfg` files specify matching rules like an 88-character line limit, while the Makefile defines an `rtestthat` local hook that runs R tests via `source("tests/testthat.R")`.
AI-generated description