Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

⬆️ Mainteance: update requirements + pre-commit #45

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,18 @@ jobs:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build and deploy image for linux/amd64,linux/arm/v7,linux/arm64
- name: build and deploy image for linux/amd64
if: github.event_name == 'push'
env:
DOCKER_TARGET_PLATFORMS: linux/amd64,linux/arm/v7,linux/arm64
DOCKER_TARGET_PLATFORMS: linux/amd64
DOCKER_REGISTRY: ${{ secrets.DOCKER_IMAGE_PATH }}
run: |
make build push=1 && \
make info-images
- name: build image for linux/amd64,linux/arm/v7,linux/arm64
- name: build image for linux/amd64
if: github.event_name == 'pull_request'
env:
DOCKER_TARGET_PLATFORMS: linux/amd64,linux/arm/v7,linux/arm64
DOCKER_TARGET_PLATFORMS: linux/amd64
run: |
make build && \
make info-images
36 changes: 30 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,42 @@ default_language_version:
python: python3.9
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: debug-statements
- id: no-commit-to-branch
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
args:
- "--py39-plus"
name: upgrade code
- repo: https://github.com/hadialqattan/pycln
rev: v1.2.5
hooks:
- id: pycln
args: [--all, --expand-stars]
name: prune imports
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
name: sort imports
- repo: https://github.com/psf/black
rev: 21.9b0
rev: 22.3.0
hooks:
- id: black
name: black format code
Loading