Update tooling

This commit is contained in:
Mark Cornick 2024-05-18 20:53:22 -04:00
parent 699aa9ba6a
commit bf8c536254
3 changed files with 28 additions and 0 deletions

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

@ -0,0 +1,22 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

View File

@ -2,5 +2,8 @@
requires = ["setuptools >= 40.9.0"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
[tool.isort]
profile = "black"

View File

@ -11,3 +11,6 @@ console_scripts = cue_to_meta = cue_to_meta:cli
[options.extras_require]
test = pytest
[flake8]
inline-quotes = double