Logo

Reproducible Deep Learning (PhD Course) - Shared screen with speaker view
Simone Scardapane
02:27:15
https://pre-commit.com/
Simone Scardapane
02:31:27
#!/bin/sh
Simone Scardapane
02:33:38
if [ $? -ne 0]; thenecho "Code is not formatted correctly!"exit 1fi
Simone Scardapane
02:34:16
#!/bin/shecho "Running pre-commit hooks: checking formatting"black --check train.pyif [ $? -ne 0]; thenecho "Code is not formatted correctly!"exit 1fi
Simone Scardapane
02:38:20
#!/bin/shecho "Running pre-commit hooks: checking formatting"black --check --diff train.pyif [ $? -ne 0 ]; thenecho "Code is not formatted correctly!"exit 1fi
Simone Scardapane
02:51:25
https://docs.github.com/en/actions/learn-github-actions/introduction-to-github-actions
Simone Scardapane
02:56:15
name: check-formattingon: [push]jobs:run-black:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v2- run: pip install black- run: black --diff --check train.py
Simone Scardapane
03:07:15
https://docs.google.com/document/d/1Z0uc4LKPRIRPs8HyP52Mq0bl2V0EDzQQG0vA1cfL-yc/edit?usp=sharing
Marco Zecchini
03:14:44
Thank you, bye
Andrea Mastropietro
03:14:45
Thanks!
Alessio Fagioli
03:14:52
Thank you very much, this was a really interesting course!
andrea marcocchia
03:14:57
Thank you, bye