Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Release #956

Merged
merged 141 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
2462eed
Update dependency pikepdf to v6
renovate[bot] Sep 21, 2022
5711f71
Fix for new version of pikepdf
sbrunner Sep 21, 2022
c61c691
Merge pull request #843 from sbrunner/renovate/pikepdf-6.x
sbrunner Sep 22, 2022
eae8e2e
Fix the get config in changelog workflow
sbrunner Sep 23, 2022
c4c2046
Merge pull request #852 from sbrunner/changelog-fix
sbrunner Sep 23, 2022
a9d3d67
Update dependency c2cciutils to v1.3.5
renovate[bot] Sep 24, 2022
cf450a4
Lock file maintenance
renovate[bot] Sep 26, 2022
c08e77c
Update dependency c2cciutils to v1.3.7
renovate[bot] Sep 30, 2022
1075d59
Update dependency PyPDF2 to v2.11.0
renovate[bot] Oct 1, 2022
2e66707
Lock file maintenance
renovate[bot] Oct 2, 2022
526e105
Update all minor versions
renovate[bot] Oct 8, 2022
a34e729
Update dependency matplotlib to v3.6.1
renovate-bot Oct 8, 2022
f55dc41
Lock file maintenance
renovate[bot] Oct 9, 2022
a9d3e08
Update Poetry
renovate[bot] Oct 10, 2022
a3929fa
Pin Poetry packages versions
sbrunner Oct 16, 2022
af6b005
Use the new Poetry argument
sbrunner Oct 16, 2022
3d3372b
Update the Poetry versioning configuration
sbrunner Oct 16, 2022
41b04d8
Merge pull request #859 from sbrunner/renovate/poetry
sbrunner Oct 16, 2022
cadf3cc
Update all patch versions
renovate[bot] Oct 16, 2022
2ab3cca
Update dependency tifffile to v2022.10.10
renovate[bot] Oct 16, 2022
31f0da0
Lock file maintenance
renovate[bot] Oct 16, 2022
1befb2a
Update all patch versions
renovate[bot] Oct 22, 2022
5b87cc5
Update dependency weasyprint to v57
renovate[bot] Oct 22, 2022
9377bb1
Update dependency poetry-dynamic-versioning to v0.20.0
renovate[bot] Oct 22, 2022
29ef3af
Merge pull request #867 from sbrunner/renovate/weasyprint-57.x
sbrunner Oct 22, 2022
037f350
Lock file maintenance
renovate[bot] Oct 24, 2022
2c65b62
Add install introduction in the readme
sbrunner Oct 24, 2022
39bc64c
Merge pull request #871 from sbrunner/readme
sbrunner Oct 24, 2022
9d38d07
Fix publisg Docker image
sbrunner Oct 24, 2022
c7b0e7a
Fix Docker publish
sbrunner Oct 24, 2022
74846b2
Don't publish Docker images to GitHub
sbrunner Oct 24, 2022
01b3693
Update dependency c2cciutils to v1.3.11
renovate[bot] Oct 24, 2022
93150bf
Remove packages versions
sbrunner Oct 25, 2022
fa0ac5d
Merge pull request #872 from sbrunner/renovate/patch-all-patch-versions
sbrunner Oct 25, 2022
e088200
Add workflow to delete old workflow runs
sbrunner Oct 27, 2022
985133a
Merge pull request #873 from sbrunner/delete-old-workflows-run
sbrunner Oct 27, 2022
0eaddd5
Update dependency reportlab to v3.6.12
renovate[bot] Oct 29, 2022
c1035a6
Update all minor versions
renovate[bot] Oct 29, 2022
e5c5b50
Update dependency Pillow to v9.3.0
renovate[bot] Oct 29, 2022
4a09e33
Lock file maintenance
renovate[bot] Oct 30, 2022
383fb93
Fix repository in workflow used to delete old workflow runs
sbrunner Oct 31, 2022
efc6cd8
Merge pull request #878 from sbrunner/delete-old-workflows-run
sbrunner Oct 31, 2022
e133c75
Fix repository in workflow used to delete old workflow runs
sbrunner Nov 2, 2022
b73dd04
Merge pull request #879 from sbrunner/delete-old-workflows-run
sbrunner Nov 2, 2022
26764f4
Update dependency matplotlib to v3.6.2
renovate[bot] Nov 5, 2022
b1c477f
Update dependency weasyprint to v57.1
renovate[bot] Nov 5, 2022
ce6e471
Lock file maintenance
renovate[bot] Nov 7, 2022
256f4db
Fix build
sbrunner Nov 7, 2022
bae5fdd
Merge pull request #882 from sbrunner/renovate/lock-file-maintenance
sbrunner Nov 7, 2022
0cf714e
Create or update a Poetry group for Renovate
sbrunner Nov 7, 2022
f79045d
Merge pull request #883 from sbrunner/renovate-group-poetry
sbrunner Nov 10, 2022
27ef057
Update dependency pikepdf to v6.2.3
renovate[bot] Nov 12, 2022
36ada1e
Update dependency pip to v22
renovate[bot] Nov 12, 2022
6ce7981
Lock file maintenance
renovate[bot] Nov 13, 2022
e95d0fa
Add missing audit workflow
sbrunner Nov 16, 2022
6e5cb1a
Merge pull request #891 from sbrunner/audit
sbrunner Nov 16, 2022
6bf71da
Remove set local environment variables
sbrunner Nov 16, 2022
fa9d8f3
Merge pull request #892 from sbrunner/remove-local-set
sbrunner Nov 16, 2022
65e40ce
Set git config in audit workflow
sbrunner Nov 17, 2022
2487569
Merge pull request #893 from sbrunner/audit-git
sbrunner Nov 17, 2022
cf066cd
Upgrade deprecated set-output commands
sbrunner Nov 18, 2022
9b41ff7
Merge pull request #895 from sbrunner/gsgmf-1914-github-set-output
sbrunner Nov 18, 2022
779e030
Update dependency pikepdf to v6.2.4
renovate[bot] Nov 19, 2022
953fdf5
Lock file maintenance
renovate[bot] Nov 20, 2022
19f415e
Ren Renovate on master branch
sbrunner Nov 22, 2022
7e937ab
Update all patch versions
renovate[bot] Nov 26, 2022
0044413
Update dependency pyroma to v4.1
renovate[bot] Nov 26, 2022
7341748
Lock file maintenance
renovate[bot] Nov 28, 2022
d8541e2
Removes poetry-core dependency
sbrunner Nov 28, 2022
cf6070f
Fix publish
sbrunner Nov 28, 2022
126623a
Merge pull request #907 from sbrunner/remove-unneeded-poetry-core
sbrunner Nov 28, 2022
906085e
Update dependency poetry-core to v1.4.0
renovate-bot Nov 28, 2022
437e8d9
Update all minor versions
renovate[bot] Dec 3, 2022
916d2bf
Fix build
sbrunner Dec 3, 2022
005f6bf
Merge pull request #908 from sbrunner/renovate/test-all-minor-versions
sbrunner Dec 3, 2022
35f2389
Update all minor versions
renovate[bot] Dec 3, 2022
2612611
Downgrade Prospector
sbrunner Dec 3, 2022
ab3719a
Merge pull request #910 from sbrunner/renovate/test-all-minor-versions
sbrunner Dec 3, 2022
cc1f2ac
Configure Mend Bolt for GitHub
sbrunner Dec 4, 2022
b43a874
Configure Mend Bolt
sbrunner Dec 4, 2022
4f3f717
Merge pull request #913 from sbrunner/configure-mend-bolt
sbrunner Dec 4, 2022
d0cd2a8
Fix rebuild
sbrunner Dec 5, 2022
55fb752
Run Renovate once a mounth
sbrunner Dec 5, 2022
a990d64
Run Renovate once a mounth
sbrunner Dec 5, 2022
1364b8e
Create the pull request for Snyk fix with the gs bot user
sbrunner Dec 14, 2022
234973e
Merge pull request #918 from sbrunner/snyk-create-pull-request-user
sbrunner Dec 14, 2022
be0281f
Change changelog generation tool, move ti the the GitHub release
sbrunner Dec 20, 2022
3f50da4
Merge pull request #919 from sbrunner/changelog-release
sbrunner Dec 20, 2022
a5a21f9
Update all patch versions
renovate-bot Jan 1, 2023
8aa0db2
Update Poetry
renovate-bot Jan 1, 2023
7b1d1e0
Update README.md
kugelzucker Jan 1, 2023
6860740
Merge pull request #932 from kugelzucker/patch-1
sbrunner Jan 2, 2023
8bdf2e5
Update all minor versions
renovate[bot] Jan 2, 2023
25747b5
Downgrade Prospector
sbrunner Jan 3, 2023
5ad79cd
Merge pull request #924 from sbrunner/renovate/test-all-minor-versions
sbrunner Jan 3, 2023
95fbf24
Update dependency PyPDF2 to v3
renovate[bot] Jan 3, 2023
3ddf34e
Merge pull request #925 from sbrunner/renovate/test-pypdf2-3.x
sbrunner Jan 3, 2023
8f8db63
Lock file maintenance
renovate[bot] Jan 3, 2023
f33d7b4
Downgrade pylint
sbrunner Jan 3, 2023
73f21a5
Merge pull request #926 from sbrunner/renovate/test-lock-file-mainten…
sbrunner Jan 3, 2023
61c630d
Fix pull requests check workflow, use our CI token
sbrunner Jan 4, 2023
6a00437
Merge pull request #934 from sbrunner/fix-pr-checks-test
sbrunner Jan 4, 2023
5ccfd8e
Add missing token in publish
sbrunner Jan 4, 2023
3dad1b2
Add missing token on publish on rebuild
sbrunner Jan 5, 2023
d5bfc72
Update dependency pikepdf to v6.2.8.post1
renovate[bot] Jan 10, 2023
7b646c6
Merge pull request #922 from sbrunner/renovate/test-patch-all-patch-v…
sbrunner Jan 10, 2023
f0d594a
Update all minor versions
renovate[bot] Jan 11, 2023
3e001b5
Merge pull request #935 from sbrunner/renovate/test-all-minor-versions
sbrunner Jan 11, 2023
207c8f4
Add pre commits hooks
sbrunner Jan 11, 2023
8d2b83c
Merge pull request #936 from sbrunner/add-pre-commit-hook
sbrunner Jan 11, 2023
ed51634
Fix the license file
sbrunner Jan 22, 2023
7ef330c
Merge pull request #938 from sbrunner/license
sbrunner Jan 22, 2023
d1c7f70
Use an existing secret
sbrunner Jan 30, 2023
404888a
Update all patch versions
renovate[bot] Feb 1, 2023
917fd78
Update dependency tifffile to v2023
renovate[bot] Feb 1, 2023
c0a3e37
Update pre-commit hook psf/black to v23
renovate[bot] Feb 1, 2023
61bc9d0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 1, 2023
194bb59
Update all minor versions
renovate[bot] Feb 1, 2023
5946eef
Update dependency pyopenssl to v23
renovate[bot] Feb 1, 2023
f31a38d
Lock file maintenance
renovate[bot] Feb 1, 2023
e75d6a5
Merge pull request #946 from sbrunner/renovate/test-pyopenssl-23.x
sbrunner Feb 1, 2023
fca179f
Merge pull request #950 from sbrunner/renovate/test-psf-black-23.x
sbrunner Feb 1, 2023
884b643
Merge pull request #949 from sbrunner/renovate/test-lock-file-mainten…
sbrunner Feb 1, 2023
268c547
Merge pull request #947 from sbrunner/renovate/test-tifffile-2023.x
sbrunner Feb 1, 2023
64a3bc6
Update dependency pre-commit to v3
renovate[bot] Feb 1, 2023
7187de4
Update dependency zxing-cpp to v2
renovate[bot] Feb 1, 2023
134a750
Merge pull request #945 from sbrunner/renovate/test-pre-commit-3.x
sbrunner Feb 1, 2023
0f172d8
Merge pull request #948 from sbrunner/renovate/test-zxing-cpp-2.x
sbrunner Feb 1, 2023
ba493cc
Update Poetry
renovate[bot] Feb 1, 2023
89e51fc
Update actions/cache action to v3
renovate[bot] Feb 1, 2023
6ff3efe
Merge pull request #943 from sbrunner/renovate/test-poetry
sbrunner Feb 1, 2023
9e11d8c
Merge pull request #944 from sbrunner/renovate/test-actions-cache-3.x
sbrunner Feb 1, 2023
0d21a81
Lock file maintenance
renovate[bot] Feb 1, 2023
fb32418
Fix new Pylint issues
sbrunner Feb 2, 2023
c46d961
Merge pull request #951 from sbrunner/renovate/test-lock-file-mainten…
sbrunner Feb 2, 2023
1111734
Do the pull request at the end of the day
sbrunner Feb 3, 2023
4d57514
Merge pull request #952 from sbrunner/renovate-schedule
sbrunner Feb 3, 2023
90ba227
Do the pull request at the end of the day
sbrunner Feb 3, 2023
0729f26
Merge pull request #953 from sbrunner/renovate-schedule
sbrunner Feb 3, 2023
4bb902c
Merge remote-tracking branch 'origin/master' into test
sbrunner Feb 9, 2023
b104815
Remove pyopenssl dependency
sbrunner Feb 9, 2023
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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trim_trailing_whitespace = true
max_line_length = 110
quote_type = single

[*.{yaml,json,json5,md}]
[*.{yaml,json,json5,md,whitesource}]
indent_size = 2

[{Makefile, *.mk}]
Expand Down
24 changes: 0 additions & 24 deletions .github/changelog-config.yaml

This file was deleted.

25 changes: 22 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
{
extends: ['config:base'],
timezone: 'Europe/Zurich',
schedule: 'after 1am on Saturday',
schedule: 'after 5pm on the first day of the month',
labels: ['dependencies'],
separateMajorMinor: true,
separateMinorPatch: true,
prHourlyLimit: 0,
prConcurrentLimit: 0,
lockFileMaintenance: { enabled: true, automerge: true },
lockFileMaintenance: {
enabled: true,
automerge: true,
schedule: 'after 5pm on the first day of the month',
},
baseBranches: ['master', 'test'],
'pre-commit': { enabled: true },
regexManagers: [
{
fileMatch: ['^.pre-commit-config.yaml'],
matchStrings: [" +- '?(?<depName>[^' @=]+)(@|==)(?<currentValue>[^' @=]+)'? # (?<datasource>.+)"],
},
],
packageRules: [
/** Automerge the patch, the minor and the dev dependency */
{
Expand Down Expand Up @@ -37,7 +49,8 @@
},
/** Group Poetry packages */
{
matchPackageNames: ['poetry', 'poetry-core'],
matchPackageNames: ['poetry', 'pip'],
matchPackagePrefixes: ['poetry-'],
groupName: 'Poetry',
automerge: true,
separateMajorMinor: false,
Expand All @@ -49,5 +62,11 @@
matchPackageNames: ['c2cciutils'],
enabled: false,
},
/** Accept only the patch on stabilization branches */
{
matchBaseBranches: ['master'],
matchUpdateTypes: ['major', 'minor', 'pin', 'digest', 'lockFileMaintenance', 'rollback', 'bump'],
enabled: false,
},
],
}
35 changes: 35 additions & 0 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Audit

on:
schedule:
- cron: '30 2 * * *'

jobs:
audit:
runs-on: ubuntu-22.04
name: Audit
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
branch:
- master

steps:
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- run: git config --global user.email "sbrunner@ci.org"
- run: git config --global user.name "Snyk autofix"

- run: python3 -m venv ~/.venv
- run: ~/.venv/bin/pip install --pre c2cciutils[audit]
- run: python3 -m pip install --pre c2cciutils[audit]

- name: Audit
run: ~/.venv/bin/c2cciutils-audit --branch=${{ matrix.branch }}
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
62 changes: 24 additions & 38 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,45 @@
name: Changelog Generator

on:
schedule:
- cron: '0 0 * * 1'
push:
branches:
- test
tags:
- '*'
- '*.*.*'

jobs:
changelog:
name: Changelog Generator
runs-on: ubuntu-20.04
timeout-minutes: 10
runs-on: ubuntu-22.04
timeout-minutes: 30

steps:
- uses: actions/checkout@v3

- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- name: Create release
run: |
if [[ ${{ env.GITHUB_REF_NAME }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
gh release create ${{ env.GITHUB_REF_NAME }}
fi
if: env.GITHUB_REF_TYPE == 'tag'

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M%S")"
echo "date=$(/bin/date -u "+%Y%m%d%H%M%S")" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
.github/changelog-generator-cache
key: changelog-${{ steps.get-date.outputs.date }}
path: .cache
key: automation-${{ steps.get-date.outputs.date }}
restore-keys: |
changelog-
automation-

- name: Get config
id: config
run: echo ::set-output name=config::$(python -c 'print(__import__("json").dumps(__import__("yaml").load(open(".github/changelog-config.yaml"), Loader=__import__("yaml").SafeLoader)))')
- run: docker pull aeonphp/automation
- name: Generate changelog
id: changelog
uses: heinrichreimer/github-changelog-generator-action@v2.3
with:
token: ${{ secrets.TOKEN }}
configureSections: ${{ steps.config.outputs.config }}
cacheFile: .github/changelog-generator-cache
unreleased: false

- run: c2cciutils-checks --fix --check=prettier
- id: status
run: echo ::set-output name=status::$(git status --short)
- run: |
git add CHANGELOG.md
git config --global user.email "ci@example.com"
git config --global user.name "CI"
git commit -m "Update the changelog"
git checkout -b changelog-update
git push origin changelog-update -f
gh pr create --base=master --fill --label=chore || true
run: >
docker run --env=AEON_AUTOMATION_GH_TOKEN --rm --volume=$(pwd)/.cache:/cache aeonphp/automation
changelog:generate:all
${{ github.repository }}
--github-release-update
--cache-path=/cache
-v
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
if: steps.status.outputs.status != ''
AEON_AUTOMATION_GH_TOKEN: ${{ secrets.TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/delete-old-workflows-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Delete old workflow runs

on:
schedule:
- cron: '0 0 * * *'

env:
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}

jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 25
name: Delete old workflow runs

steps:
- name: Delete old workflow runs
uses: MajorScruffy/delete-old-workflow-runs@v0.3.0
with:
repository: ${{ github.repository }}
older-than-seconds: 43200000 # 500 days
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 16 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,23 @@ jobs:
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt

- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: "pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}\npre-commit-"
- run: pre-commit run --all-files
- name: Checks
run: c2cciutils-checks
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: GitHub event
run: echo ${GITHUB_EVENT} | python3 -m json.tool
env:
GITHUB_EVENT: ${{ toJson(github) }}

# the if the generated files are up to date
# the if the generated files are up to date
- run: make jsonschema
- run: git diff --quiet
- run: git diff
Expand Down Expand Up @@ -87,10 +96,16 @@ jobs:
- name: Publish
run: c2cciutils-publish
if: env.HAS_SECRETS == 'HAS_SECRETS'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_NEW }}

- run: make build-all

- name: Publish Docker all
run: |
c2cciutils-publish --group=docker-all
if: env.HAS_SECRETS == 'HAS_SECRETS'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_NEW }}
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
run: c2cciutils-pull-request-checks
env:
GITHUB_EVENT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
8 changes: 8 additions & 0 deletions .github/workflows/rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:

- name: Checks
run: c2cciutils-checks
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

# the if the generated files are up to date
- run: make jsonschema
Expand Down Expand Up @@ -74,10 +76,16 @@ jobs:

- name: Publish
run: c2cciutils-publish --group=docker --type=rebuild --branch=${{ matrix.branch }}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_NEW }}

- run: make build-all

- name: Publish Docker all
run: |
c2cciutils-publish --group=docker-all
if: env.HAS_SECRETS == 'HAS_SECRETS'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_NEW }}
70 changes: 66 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,57 @@
ci:
skip:
- copyright

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: detect-private-key
- id: check-merge-conflict
- id: check-ast
- id: debug-statements
- id: check-toml
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/sbrunner/pre-commit-copyright
rev: 0.2.3
hooks:
- id: copyright
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
exclude: ^(.*/)?poetry\.lock$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
- prettier@2.8.3 # npm
- prettier-plugin-sh@0.12.8 # npm
- prettier-plugin-toml@0.3.1 # npm
- '@prettier/plugin-xml@0.12.0' # npm
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
- id: shellcheck
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: git-check
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
hooks:
- id: check-github-workflows
- id: check-renovate
additional_dependencies:
- pyjson5==1.6.2 # pypi
- repo: https://github.com/sirwart/ripsecrets
rev: v0.1.5
hooks:
- id: ripsecrets
exclude: "(^\
thepaperlessproject-paperless-webserver.json\
|thepaperlessproject-paperless-consumer.json)"
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
Expand All @@ -15,3 +60,20 @@ repos:
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
hooks:
- id: autoflake
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/PyCQA/prospector
rev: v1.8.4
hooks:
- id: prospector
args:
- --tool=pydocstyle
- --die-on-tool-error
14 changes: 14 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"issueSettings": {
"minSeverityLevel": "LOW",
"issueType": "DEPENDENCY"
}
}
Loading