From 975c1e7e9a8a14952ab57ded6c8dc76eb8c48b7f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 9 Jun 2024 17:12:51 +0530 Subject: [PATCH] feat: CI: init --- .woodpecker.yml | 19 +++++++++++++++++++ requirements.txt | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..2680b46 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,19 @@ +steps: + standardize: + image: python:3.12-bookworm + commands: + - python -m pip install --upgrade pip + - python -m pip install -r requirements.txt + - python -m pip install pylint flake8 mypy>=0.971 + - python -m flake8 ftest_common/* --count --select=E9,F63,F7,F82 --show-source --statistics + # - python -m pylint -f parseable ftest_common/*.py + # - mypy --strict ftest/ + + build: + image: python:3.12-bookworm + commands: + - python -m venv venv + - /bin/bash -c "source venv/bin/activate" + - python -m pip install --upgrade pip + - python -m pip install -r requirements.txt + - pytest diff --git a/requirements.txt b/requirements.txt index 8c94a95..8904d80 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,29 +1,45 @@ +astroid==3.2.2 build==1.0.3 certifi==2023.7.22 cffi==1.16.0 charset-normalizer==3.3.0 cryptography==41.0.4 +dill==0.3.8 docutils==0.20.1 +flake8==7.0.0 idna==3.4 importlib-metadata==6.8.0 +iniconfig==2.0.0 +isort==5.13.2 jaraco.classes==3.3.0 jeepney==0.8.0 keyring==24.2.0 markdown-it-py==3.0.0 +mccabe==0.7.0 mdurl==0.1.2 more-itertools==10.1.0 +mypy==1.10.0 +mypy-extensions==1.0.0 nh3==0.2.14 packaging==23.2 pkginfo==1.9.6 +platformdirs==4.2.2 +pluggy==1.5.0 +pycodestyle==2.11.1 pycparser==2.21 +pyflakes==3.2.0 Pygments==2.16.1 +pylint==3.2.3 pyproject_hooks==1.0.0 +pytest==8.2.2 readme-renderer==42.0 requests==2.31.0 requests-toolbelt==1.0.0 rfc3986==2.0.0 rich==13.6.0 SecretStorage==3.3.3 +tomlkit==0.12.5 twine==4.0.2 +typing_extensions==4.12.2 urllib3==2.0.5 zipp==3.17.0 -- 2.39.5