From 72c9855cbe4fed6aeef057d8fe9ce4602d8d03bd Mon Sep 17 00:00:00 2001 From: shagi Date: Tue, 27 Aug 2024 17:44:35 +0200 Subject: [PATCH] chore: pre-commit configuration --- .pre-commit-config.yaml | 26 ++++++++++++++++++++++++++ CHANGELOG.md | 6 ++++++ 2 files changed, 32 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 CHANGELOG.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..446bc18 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,26 @@ + +repos: +# Using this mirror lets us use mypyc-compiled black, which is about 2x faster +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 24.2.0 + hooks: + - id: black + # It is recommended to specify the latest version of Python + # supported by your project here, or alternatively use + # pre-commit's default_language_version, see + # https://pre-commit.com/#top_level-default_language_version + language_version: python3.11 + +- repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + name: isort (python) + +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.3.0 + hooks: + # Run the linter. + - id: ruff + # - id: ruff-format We don't need this because we have black and isort. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2c983b8 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## 1.1 + +* chore: pre-commit configuration +* fix: fix jinja dependency and apply ruff formating