Skip to content

Commit 05b7801

Browse files
authored
Merge pull request #6 from cisagov/improvement/merge_in_upstream_changes_from_skeleton_generic
Merge in upstream changes from skeleton-generic
2 parents 0c97fba + 3dd45b6 commit 05b7801

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.flake8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ max-line-length = 80
33
# Select (turn on)
44
# * Complexity violations reported by mccabe (C) -
55
# http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes
6+
# * Documentation conventions compliance reported by pydocstyle (D) -
7+
# http://www.pydocstyle.org/en/stable/error_codes.html
68
# * Default errors and warnings reported by pycodestyle (E and W) -
79
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
810
# * Default errors reported by pyflakes (F) -
@@ -11,7 +13,7 @@ max-line-length = 80
1113
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
1214
# * The B950 flake8-bugbear opinionated warning -
1315
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
14-
select = C,E,F,W,B,B950
16+
select = C,D,E,F,W,B,B950
1517
# Ignore flake8's default warning about maximum line length, which has
1618
# a hard stop at the configured value. Instead we use
1719
# flake8-bugbear's B950, which allows up to 10% overage.

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ repos:
4242
rev: 3.7.7
4343
hooks:
4444
- id: flake8
45+
additional_dependencies:
46+
- flake8-docstrings
4547
- repo: https://github.com/asottile/pyupgrade
4648
rev: v1.14.0
4749
hooks:

example/example.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
"""example is an example Python library and tool
3+
"""example is an example Python library and tool.
44
55
Usage:
66
example [--log-level=LEVEL]
@@ -20,7 +20,7 @@
2020

2121

2222
def example():
23-
"""A dummy function."""
23+
"""Print some logging messages."""
2424
logging.debug("This is a debug message")
2525
logging.info("This is an info message")
2626
logging.warning("This is a warning message")
@@ -29,6 +29,7 @@ def example():
2929

3030

3131
def main():
32+
"""Set up logging and call the example function."""
3233
args = docopt.docopt(__doc__, version="0.0.1")
3334

3435
# Set up logging

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
setup module for example
2+
This is the setup module for the example project.
33
44
Based on:
55
@@ -11,6 +11,7 @@
1111

1212

1313
def readme():
14+
"""Read in and return the contents of the project's README.md file."""
1415
with open("README.md") as f:
1516
return f.read()
1617

0 commit comments

Comments
 (0)