|
a |
|
b/setup.cfg |
|
|
1 |
[flake8] |
|
|
2 |
|
|
|
3 |
# flake8 code - explanation - extension requirement |
|
|
4 |
# ================================================= |
|
|
5 |
# ANN - annotations - flake8-annotations |
|
|
6 |
# B,B9 - Bugbear - flake8-bugbear |
|
|
7 |
# BLK - Black - flake8-black |
|
|
8 |
# C - complexity - n/a |
|
|
9 |
# D - docstrings - flake8-docstrings |
|
|
10 |
# DAR - darglint (checks docstrings) - darglint |
|
|
11 |
# E - pycodestyle errors - n/a |
|
|
12 |
# F - pyflakes - n/a |
|
|
13 |
# I - Import order - flake8-import-order |
|
|
14 |
# N - PEP8 naming - pep8-naming |
|
|
15 |
# W - pycodestyle warnings - n/a |
|
|
16 |
select = B,B9,BLK,C,D,DAR,E,F,I,N,W |
|
|
17 |
|
|
|
18 |
# E203 - whitespace before ':' |
|
|
19 |
# E501 - line length (dealt with by bugbear) |
|
|
20 |
# W503 - linebreak before binary op |
|
|
21 |
# S101 - warns about assert being removed when compiled |
|
|
22 |
ignore = E203,E501,W503,S101 |
|
|
23 |
|
|
|
24 |
max-complexity = 10 |
|
|
25 |
max-line-length = 80 |
|
|
26 |
application-import-names = ai_genomics |
|
|
27 |
import-order-style = smarkets |
|
|
28 |
docstring-convention = google |
|
|
29 |
exclude=*/notebooks/,setup.py |
|
|
30 |
per-file-ignores = |
|
|
31 |
tests/*:S |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
[darglint] # Configuration for the darglint documentation linter |
|
|
35 |
|
|
|
36 |
# Don't pester about parameters for a one-line docstring |
|
|
37 |
strictness=short |
|
|
38 |
docstring_style=google |