Skip to content

Commit ce19ff0

Browse files
committed
Merge github.com:cisagov/skeleton-python-library into skeletonize
2 parents c0f3665 + eb2605b commit ce19ff0

33 files changed

+1396
-214
lines changed

.ansible-lint

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# See https://ansible-lint.readthedocs.io/en/latest/configuring.html
3+
# for a list of the configuration elements that can exist in this
4+
# file.
5+
enable_list:
6+
# Useful checks that one must opt-into. See here for more details:
7+
# https://ansible-lint.readthedocs.io/en/latest/rules.html
8+
- fcqn-builtins
9+
- no-log-password
10+
- no-same-owner
11+
exclude_paths:
12+
# This exclusion is implicit, unless exclude_paths is defined
13+
- .cache
14+
# Seems wise to ignore this too
15+
- .github
16+
kinds:
17+
# This will force our systemd specific molecule configurations to be treated
18+
# as plain yaml files by ansible-lint. This mirrors the default kind
19+
# configuration in ansible-lint for molecule configurations:
20+
# yaml: "**/molecule/*/{base,molecule}.{yaml,yml}"
21+
- yaml: "**/molecule/*/molecule-{no,with}-systemd.yml"
22+
use_default_rules: true

.bandit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# Configuration file for the Bandit python security scanner
3+
# https://bandit.readthedocs.io/en/latest/config.html
4+
# This config is applied to bandit when scanning the "tests" tree
5+
6+
# Tests are first included by `tests`, and then excluded by `skips`.
7+
# If `tests` is empty, all tests are are considered included.
8+
9+
tests:
10+
# - B101
11+
# - B102
12+
13+
skips:
14+
- B101 # skip "assert used" check since assertions are required in pytests

.coveragerc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This is the configuration for code coverage checks
2+
# https://coverage.readthedocs.io/en/latest/config.html
3+
4+
[run]
5+
source = src/example
6+
omit =
7+
branch = true
8+
9+
[report]
10+
exclude_lines =
11+
if __name__ == "__main__":
12+
show_missing = true

.flake8

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
[flake8]
2-
max-line-length = 80
3-
# Select (turn on)
4-
# * Complexity violations reported by mccabe (C) -
5-
# 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
8-
# * Default errors and warnings reported by pycodestyle (E and W) -
9-
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
10-
# * Default errors reported by pyflakes (F) -
11-
# http://flake8.pycqa.org/en/latest/glossary.html#term-pyflakes
12-
# * Default warnings reported by flake8-bugbear (B) -
13-
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
14-
# * The B950 flake8-bugbear opinionated warning -
15-
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
16-
select = C,D,E,F,W,B,B950
17-
# Ignore flake8's default warning about maximum line length, which has
18-
# a hard stop at the configured value. Instead we use
19-
# flake8-bugbear's B950, which allows up to 10% overage.
20-
#
21-
# Also ignore flake8's warning about line breaks before binary
22-
# operators. It no longer agrees with PEP8. See, for example, here:
23-
# https://github.com/ambv/black/issues/21. Guido agrees here:
24-
# https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b.
25-
ignore = E501,W503
1+
[flake8]
2+
max-line-length = 80
3+
# Select (turn on)
4+
# * Complexity violations reported by mccabe (C) -
5+
# 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
8+
# * Default errors and warnings reported by pycodestyle (E and W) -
9+
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
10+
# * Default errors reported by pyflakes (F) -
11+
# http://flake8.pycqa.org/en/latest/glossary.html#term-pyflakes
12+
# * Default warnings reported by flake8-bugbear (B) -
13+
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
14+
# * The B950 flake8-bugbear opinionated warning -
15+
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
16+
select = C,D,E,F,W,B,B950
17+
# Ignore flake8's default warning about maximum line length, which has
18+
# a hard stop at the configured value. Instead we use
19+
# flake8-bugbear's B950, which allows up to 10% overage.
20+
#
21+
# Also ignore flake8's warning about line breaks before binary
22+
# operators. It no longer agrees with PEP8. See, for example, here:
23+
# https://github.com/ambv/black/issues/21. Guido agrees here:
24+
# https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b.
25+
ignore = E501,W503

.github/CODEOWNERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Each line is a file pattern followed by one or more owners.
2+
3+
# These owners will be the default owners for everything in the
4+
# repo. Unless a later match takes precedence, these owners will be
5+
# requested for review when someone opens a pull request.
6+
* @dav3r @felddy @jsf9k @mcdonnnj
7+
8+
# These folks own any files in the .github directory at the root of
9+
# the repository and any of its subdirectories.
10+
/.github/ @dav3r @felddy @jsf9k @mcdonnnj

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
# Any ignore directives should be uncommented in downstream projects to disable
4+
# Dependabot updates for the given dependency. Downstream projects will get
5+
# these updates when the pull request(s) in the appropriate skeleton are merged
6+
# and Lineage processes these changes.
7+
8+
version: 2
9+
updates:
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+
ignore:
15+
# Managed by cisagov/skeleton-generic
16+
- dependency-name: actions/cache
17+
- dependency-name: actions/checkout
18+
- dependency-name: actions/setup-go
19+
- dependency-name: actions/setup-python
20+
- dependency-name: hashicorp/setup-terraform
21+
- dependency-name: mxschmitt/action-tmate
22+
# # Managed by cisagov/skeleton-python-library
23+
# - dependency-name: actions/download-artifact
24+
# - dependency-name: actions/upload-artifact
25+
26+
- package-ecosystem: "pip"
27+
directory: "/"
28+
schedule:
29+
interval: "weekly"
30+
31+
- package-ecosystem: "terraform"
32+
directory: "/"
33+
schedule:
34+
interval: "weekly"

.github/labels.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
# Rather than breaking up descriptions into multiline strings we disable that
3+
# specific rule in yamllint for this file.
4+
# yamllint disable rule:line-length
5+
- color: "eb6420"
6+
description: This issue or pull request is awaiting the outcome of another issue or pull request
7+
name: blocked
8+
- color: "000000"
9+
description: This issue or pull request involves changes to existing functionality
10+
name: breaking change
11+
- color: "d73a4a"
12+
description: This issue or pull request addresses broken functionality
13+
name: bug
14+
- color: "07648d"
15+
description: This issue will be advertised on code.gov's Open Tasks page (https://code.gov/open-tasks)
16+
name: code.gov
17+
- color: "0366d6"
18+
description: Pull requests that update a dependency file
19+
name: dependencies
20+
- color: "5319e7"
21+
description: This issue or pull request improves or adds to documentation
22+
name: documentation
23+
- color: "cfd3d7"
24+
description: This issue or pull request already exists or is covered in another issue or pull request
25+
name: duplicate
26+
- color: "b005bc"
27+
description: A high-level objective issue encompassing multiple issues instead of a specific unit of work
28+
name: epic
29+
- color: "000000"
30+
description: Pull requests that update GitHub Actions code
31+
name: github-actions
32+
- color: "0e8a16"
33+
description: This issue or pull request is well-defined and good for newcomers
34+
name: good first issue
35+
- color: "ff7518"
36+
description: Pull request that should count toward Hacktoberfest participation
37+
name: hacktoberfest-accepted
38+
- color: "a2eeef"
39+
description: This issue or pull request will add or improve functionality, maintainability, or ease of use
40+
name: improvement
41+
- color: "fef2c0"
42+
description: This issue or pull request is not applicable, incorrect, or obsolete
43+
name: invalid
44+
- color: "ce099a"
45+
description: This pull request is ready to merge during the next Lineage Kraken release
46+
name: kraken 🐙
47+
- color: "a4fc5d"
48+
description: This issue or pull request requires further information
49+
name: need info
50+
- color: "fcdb45"
51+
description: This pull request is awaiting an action or decision to move forward
52+
name: on hold
53+
- color: "3772a4"
54+
description: Pull requests that update Python code
55+
name: python
56+
- color: "ef476c"
57+
description: This issue is a request for information or needs discussion
58+
name: question
59+
- color: "00008b"
60+
description: This issue or pull request adds or otherwise modifies test code
61+
name: test
62+
- color: "1d76db"
63+
description: This issue or pull request pulls in upstream updates
64+
name: upstream update
65+
- color: "d4c5f9"
66+
description: This issue or pull request increments the version number
67+
name: version bump
68+
- color: "ffffff"
69+
description: This issue will not be incorporated
70+
name: wontfix

.github/lineage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
lineage:
3+
skeleton:
4+
remote-url: https://github.com/cisagov/skeleton-generic.git
5+
version: '1'

0 commit comments

Comments
 (0)