From dc20c42419d5371c6d14c489187ed985c9aa4d02 Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Sat, 9 Sep 2023 09:51:32 +0000 Subject: [PATCH] add ignore file and precommit --- .pre-commit-config.yaml | 13 ++++++++++++- modules/ml-pipeline/.gitignore | 1 + modules/ml-pipeline/.pre-commit-config.yaml | 12 ++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/ml-pipeline/.gitignore create mode 100644 modules/ml-pipeline/.pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b63e824..34a9b78 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1,12 @@ -# Pre commit hooks \ No newline at end of file +# Pre commit hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 22.10.0 + hooks: + - id: black diff --git a/modules/ml-pipeline/.gitignore b/modules/ml-pipeline/.gitignore new file mode 100644 index 0000000..e4d8729 --- /dev/null +++ b/modules/ml-pipeline/.gitignore @@ -0,0 +1 @@ +.dev_env/ diff --git a/modules/ml-pipeline/.pre-commit-config.yaml b/modules/ml-pipeline/.pre-commit-config.yaml new file mode 100644 index 0000000..34a9b78 --- /dev/null +++ b/modules/ml-pipeline/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +# Pre commit hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 22.10.0 + hooks: + - id: black