Skip to content

Commit

Permalink
Add cicd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Nov 7, 2023
1 parent ec2fbd4 commit c3740f3
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test pipeline

on:
push:
branches:
- main
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- uses: pre-commit/[email protected]
with:
extra_args: --all-files --show-diff-on-failure
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
ci:
autoupdate_branch: "main"
autoupdate_schedule: monthly
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.264'
hooks:
- id: ruff
files: |
(?x)^(
src/.*|
)$
args: [
"--target-version=py38",
"--fix",
"--exit-non-zero-on-fix",
]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
name: bandit
args: [
"-r",
"./src/*"
]

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: black
files: |
(?x)^(
src/.*|
)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
args: ["--ignore-missing-imports", "src"]
pass_filenames: false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c3740f3

Please sign in to comment.