mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Add pydoc warnings to flake8 config
Also add flake8-docstrings as an additional dependency in the .pre-commit-config.yml file.
This commit is contained in:
parent
916d7d5434
commit
8e0b1d7386
2 changed files with 5 additions and 1 deletions
4
.flake8
4
.flake8
|
@ -3,6 +3,8 @@ max-line-length = 80
|
||||||
# Select (turn on)
|
# Select (turn on)
|
||||||
# * Complexity violations reported by mccabe (C) -
|
# * Complexity violations reported by mccabe (C) -
|
||||||
# http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes
|
# http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes
|
||||||
|
# * Documentation conventions compliance reported by pydocstyle (D) -
|
||||||
|
# http://www.pydocstyle.org/en/stable/error_codes.html
|
||||||
# * Default errors and warnings reported by pycodestyle (E and W) -
|
# * Default errors and warnings reported by pycodestyle (E and W) -
|
||||||
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
|
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
|
||||||
# * Default errors reported by pyflakes (F) -
|
# * Default errors reported by pyflakes (F) -
|
||||||
|
@ -11,7 +13,7 @@ max-line-length = 80
|
||||||
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
|
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
|
||||||
# * The B950 flake8-bugbear opinionated warning -
|
# * The B950 flake8-bugbear opinionated warning -
|
||||||
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
|
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
|
||||||
select = C,E,F,W,B,B950
|
select = C,D,E,F,W,B,B950
|
||||||
# Ignore flake8's default warning about maximum line length, which has
|
# Ignore flake8's default warning about maximum line length, which has
|
||||||
# a hard stop at the configured value. Instead we use
|
# a hard stop at the configured value. Instead we use
|
||||||
# flake8-bugbear's B950, which allows up to 10% overage.
|
# flake8-bugbear's B950, which allows up to 10% overage.
|
||||||
|
|
|
@ -42,6 +42,8 @@ repos:
|
||||||
rev: 3.7.7
|
rev: 3.7.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
additional_dependencies:
|
||||||
|
- flake8-docstrings
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v1.14.0
|
rev: v1.14.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in a new issue