Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
59f893b
Bump github/codeql-action from 3 to 4
dependabot[bot] Oct 13, 2025
a44c47d
Remove an unnecessary permission from the PR label workflow
mcdonnnj Oct 15, 2025
f5ede35
Bump actions/download-artifact from 5 to 6
dependabot[bot] Oct 27, 2025
336618a
Add pyproject.toml and remove setup.py
jsf9k Oct 28, 2025
c02b9d2
Move pytest config to pyproject.toml
jsf9k Oct 28, 2025
629a0cc
Add a license badge
jsf9k Oct 28, 2025
e133119
Update the color used for the `python` label
mcdonnnj Oct 29, 2025
15771ca
Update the color used for the `javascript` label
mcdonnnj Oct 29, 2025
a7eeb15
Update the color used for the `typescript` label
mcdonnnj Oct 29, 2025
fb7a736
Update the color used for the `ansible` label
mcdonnnj Oct 29, 2025
5503151
Update the color used for the `docker` label
mcdonnnj Oct 29, 2025
dc0d9a0
Add a label and auto-label configuration for shell scripts
mcdonnnj Oct 29, 2025
586af7c
Remove needless blank line
jsf9k Oct 29, 2025
8b5f6d2
Improve a labeler configuration's explanatory comment
mcdonnnj Oct 29, 2025
8a10d11
Add pyproject.toml as a trigger for the test label
jsf9k Oct 28, 2025
60d3f11
Add a few helpful comments
jsf9k Oct 28, 2025
3b8d5fc
Add a few more classifiers
jsf9k Oct 28, 2025
8cb395a
Correct license SPDX expression
jsf9k Nov 6, 2025
ad708bd
Rename .flake8 to pyproject.toml and update syntax
jsf9k Nov 6, 2025
2a3bb8b
Add flake8-pyproject as an additional dependency of the flake8 pre-co…
jsf9k Nov 6, 2025
a70cf3c
Move isort config to pyproject.toml file
jsf9k Nov 6, 2025
c1861e6
Add pyproject.toml as a trigger for the test label
jsf9k Nov 6, 2025
da7213e
Move contents of .bandit.yml to CLI option in .pre-commit-config.yaml
jsf9k Nov 6, 2025
22c6f40
Remove the .bandit.yml file
jsf9k Nov 6, 2025
15cb601
Pin the flake8-pyproject dependency in the pre-commit configuration
jsf9k Nov 6, 2025
bc6bf8c
Remove flake8-pyproject dependency from requirements-test.txt
jsf9k Nov 7, 2025
7b9de90
Remove deprecated license classifier
jsf9k Nov 10, 2025
13abf00
Use well-known labels for project URL keys
jsf9k Nov 10, 2025
461f872
Switch to using the setuptools build backend
jsf9k Nov 10, 2025
da6d6a2
Add package-data
jsf9k Nov 10, 2025
a4a5167
Add build dir to .gitignore
jsf9k Nov 10, 2025
c7c0c0a
Upgrade pre-commit hooks via pre-commit autoupdate
jsf9k Nov 17, 2025
056d2e1
Merge pull request #227 from cisagov/improvement/remove_unneeded_perm…
jsf9k Nov 17, 2025
895ff4f
Merge pull request #228 from cisagov/documentation/add-license-badge
jsf9k Nov 17, 2025
049543f
Merge pull request #229 from cisagov/improvement/update_label_colors
jsf9k Nov 17, 2025
be1d94a
Merge pull request #231 from cisagov/improvement/add_label_configurat…
jsf9k Nov 17, 2025
4a1bb4d
Merge pull request #235 from cisagov/improvement/move-flake8-config-t…
jsf9k Nov 17, 2025
eed01ea
Merge pull request #237 from cisagov/improvement/update-pre-commit-hooks
jsf9k Nov 17, 2025
8cb611d
Merge pull request #226 from cisagov/dependabot/github_actions/github…
jsf9k Nov 17, 2025
2d88e72
Add a CodeQL badge to the README
mcdonnnj Jul 17, 2025
7f52b02
Merge pull request #230 from cisagov/improvement/add_codeql_badge
jsf9k Nov 17, 2025
2759cc5
Update Bandit pre-commit hook
jsf9k Nov 18, 2025
f186c74
Merge pull request #238 from cisagov/improvement/update-bandit
jsf9k Nov 18, 2025
12101f0
Revert "Move all Python tool configs to `pyproject.toml`"
jsf9k Nov 18, 2025
b598b70
Move flake8 configuration to pyproject.toml
jsf9k Nov 18, 2025
077d3a2
Move isort config to pyproject.toml file
jsf9k Nov 18, 2025
447db4b
Remove .flake8 as a trigger for the test label
jsf9k Nov 18, 2025
fa65f8e
Merge pull request #239 from cisagov/revert-235-improvement/move-flak…
jsf9k Nov 18, 2025
730c066
Merge remote-tracking branch 'skeleton/develop' into lineage/skeleton
jsf9k Nov 19, 2025
5090de1
Keep two Bandit blocks in sync wrt version
jsf9k Nov 19, 2025
65a009e
Merge pull request #161 from cisagov/dependabot/github_actions/action…
jsf9k Nov 20, 2025
0b0f62f
Bump actions/upload-artifact from 4 to 5
dependabot[bot] Nov 20, 2025
5fca560
Merge pull request #162 from cisagov/dependabot/github_actions/action…
jsf9k Nov 20, 2025
6ffe323
Add a code style badge
jsf9k Oct 28, 2025
702dab0
Use lower case for the code style badge
jsf9k Oct 29, 2025
fa5dec3
Remove needless blank line
jsf9k Oct 29, 2025
89ee738
Merge pull request #165 from cisagov/documentation/add-badges
jsf9k Nov 20, 2025
9303e44
Merge remote-tracking branch 'origin/develop' into lineage/skeleton
jsf9k Nov 20, 2025
b75e60b
Remove needless carriage return
jsf9k Nov 20, 2025
2660c37
Merge pull request #167 from cisagov/lineage/skeleton
jsf9k Nov 20, 2025
9bac187
Merge remote-tracking branch 'origin/develop' into improvement/use-py…
jsf9k Nov 20, 2025
6d6043a
Merge pull request #164 from cisagov/improvement/use-pyproject-toml-file
jsf9k Nov 20, 2025
5b4e6e7
Drop support for Python 3.9
jsf9k Nov 20, 2025
a785305
Bump version from 0.3.0 to 1.0.0
jsf9k Nov 20, 2025
2d0498b
Bump version from 1.0.0 to 1.0.0-rc.1
jsf9k Nov 20, 2025
3d57f51
Finalize version from 1.0.0-rc.1 to 1.0.0
jsf9k Nov 20, 2025
d4df836
Merge pull request #168 from cisagov/improvement/remove-python-3.9-su…
jsf9k Nov 20, 2025
10b50ba
Merge remote-tracking branch 'skeleton/develop' into lineage/skeleton
jsf9k Nov 24, 2025
4c34238
Remove [project.scripts] table
jsf9k Nov 24, 2025
b10d903
Remove [project.package-data] table
jsf9k Nov 24, 2025
cfcd702
Bump version from 1.2.0 to 1.2.1-rc.1
jsf9k Nov 24, 2025
9ce39fc
Specify the license via the deprecated PEP 621 format
jsf9k Nov 24, 2025
ec24337
Remove types-setuptools and setuptools as dependencies
jsf9k Nov 24, 2025
772bb63
Add hidden dependency of mongomock for Python >= 3.12
jsf9k Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .bandit.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .flake8

This file was deleted.

15 changes: 10 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
# Add any dependency files used.
- .pre-commit-config.yaml
- requirements*.txt
- setup.py
- pyproject.toml
docker:
- changed-files:
- any-glob-to-any-file:
Expand All @@ -45,6 +45,14 @@ python:
- changed-files:
- any-glob-to-any-file:
- "**/*.py"
shell script:
- changed-files:
- any-glob-to-any-file:
# If this project has any shell scripts that do not end in the ".sh"
# extension, add them below.
- "**/*.sh"
- bump-version
- setup-env
terraform:
- changed-files:
- any-glob-to-any-file:
Expand All @@ -54,12 +62,9 @@ test:
- any-glob-to-any-file:
# Add any test-related files or paths.
- .ansible-lint
- .bandit.yml
- .flake8
- .isort.cfg
- .mdl_config.yaml
- .yamllint
- pytest.ini
- pyproject.toml
- tests/**
typescript:
- changed-files:
Expand Down
13 changes: 8 additions & 5 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Rather than breaking up descriptions into multiline strings we disable that
# specific rule in yamllint for this file.
# yamllint disable rule:line-length
- color: f15a53
- color: ff5850
description: Pull requests that update Ansible code
name: ansible
- color: eb6420
Expand All @@ -20,7 +20,7 @@
- color: 0366d6
description: Pull requests that update a dependency file
name: dependencies
- color: 2497ed
- color: 1d63ed
description: Pull requests that update Docker code
name: docker
- color: 5319e7
Expand All @@ -47,7 +47,7 @@
- color: fef2c0
description: This issue or pull request is not applicable, incorrect, or obsolete
name: invalid
- color: f1d642
- color: f0db4f
description: Pull requests that update JavaScript code
name: javascript
- color: ce099a
Expand All @@ -62,7 +62,7 @@
- color: 02a8ef
description: Pull requests that update Packer code
name: packer
- color: 3772a4
- color: 3776ab
description: Pull requests that update Python code
name: python
- color: ef476c
Expand All @@ -71,13 +71,16 @@
- color: d73a4a
description: This issue or pull request addresses a security issue
name: security
- color: 4eaa25
description: Pull requests that update shell scripts
name: shell script
- color: 7b42bc
description: Pull requests that update Terraform code
name: terraform
- color: 00008b
description: This issue or pull request adds or otherwise modifies test code
name: test
- color: 2b6ebf
- color: 2678c5
description: Pull requests that update TypeScript code
name: typescript
- color: 1d76db
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ jobs:
- name: Build artifacts
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: dist-${{ matrix.python-version }}
path: dist
Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Retrieve the built wheel
uses: actions/download-artifact@v5
uses: actions/download-artifact@v6
with:
name: dist-${{ matrix.python-version }}
path: dist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or
# Java). If this step fails, then you should remove it and run the build
# manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -140,4 +140,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
1 change: 0 additions & 1 deletion .github/workflows/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
permissions:
# Permissions required by actions/labeler
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ __pycache__
.pytest_cache
.python-version
*.egg-info
build
dist
10 changes: 0 additions & 10 deletions .isort.cfg

This file was deleted.

30 changes: 17 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ repos:

# GitHub Actions hooks
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.3
rev: 0.35.0
hooks:
- id: check-github-actions
- id: check-github-workflows

# pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit
rev: v4.3.0
rev: v4.4.0
hooks:
- id: validate_manifest

# Go hooks
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.2
rev: v1.0.0-rc.4
hooks:
# Go Build
- id: go-build-repo-mod
Expand Down Expand Up @@ -130,22 +130,24 @@ repos:
# Python hooks
# Run bandit on the "tests" tree with a configuration
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
rev: 1.9.1
hooks:
- id: bandit
name: bandit (tests tree)
files: tests
args:
- --config=.bandit.yml
# Skip "assert used" check since assertions are used
# frequently in pytests.
- --skip=B101
# Run bandit on everything except the "tests" tree
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
rev: 1.9.1
hooks:
- id: bandit
name: bandit (everything else)
exclude: tests
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
rev: 25.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand All @@ -154,12 +156,15 @@ repos:
- id: flake8
additional_dependencies:
- flake8-docstrings==1.7.0
# This is necessary to read the flake8 configuration from
# the pyproject.toml file.
- flake8-pyproject==1.2.3
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
rev: 7.0.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.1
rev: v1.18.2
hooks:
- id: mypy
# IMPORTANT: Keep type hinting-related dependencies of the
Expand All @@ -168,7 +173,6 @@ repos:
# checking between environments.
additional_dependencies:
- types-PyYAML
- types-setuptools
- repo: https://github.com/pypa/pip-audit
rev: v2.9.0
hooks:
Expand All @@ -182,13 +186,13 @@ repos:
- --requirement
- requirements.txt
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.1
hooks:
- id: pyupgrade

# Ansible hooks
- repo: https://github.com/ansible/ansible-lint
rev: v25.9.0
rev: v25.11.0
hooks:
- id: ansible-lint
additional_dependencies:
Expand Down Expand Up @@ -232,7 +236,7 @@ repos:

# Terraform hooks
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.100.0
rev: v1.103.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# mongo-db-from-config ⚙️ #

[![GitHub Build Status](https://github.com/cisagov/mongo-db-from-config/workflows/build/badge.svg)](https://github.com/cisagov/mongo-db-from-config/actions)
[![License](https://img.shields.io/github/license/cisagov/mongo-db-from-config)](https://spdx.org/licenses/)
[![CodeQL](https://github.com/cisagov/mongo-db-from-config/workflows/CodeQL/badge.svg)](https://github.com/cisagov/mongo-db-from-config/actions/workflows/codeql-analysis.yml)
[![Coverage Status](https://coveralls.io/repos/github/cisagov/mongo-db-from-config/badge.svg?branch=develop)](https://coveralls.io/github/cisagov/mongo-db-from-config?branch=develop)
[![Code Style](https://img.shields.io/badge/Code%20Style-black-black)](https://github.com/psf/black)

This is a small utility library that can be used to easily create a MongoDB
connection based on the data in a simple YAML configuration file.
Expand Down
Loading
Loading