From 6bd163ebf8f59139d66bcd45a7e30e71f02e441f Mon Sep 17 00:00:00 2001 From: Sondre Wold Date: Mon, 17 Jun 2024 13:43:34 +0200 Subject: [PATCH] Add config files --- reference_transformer/.pre-commit-config.yaml | 6 ++++++ reference_transformer/pyproject.toml | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 reference_transformer/.pre-commit-config.yaml diff --git a/reference_transformer/.pre-commit-config.yaml b/reference_transformer/.pre-commit-config.yaml new file mode 100644 index 0000000..eabc05c --- /dev/null +++ b/reference_transformer/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: +- repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + language_version: python3.12 diff --git a/reference_transformer/pyproject.toml b/reference_transformer/pyproject.toml index 288577b..7acc369 100644 --- a/reference_transformer/pyproject.toml +++ b/reference_transformer/pyproject.toml @@ -9,6 +9,8 @@ readme = "README.md" python = "^3.12" torch = "^2.3.1" numpy = "^2.0.0" +pytest = "^8.2.2" +pre-commit = "^3.7.1" [build-system] -- 2.39.5