Zenodo Support v1 #241
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Python 3.8 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Run black | |
| uses: psf/black@stable | |
| with: | |
| options: "--check --diff --line-length 79" | |
| src: "./metabolomics_spectrum_resolver" | |
| - name: Check for debugging print statements | |
| run: | | |
| if grep -rq "^\s*print(" metabolomics_spectrum_resolver; then | |
| echo "Found the following print statements:" | |
| grep -r "^\s*print(" metabolomics_spectrum_resolver | |
| exit 1 | |
| fi |