diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4cd620..d7c3e9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,20 @@ image: python:latest -run: - script: +deploy: + stage: deploy + only: + - master + before_script: - pip install build twine + script: - python -m build - TWINE_PASSWORD=$PYPI_PASSWORD TWINE_USERNAME=$PYPI_USERNAME python3 -m twine upload dist/* + +lint: + stage: test + before_script: + - pip install black flake8 isort flake8-bugbear flake8-builtins flake8-comprehensions flake8-tidy-imports flake8-eradicate flake8-print flake8-return flake8-use-fstring git+https://github.com/derrix060/flake8-expression-complexity.git + script: + - black --check src/ + - flake8 src/ + - isort -c src/ diff --git a/requirements.txt b/requirements.txt index b1f0ddc..54d3ffc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,36 @@ +astpretty==3.0.0 +attrs==23.1.0 +black==23.7.0 certifi==2023.7.22 cfgv==3.4.0 charset-normalizer==3.2.0 +click==8.1.6 distlib==0.3.7 +eradicate==2.3.0 filelock==3.12.2 +flake8==6.1.0 +flake8-bugbear==23.7.10 +flake8-builtins==2.1.0 +flake8-comprehensions==3.14.0 +flake8-eradicate==1.5.0 +flake8-expression-complexity @ git+https://github.com/derrix060/flake8-expression-complexity.git@f667ba943e502aa43b138dc28a678b0d3236a3b8 +flake8-plugin-utils==1.3.3 +flake8-print==5.0.0 +flake8-return==1.2.0 +flake8-tidy-imports==4.10.0 +flake8-use-fstring==1.4 identify==2.5.26 idna==3.4 +isort==5.12.0 +mccabe==0.7.0 +mypy-extensions==1.0.0 nodeenv==1.8.0 +packaging==23.1 +pathspec==0.11.2 platformdirs==3.10.0 pre-commit==3.3.3 -python-dotenv==1.0.0 +pycodestyle==2.11.0 +pyflakes==3.1.0 PyYAML==6.0.1 requests==2.31.0 urllib3==2.0.4