diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-08-17 12:11:22 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-08-17 12:11:22 -0300 |
commit | e356a5e29b68fc17e5c75a4e01ed1db4ee480dc3 (patch) | |
tree | 9d8daf9df737c53535a1f0022eb547e546b05369 | |
parent | 2041aaa6827be18a656c08918ed3815e6a8a0c32 (diff) |
Testing only the linter in another branch
-rw-r--r-- | .gitlab-ci.yml | 17 | ||||
-rw-r--r-- | requirements.txt | 24 |
2 files changed, 38 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4cd620..38ce5a8 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: lint + 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 |