Revision f546e5097a383d8e029150c833562bf26d744303 authored by John Chilton on 15 October 2020, 16:23:35 UTC, committed by John Chilton on 15 October 2020, 16:23:35 UTC
1 parent c2d7637
Raw File
flake8_wrapper_docstrings.sh
#!/bin/bash

set -e

# D100 - Missing docstring in public module.
# D2XX - Whitespace issues.
# D3XX - Quoting issues.
# D401 - First line should be in imperative mood 
# D403 - First word of the first line should be properly capitalized
args="--ignore=D --select=D100,D201,D202,D206,D207,D208,D209,D211,D3,D403"

# If the first argument is --include, lint the modules expected to pass. If
# the first argument is --exclude, lint all modules the full Galaxy linter lints
# (this will fail).

if [ "$1" = "--include" ];
then
    flake8 $args $(paste -sd' ' .ci/flake8_docstrings_include_list.txt)
else
    flake8 $args --exclude $(paste -sd, .ci/flake8_blacklist.txt) .
fi
back to top