From 976deefbea4b009ea6394d73ed634518a6d25bb5 Mon Sep 17 00:00:00 2001 From: Sai-Suraj-27 Date: Sun, 27 Aug 2023 23:51:23 +0530 Subject: [PATCH] Configured code formatting and update version of pre-commit hooks. --- .pre-commit-config.yaml | 2 +- gprMax.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c08d1d9..b1448800 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ # See https://pre-commit.com for more information repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/gprMax.toml b/gprMax.toml index d792e535..ae219ea9 100644 --- a/gprMax.toml +++ b/gprMax.toml @@ -2,3 +2,9 @@ requires = ['setuptools', 'wheel', 'numpy>=1.19.0', 'Cython>=0.29.21', 'jinja2'] build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 120 + +[tool.isort] +profile = "black"