From 455b8274e2cb1c80dc4866c3ec51d38e575697d0 Mon Sep 17 00:00:00 2001 From: Rafal Jankowski Date: Wed, 24 Jul 2024 07:53:10 +0200 Subject: [PATCH 1/2] Pre-commit workflow added --- .github/workflows/pre-commit.yml | 22 ++++++++++++++++++++++ src/neptune_scale/__init__.py | 0 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/pre-commit.yml create mode 100644 src/neptune_scale/__init__.py diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000..68404a5c --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,22 @@ +name: pre-commit + +on: + pull_request: + push: + branches: + - main + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Run pre-commit + uses: pre-commit/action@v3.0.1 diff --git a/src/neptune_scale/__init__.py b/src/neptune_scale/__init__.py new file mode 100644 index 00000000..e69de29b From cb8be1e6e48ae3aa5040ee41e5b368e70732c8fa Mon Sep 17 00:00:00 2001 From: Rafal Jankowski Date: Wed, 24 Jul 2024 07:56:48 +0200 Subject: [PATCH 2/2] Pre-commit applied --- .pre-commit-config.yaml | 2 +- dev_requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8aded65f..86b15790 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,4 +29,4 @@ repos: additional_dependencies: - neptune-api==0.3.0 default_language_version: - python: python3 \ No newline at end of file + python: python3 diff --git a/dev_requirements.txt b/dev_requirements.txt index 1a807fc4..a19f8a59 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -1,4 +1,4 @@ -e . # dev -pre-commit \ No newline at end of file +pre-commit