Skip to content

Commit

Permalink
testing pre-commit hooks (#287)
Browse files Browse the repository at this point in the history
* testing pre-commit hooks

* update continaer build
  • Loading branch information
devsecfranklin committed Jun 30, 2024
1 parent e306816 commit 376d234
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
File renamed without changes.
18 changes: 18 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: build container
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: build Debian bullseye container
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build an image from Dockerfile
run: |
./bootstrap.sh
./configure
cd docker && make build
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
args: [--fail-under=80, --verbose]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
args: [--ignore=D107,D204]
3 changes: 2 additions & 1 deletion tests/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ coverage==7.3.2
flake8==6.1.0
pylint==2.17.4
isort==5.12.0
black
black
pre-commit

0 comments on commit 376d234

Please sign in to comment.