Revision 536428b9a069886b54bfb4e1ef140c9f3cf335d0 authored by Antoine Lambert on 11 March 2024, 15:33:53 UTC, committed by Antoine Lambert on 11 March 2024, 16:20:13 UTC
Update the listed_origins table primary key by taking into account the
extra_loader_arguments column.

It enables to record listed origins with same origin URL and visit type
but with different loader arguments.

Related to swh/infra/sysadm-environment#5263.
1 parent fb74661
Raw File
.pre-commit-config.yaml
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: trailing-whitespace
      - id: check-json
      - id: check-yaml

  - repo: https://github.com/python/black
    rev: 23.1.0
    hooks:
      - id: black

  - repo: https://github.com/PyCQA/isort
    rev: 5.12.0
    hooks:
      - id: isort

  - repo: https://github.com/pycqa/flake8
    rev: 6.0.0
    hooks:
      - id: flake8
        additional_dependencies: [flake8-bugbear==22.9.23]

  - repo: https://github.com/codespell-project/codespell
    rev: v2.2.2
    hooks:
      - id: codespell
        name: Check source code spelling
        args: [-L simpy, -L hist]
        stages: [commit]
      - id: codespell
        name: Check commit message spelling
        stages: [commit-msg]

  - repo: local
    hooks:
      - id: mypy
        name: mypy
        entry: mypy
        args: [swh]
        pass_filenames: false
        language: system
        types: [python]

back to top