~cofob/CoreProtect.py

eae21c07bf3852a852eddcc1a3c925f50c7f8564 — cofob 6 months ago 71efbcb master
Updated CI
1 files changed, 20 insertions(+), 0 deletions(-)

A .builds/black.yml
A .builds/black.yml => .builds/black.yml +20 -0
@@ 0,0 1,20 @@
image: ubuntu/jammy
packages:
  - python3
  - python3-pip
secrets:
  - 3b123d40-8542-49cb-88e9-4552aa2a02fa
tasks:
  - install-requirements: |
      sudo pip3 install -U black
  - apply-style: |
      GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@git.sr.ht:~cofob/CoreProtect.py src
      cd src
      black .
  - commit: |
      cd src
      git add *
      git config --global user.name "CI"
      git config --global user.email "builds@builds.sr.ht"
      git commit -am "Applied BLACK code style" --no-verify
      GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push origin HEAD:master