https://github.com/galaxyproject/galaxy
Raw File
Tip revision: 13ab9430b369b6172621e34e3b3d4ca264a04356 authored by mvdbeek on 20 September 2024, 05:15:06 UTC
Merge branch 'release_20.05' into release_20.09
Tip revision: 13ab943
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