From fb23ec8784b3df79ec3124e6149c62362160b2de Mon Sep 17 00:00:00 2001 From: Zach Lovelady <108858+zlove@users.noreply.github.com> Date: Thu, 17 Nov 2022 16:05:43 -0700 Subject: [PATCH] Adding pre-commit black language version. Fixing yaml. --- .pre-commit-config.yaml | 31 +++++++++++++++---------------- pyproject.toml | 6 ++++++ requirements/dev.txt | 1 + 3 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 requirements/dev.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f96c032..65f3e28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,18 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files - - repo: https://github.com/psf/black - rev: 22.10.0 - hooks: - - id: black - language_version: python3.9 - - repo: https://github.com/PyCQA/isort - rev: 5.10.1 - hooks: - - id: isort + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + - repo: https://github.com/psf/black + rev: 22.10.0 + hooks: + - id: black + language_version: python3.9 + - repo: https://github.com/PyCQA/isort + rev: 5.10.1 + hooks: + - id: isort diff --git a/pyproject.toml b/pyproject.toml index b0f0765..6f5aca5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,9 @@ [build-system] requires = ["setuptools>=42"] build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 88 + +[tool.isort] +profile = "black" diff --git a/requirements/dev.txt b/requirements/dev.txt new file mode 100644 index 0000000..561cab7 --- /dev/null +++ b/requirements/dev.txt @@ -0,0 +1 @@ +pre-commit==2.20.0