diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3134295..fa6502c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,25 +1,6 @@ # Basic dependabot.yml file with minimum configuration for two package managers - version: 2 updates: - # Enable version updates for python - - package-ecosystem: "pip" - # Look for a `requirements` in the `root` directory - directory: "/" - # Check for updates once a week - schedule: - interval: "monthly" - # Labels on pull requests for version updates only - labels: - - "CI / tests" - pull-request-branch-name: - # Separate sections of the branch name with a hyphen for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` - separator: "-" - # Allow up to 5 open pull requests for pip dependencies - open-pull-requests-limit: 5 - reviewers: - - "borda" - # Enable version updates for GitHub Actions - package-ecosystem: "github-actions" directory: "/" diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index af3d840..70ef6c6 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -1,11 +1,11 @@ name: Publish Docker Image # https://www.docker.com/blog/first-docker-github-action-is-here # https://github.com/docker/build-push-action -on: # Trigger the workflow on push or pull request, but only for the master branch +on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} @@ -22,10 +22,10 @@ jobs: opencv_version: ["4.8.1"] device: ["cpu", "gpu"] include: - - {ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.8.1", device: "cpu"} - - {ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.8.1", device: "gpu"} - - {ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.8.1", device: "cpu"} - - {ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.8.1", device: "gpu"} + - { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.8.1", device: "cpu" } + - { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.8.1", device: "gpu" } + - { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.8.1", device: "cpu" } + - { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.8.1", device: "gpu" } steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/label-conflicts.yml b/.github/workflows/label-conflicts.yml index 28fa5c2..f0ce1cf 100644 --- a/.github/workflows/label-conflicts.yml +++ b/.github/workflows/label-conflicts.yml @@ -14,7 +14,7 @@ jobs: triage-conflicts: runs-on: ubuntu-latest steps: - - uses: mschilde/auto-label-merge-conflicts@8c6faa8a252e35ba5e15703b3d747bf726cdb95c # Oct 25, 2021 + - uses: mschilde/auto-label-merge-conflicts@8c6faa8a252e35ba5e15703b3d747bf726cdb95c # Oct 25, 2021 with: CONFLICT_LABEL_NAME: "has conflicts" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1fc2238..dd74bca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ ci: autofix_prs: true - autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' + autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions" autoupdate_schedule: quarterly # submodules: true @@ -17,6 +17,11 @@ repos: - id: check-added-large-files - id: detect-private-key + - repo: https://github.com/codespell-project/codespell + rev: v2.2.5 + hooks: + - id: codespell + - repo: https://github.com/executablebooks/mdformat rev: 0.7.16 hooks: @@ -29,3 +34,10 @@ repos: rev: v0.1.0 hooks: - id: dockerfilelint + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.0.3 + hooks: + - id: prettier + # https://prettier.io/docs/en/options.html#print-width + args: ["--print-width=120"] diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..c5646f7 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +# Ignore all MD files: +**/*.md