From 4ac3f9d419a67f89811d5251fe73efcd3851165b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 17 Feb 2023 15:44:01 +0100 Subject: [PATCH] Add pyproject-fmt --- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 4 ++++ {{cookiecutter.project_slug}}/pyproject.toml | 1 + 2 files changed, 5 insertions(+) diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index f5be138..9eaf1c7 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -63,6 +63,10 @@ repos: additional_dependencies: - eslint@8.32.0 - eslint-config-prettier@8.5.0 + - repo: https://github.com/tox-dev/pyproject-fmt + rev: 0.9.1 + hooks: + - id: pyproject-fmt - repo: https://github.com/jazzband/pip-tools rev: 6.12.1 hooks: diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index d6a2075..11fa470 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -29,6 +29,7 @@ python_files = [ ############################################################################### # ruff ############################################################################### + [tool.ruff] src = ["src"] target-version = "{{ cookiecutter.python_version_slug }}"