Add pre-commit, update flake8, run black

This commit is contained in:
Tom Tromey
2024-03-27 18:01:30 -06:00
parent f2bbafeedb
commit 41f4d5c3dc
3 changed files with 16 additions and 2 deletions

8
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,8 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
hooks:
- id: black
files: 'gdb/.*'