From 56c5901ee7099f245838d447bfeae83978e5a548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saulius=20Gra=C5=BEulis?= Date: Thu, 9 Nov 2023 09:07:07 +0200 Subject: [PATCH] Update exclusions from pre-commit checks and ognore autogenerated directories. (#184) Ignoring the generated build/ directory. Porting the exclusion of Perl modules and scripts from the 'cif-data' branch. Co-authored-by: Saulius Grazulis --- .gitignore | 2 ++ .pre-commit-config.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5866066..5d3f670 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ __pycache__ !test-cif/**/*.cif !tests/**/*.dic + +dic2owl/build/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f608fc1..cb84cc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: files: ^.*requirements.*\.txt$ - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - exclude: ^.*(\.ttl|\.cif)$ + exclude: ^(.*(\.ttl|\.cif|\.pm)|scripts/.*)$ - repo: https://github.com/ambv/black # Keep at 23.3.0 to support Python 3.7