https://github.com/SoftwareHeritage/swh-model
Revision 07c7b4f151022f8ecdbaff6013cc71e36340d155 authored by Valentin Lorentz on 21 January 2022, 13:51:18 UTC, committed by Valentin Lorentz on 16 March 2022, 09:29:42 UTC
This reverts commit a0f5436273ef6f5b62a388ae131ed5afa7287d00.

This means this commit removes the 'offset' and 'negative_utc'
arguments.

It also removes the 'negative_utc' attribute (which is not used
anymore), but keeps an 'offset' property, which is an alias to
'offset_minutes()'. This is only to keep this commit readable;
the next commit will remove this alias.
1 parent 118c8a4
Raw File
Tip revision: 07c7b4f151022f8ecdbaff6013cc71e36340d155 authored by Valentin Lorentz on 21 January 2022, 13:51:18 UTC
Revert "Restore 'offset' and 'negative_utc' arguments and make them optional"
Tip revision: 07c7b4f
.pre-commit-config.yaml
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.1.0
    hooks:
      - id: trailing-whitespace
      - id: check-json
      - id: check-yaml

  - repo: https://gitlab.com/pycqa/flake8
    rev: 4.0.1
    hooks:
      - id: flake8

  - repo: https://github.com/codespell-project/codespell
    rev: v2.1.0
    hooks:
      - id: codespell
        name: Check source code spelling
        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]

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

  - repo: https://github.com/python/black
    rev: 19.10b0
    hooks:
      - id: black
back to top