Update pre-commit repositories

This commit is contained in:
Marco Castelluccio 2024-01-17 11:09:09 +01:00
Родитель e75635362c
Коммит 50135a6fb7
4 изменённых файлов: 16 добавлений и 19 удалений

Просмотреть файл

@ -1,3 +1,4 @@
[flake8]
exclude = .git,__pycache__,models,db,cache
ignore = E101, E111, E114, E115, E116, E117, E121, E122, E123, E124, E125, E126, E127, E128, E129, E131, E133, E2, E3, E5, E501, E701, E702, E703, E704, W1, W2, W3, W503, W504, C101
max-line-length = 88
extend-ignore = E203,E501,C101

Просмотреть файл

@ -1,2 +1,2 @@
[settings]
known_third_party = connection,dateutil,distutils,hglib,icalendar,pytz,requests,requests_futures,responses,setuptools,six,whatthepatch
profile = black

Просмотреть файл

@ -1,31 +1,27 @@
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 23.1.0
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.0
rev: v3.1.0
hooks:
- id: prettier
exclude: ^tests/|libmozdata/modules.json
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
- "flake8-coding==1.3.2"
- "flake8-copyright==0.2.3"
- "flake8-debugger==4.1.2"
- flake8-coding==1.3.2
- flake8-copyright==0.2.4
- flake8-debugger==4.1.2
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-ast
- id: check-docstring-first
@ -46,16 +42,16 @@ repos:
- id: requirements-txt-fixer
- id: check-vcs-permalinks
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.6
hooks:
- id: codespell
exclude: libmozdata/modules.json
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.9
rev: v0.0.10
hooks:
- id: taskcluster_yml
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa
- repo: meta

Просмотреть файл

@ -6,9 +6,9 @@ import json
import os
import re
from collections import defaultdict
from distutils.version import LooseVersion
import requests
from distutils.version import LooseVersion
SEARCH_URL = os.getenv("BUILDHUB_SEARCH_URL", "https://buildhub.moz.tools/api/search")