diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml new file mode 100644 index 0000000..fcee44a --- /dev/null +++ b/.github/workflows/linters.yaml @@ -0,0 +1,30 @@ +name: Linters + +on: + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Python Setup + uses: actions/setup-python@v3 + with: + python-version: 3.13 + + - name: Install libraries + run: | + pip install -e .[development] + + - name: mypy + run: mypy ./src + + - name: ruff + run: ruff check . + + - name: flake8 + run: flake8 . \ No newline at end of file diff --git a/setup.py b/setup.py index 56d0e1c..eb98db3 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,9 @@ from setuptools import setup + def main() -> None: setup() + if __name__ == '__main__': main() diff --git a/src/app/hello.py b/src/app/hello.py index d446c2e..25b695e 100644 --- a/src/app/hello.py +++ b/src/app/hello.py @@ -1,2 +1,2 @@ def hello(): - print('ABC') \ No newline at end of file + print('ABC')