diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7a3b1b..6afccd5 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 9881856..acb8e83 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']