From fffa3f5cb1e4dc32b3e3da6108cc4de1e1aa111f Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 19 Dec 2024 16:39:38 +0300 Subject: [PATCH] Add new hooks --- .pre-commit-config.yaml | 10 ++++++++++ pyproject.toml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7a3b1b3..6afccd5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,16 @@ repos: rev: v1.0.1 hooks: - id: rst-linter +- repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + args: ['reportportal_client', 'tests'] +- repo: https://github.com/psf/black + rev: 24.10.0 + hooks: + - id: black + args: ['reportportal_client', 'tests'] - repo: https://github.com/pycqa/flake8 rev: 5.0.4 hooks: diff --git a/pyproject.toml b/pyproject.toml index 98818567..acb8e832 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,3 +7,10 @@ requires = [ "importlib-metadata" ] build-backend = "setuptools.build_meta" + +[tool.isort] +line_length = 120 + +[tool.black] +line-length = 120 +target-version = ['py310']