|
| 1 | +# Configuration for flake8 analysis |
| 2 | +[flake8] |
| 3 | +# Set the maximum length that any line (with some exceptions) may be. |
| 4 | +# max-line-length = 120 |
| 5 | + |
| 6 | +# Set the maximum length that a comment or docstring line may be. |
| 7 | +# max-doc-length = 120 |
| 8 | + |
| 9 | +# Set the maximum allowed McCabe complexity value for a block of code. |
| 10 | +# max-complexity = 15 |
| 11 | + |
| 12 | +# Specify a list of codes to ignore. |
| 13 | +# D107: Missing docstring in __init__ |
| 14 | +# D400: First line should end with a period |
| 15 | +# W504: line break after binary operator -> Cannot break line with a long pathlib Path |
| 16 | +# D204: 1 blank line required after class docstring |
| 17 | +ignore = D107, D400, W504, D204 |
| 18 | + |
| 19 | +# Specify a list of mappings of files and the codes that should be ignored for the entirety of the file. |
| 20 | +per-file-ignores = |
| 21 | + tests/*:D101,D102,D104 |
| 22 | + |
| 23 | +# Provide a comma-separated list of glob patterns to exclude from checks. |
| 24 | +exclude = |
| 25 | + # No need to traverse our git directory |
| 26 | + .git, |
| 27 | + # Python virtual environments |
| 28 | + .venv, |
| 29 | + # tox virtual environments |
| 30 | + .tox, |
| 31 | + # There's no value in checking cache directories |
| 32 | + __pycache__, |
| 33 | + # The conf file is mostly autogenerated, ignore it |
| 34 | + docs/conf.py, |
| 35 | + # This contains our built documentation |
| 36 | + build, |
| 37 | + # This contains builds that we don't want to check |
| 38 | + dist, |
| 39 | + # We don't use __init__.py for scripts |
| 40 | + __init__.py |
| 41 | + # example testing folder before going live |
| 42 | + thinking |
| 43 | + .idea |
| 44 | + # custom scripts, not being part of the distribution |
| 45 | + libs_external |
| 46 | + sdist_upip.py |
| 47 | + setup.py |
| 48 | + update_version.py |
| 49 | + |
| 50 | +# Provide a comma-separated list of glob patterns to add to the list of excluded ones. |
| 51 | +# extend-exclude = |
| 52 | +# legacy/, |
| 53 | +# vendor/ |
| 54 | + |
| 55 | +# Provide a comma-separate list of glob patterns to include for checks. |
| 56 | +# filename = |
| 57 | +# example.py, |
| 58 | +# another-example*.py |
| 59 | + |
| 60 | +# Enable PyFlakes syntax checking of doctests in docstrings. |
| 61 | +doctests = False |
| 62 | + |
| 63 | +# Specify which files are checked by PyFlakes for doctest syntax. |
| 64 | +# include-in-doctest = |
| 65 | +# dir/subdir/file.py, |
| 66 | +# dir/other/file.py |
| 67 | + |
| 68 | +# Specify which files are not to be checked by PyFlakes for doctest syntax. |
| 69 | +# exclude-from-doctest = |
| 70 | +# tests/* |
| 71 | + |
| 72 | +# Enable off-by-default extensions. |
| 73 | +# enable-extensions = |
| 74 | +# H111, |
| 75 | +# G123 |
| 76 | + |
| 77 | +# If True, report all errors, even if it is on the same line as a # NOQA comment. |
| 78 | +disable-noqa = False |
| 79 | + |
| 80 | +# Specify the number of subprocesses that Flake8 will use to run checks in parallel. |
| 81 | +jobs = auto |
| 82 | + |
| 83 | +# Also print output to stdout if output-file has been configured. |
| 84 | +tee = True |
| 85 | + |
| 86 | +# Count the number of occurrences of each error/warning code and print a report. |
| 87 | +statistics = True |
| 88 | + |
| 89 | +# Print the total number of errors. |
| 90 | +count = True |
| 91 | + |
| 92 | +# Print the source code generating the error/warning in question. |
| 93 | +show-source = True |
| 94 | + |
| 95 | +# Decrease the verbosity of Flake8’s output. Each time you specify it, it will print less and less information. |
| 96 | +quiet = 0 |
| 97 | + |
| 98 | +# Select the formatter used to display errors to the user. |
| 99 | +format = pylint |
| 100 | + |
| 101 | +[pydocstyle] |
| 102 | +# choose the basic list of checked errors by specifying an existing convention. Possible conventions: pep257, numpy, google. |
| 103 | +convention = pep257 |
| 104 | + |
| 105 | +# check only files that exactly match <pattern> regular expression |
| 106 | +# match = (?!test_).*\.py |
| 107 | + |
| 108 | +# search only dirs that exactly match <pattern> regular expression |
| 109 | +# match_dir = [^\.].* |
| 110 | + |
| 111 | +# ignore any functions or methods that are decorated by a function with a name fitting the <decorators> regular expression. |
| 112 | +# ignore_decorators = |
0 commit comments