-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4af7805
commit fc3894b
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[flake8] | ||
# Use the following flake8 plugins: | ||
# ANN : flake8-annotations | ||
# B,B9 : flake8-bugbear | ||
# BLK : flake8-black | ||
# C : mccabe code complexity | ||
# D : flake8-docstrings | ||
# DAR : darglint. Not currently in use because it was too slow. | ||
# F : pyflakes | ||
# I : flake8-isort | ||
# S : flake8-bandit | ||
# W,E : pycodestyle (pep8) warnings and errors | ||
select = ANN,B,B9,BLK,C,D,E,F,I,S,W | ||
|
||
# Ignore these flake8 errors across the board. | ||
extend-ignore = | ||
ANN101, # Missing type annotation for self | ||
ANN102, # Missing type annotation for cls | ||
ANN204, # Missing type annotation for special method | ||
D100, # Missing docstring in public module | ||
D104, # Missing docstring in public package | ||
E203, # Colons should not have whitespace before them (needed for black) | ||
W503, # Line break before binary operator (needed for black) | ||
|
||
# Only use strict docstring linting in the api/ or cli/ directory. Unfortunately it's not | ||
# possible to enable only those directories, so instead we disable strict docstring linting | ||
# everywhere else. | ||
# Also allow unused imports in __init__ files. | ||
per-file-ignores = | ||
tests/**:D105,D106,D107,D205,D207,D208,D212,D214,D215,D301,D4,S101 | ||
src/vivarium_gbd_access/lib/**:D105,D106,D107,D205,D207,D208,D212,D214,D215,D301,D4 | ||
**/__init__.py:F401 | ||
|
||
# Function complexity and line length | ||
max-complexity = 10 | ||
max-line-length = 95 | ||
|
||
# Docstrings | ||
docstring-convention = google |