diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 0000000..ee88b6a --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,34 @@ +name: code-style + +on: + pull_request: + branches: + - main + +jobs: + python-code-style: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install uv and set the python version + uses: astral-sh/setup-uv@v5 + with: + python-version: 3.12 + - name: Install dependencies + run: | + make init-lint + - name: Run linting + run: | + make lint-python + rust-code-style: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Rust + run: | + rustup update + - name: Run Tests + run: | + make lint-rust \ No newline at end of file diff --git a/hello.py b/hello.py deleted file mode 100644 index 4f79b3e..0000000 --- a/hello.py +++ /dev/null @@ -1 +0,0 @@ -from rustileo import earth import rustileo def main(): print(rustileo.__version__) print(rustileo.__doc__) print(earth.RADIUS) print(earth.bearing(0, 0, 0, 0)) print(earth.vincenty_distance(80.2828, -19.02, 29.0452, 0.9892)) if __name__ == "__main__": main() \ No newline at end of file