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/.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 diff --git a/src/neptune_scale/__init__.py b/src/neptune_scale/__init__.py new file mode 100644 index 00000000..e69de29b