Skip to content

Commit

Permalink
Configure flake8-docstrings and darglint
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jan 13, 2023
1 parent fe5bd1b commit c60d06a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,26 @@ max-line-length = 88
ignore =
# C408 Unnecessary dict call - rewrite as a literal.
C408
# D400 First line should end with a period (from flake8-docstrings)
D400
# D415 First line should end with a period, question mark, or exclamation point
D415
# E231 missing whitespace after ','
E231
# W503 line break before binary operator
W503
# Darglint options when run as a Flake8 plugin:
strictness = short
docstring_style = sphinx
# This requires https://github.com/terrencepreilly/darglint/pull/210:
darglint_ignore_regex=^test_

[darglint]
# Run `darglint --verbosity=2` to get nice descriptions in messages.
# Unfortunately `verbosity` isn't read from the configuration file.
message_template = {path}:{line}: {msg} {msg_id} {obj}
docstring_style = sphinx
ignore_regex = ^test_

[codespell]
ignore-words-list = nd
Expand Down

0 comments on commit c60d06a

Please sign in to comment.