зеркало из https://github.com/mozilla/kitsune.git
update all libraries and pre-commit hooks
This commit is contained in:
Родитель
a4e4debfc0
Коммит
efbd78720a
|
@ -8,7 +8,7 @@ jobs:
|
|||
- run:
|
||||
name: Lint with pre-commit
|
||||
command: |
|
||||
pip install --upgrade pre-commit==3.0.3
|
||||
pip install --upgrade pre-commit==3.6.0
|
||||
pre-commit run --all-files
|
||||
test-and-build:
|
||||
docker:
|
||||
|
|
|
@ -2,44 +2,44 @@ default_language_version:
|
|||
python: python3.11
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
- id: check-merge-conflict
|
||||
- id: debug-statements
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.1.0
|
||||
rev: 23.12.1
|
||||
hooks:
|
||||
- id: black
|
||||
files: "^kitsune/"
|
||||
exclude: "^.*/migrations/.*$|kitsune/sumo/db_strings.py"
|
||||
language_version: python3.11
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.0.0
|
||||
rev: 7.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.7.1
|
||||
rev: v4.0.0-alpha.8
|
||||
hooks:
|
||||
- id: prettier
|
||||
additional_dependencies:
|
||||
- prettier@2.7.1
|
||||
- prettier-plugin-svelte@2.7.0
|
||||
- prettier@3.2.0
|
||||
- prettier-plugin-svelte@3.1.2
|
||||
files: "^svelte/"
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.0.1
|
||||
rev: v1.8.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
# Add to the "additional_dependencies" list below any poetry
|
||||
# dependencies or their stub packages that provide type hints.
|
||||
additional_dependencies:
|
||||
- boto3-stubs==1.26.71
|
||||
- types-redis==4.5.1
|
||||
- types-requests==2.28.11.12
|
||||
- types-bleach==6.0.0.0
|
||||
- types-python-dateutil==2.8.19.7
|
||||
- types-simplejson==3.18.0.0
|
||||
- boto3-stubs==1.34.17
|
||||
- types-redis==4.6.0.20240106
|
||||
- types-requests==2.31.0.20240106
|
||||
- types-bleach==6.1.0.1
|
||||
- types-python-dateutil==2.8.19.20240106
|
||||
- types-simplejson==3.19.0.2
|
||||
files: "^kitsune/"
|
||||
exclude: "/migrations/"
|
||||
|
||||
|
|
|
@ -522,11 +522,11 @@ class RevisionTests(TestCase):
|
|||
self.assertEqual(d.title, doc("h1.sumo-page-heading").text())
|
||||
self.assertEqual(pq(r.content_parsed)("div").text(), doc("#doc-content div").text())
|
||||
self.assertEqual(
|
||||
"Created:\n Jan 1, 2011, 12:00:00 AM",
|
||||
"Created:\n Jan 1, 2011, 12:00:00\u202fAM",
|
||||
doc(".revision-info li")[1].text_content().strip(),
|
||||
)
|
||||
self.assertEqual(
|
||||
"Reviewed:\n Jan 2, 2011, 12:00:00 AM",
|
||||
"Reviewed:\n Jan 2, 2011, 12:00:00\u202fAM",
|
||||
doc(".revision-info li")[5].text_content().strip(),
|
||||
)
|
||||
# is reviewed?
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
104
pyproject.toml
104
pyproject.toml
|
@ -15,50 +15,50 @@ license = "BSD 3-Clause"
|
|||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
APScheduler = "^3.10.0"
|
||||
Django = "^4.2.7"
|
||||
APScheduler = "^3.10.4"
|
||||
Django = "^4.2.9"
|
||||
babis = "^0.2.4"
|
||||
Pillow = "^9.4.0"
|
||||
bleach = {version = "^6.0.0", extras = ["css"]}
|
||||
boto3 = "^1.26.63"
|
||||
Pillow = "^9.5.0"
|
||||
bleach = {version = "^6.1.0", extras = ["css"]}
|
||||
boto3 = "^1.34.17"
|
||||
celery = "5.2.7"
|
||||
dennis = "^1.1.0"
|
||||
mozilla-django-oidc = "4.0.0"
|
||||
dj-database-url = "^1.2.0"
|
||||
django-jinja = "^2.10.2"
|
||||
lxml = "^4.9.2"
|
||||
dj-database-url = "^1.3.0"
|
||||
django-jinja = "^2.11.0"
|
||||
lxml = "^4.9.4"
|
||||
elasticsearch = "^7.17.9"
|
||||
elasticsearch-dsl = "^7.4.0"
|
||||
elasticsearch-dsl = "^7.4.1"
|
||||
gunicorn = "^20.1.0"
|
||||
gevent = "^23.9.1"
|
||||
newrelic = "^9.4.0"
|
||||
newrelic = "^9.5.0"
|
||||
django-waffle = "^3.0.0"
|
||||
python-decouple = "^3.7"
|
||||
sentry-sdk = "^1.32.0"
|
||||
whitenoise = "^6.3.0"
|
||||
zenpy = "^2.0.25"
|
||||
idna = "^3.4"
|
||||
python-decouple = "^3.8"
|
||||
sentry-sdk = "^1.39.2"
|
||||
whitenoise = "^6.6.0"
|
||||
zenpy = "^2.0.45"
|
||||
idna = "^3.6"
|
||||
django-allow-cidr = "^0.6.0"
|
||||
html5lib = "^1.1"
|
||||
py-wikimarkup = "^2.3.0"
|
||||
python-dateutil = "^2.8.2"
|
||||
python-memcached = "^1.59"
|
||||
redis = "^4.5.4"
|
||||
django-cors-headers = "^3.13.0"
|
||||
python-memcached = "^1.61"
|
||||
redis = "^4.6.0"
|
||||
django-cors-headers = "^3.14.0"
|
||||
django-enforce-host = "^1.1.0"
|
||||
django-cache-url = "^3.4.4"
|
||||
django-extensions = "^3.2.1"
|
||||
django-cache-url = "^3.4.5"
|
||||
django-extensions = "^3.2.3"
|
||||
django-filter = "^22.1"
|
||||
django-redis = "^5.2.0"
|
||||
factory-boy = "^3.2.1"
|
||||
Faker = "^16.6.1"
|
||||
google-api-python-client = "^2.76.0"
|
||||
django-redis = "^5.4.0"
|
||||
factory-boy = "^3.3.0"
|
||||
Faker = "^16.9.0"
|
||||
google-api-python-client = "^2.113.0"
|
||||
timeout-decorator = "^0.5.0"
|
||||
simplejson = "^3.18.1"
|
||||
simplejson = "^3.19.2"
|
||||
twython = "^3.9.1"
|
||||
translate-toolkit = "^3.8.3"
|
||||
django-ratelimit = "^4.0.0"
|
||||
django-storages = {version = "^1.13.2", extras = ["google"]}
|
||||
translate-toolkit = "^3.12.1"
|
||||
django-ratelimit = "^4.1.0"
|
||||
django-storages = {version = "^1.14.2", extras = ["google"]}
|
||||
django-taggit = "^3.1.0"
|
||||
django-user-agents = "^0.4.0"
|
||||
django-watchman = "1.3.0"
|
||||
|
@ -67,59 +67,59 @@ pyquery = "^2.0.0"
|
|||
parameterized = "^0.8.1"
|
||||
Werkzeug = "3.0.1"
|
||||
commonware = "^0.6.0"
|
||||
django-statici18n = "^2.3.1"
|
||||
django-timezone-field = "^5.0"
|
||||
django-statici18n = "^2.4.0"
|
||||
django-timezone-field = "^5.1"
|
||||
djangorestframework = "^3.14.0"
|
||||
django-activity-stream = "^1.4.2"
|
||||
django-jsonfield-compat = "^0.4.4"
|
||||
django-jsonfield-backport = "^1.0.5"
|
||||
cffi = "^1.15.1"
|
||||
cffi = "^1.16.0"
|
||||
django-mozilla-product-details = "^1.0.3"
|
||||
django-csp = "^3.7"
|
||||
oauthlib = "^3.2.2"
|
||||
protobuf = "^4.21.12"
|
||||
Babel = "^2.11.0"
|
||||
Jinja2 = "^3.1.2"
|
||||
google-auth = "^2.16.0"
|
||||
graphene-django = "~3.0.0"
|
||||
protobuf = "^4.25.2"
|
||||
Babel = "^2.14.0"
|
||||
Jinja2 = "^3.1.3"
|
||||
google-auth = "^2.26.2"
|
||||
graphene-django = "^3.2.0"
|
||||
django-guardian = "^2.4.0"
|
||||
django-email-bandit = "^2.0"
|
||||
psycopg2 = "^2.9.9"
|
||||
mkdocs = "^1.5.3"
|
||||
mkdocs-material = "^9.4.10"
|
||||
mkdocs-material = "^9.5.3"
|
||||
dockerflow = "^2022.8.0"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
ipdb = "^0.13.11"
|
||||
isort = "^5.12.0"
|
||||
isort = "^5.13.2"
|
||||
pep8 = "^1.7.1"
|
||||
appnope = "^0.1.3"
|
||||
argparse = "^1.4.0"
|
||||
django-debug-toolbar = "^3.8.1"
|
||||
django-cache-panel = "^0.1"
|
||||
jsonschema = "^4.17.3"
|
||||
pre-commit = "^3.0.3"
|
||||
jsonschema = "^4.20.0"
|
||||
pre-commit = "^3.6.0"
|
||||
q = "^2.7"
|
||||
pylint = "^2.16.1"
|
||||
debugpy = "^1.6.6"
|
||||
flake8 = "^6.0.0"
|
||||
pylint = "^2.17.7"
|
||||
debugpy = "^1.8.0"
|
||||
urlwait = "^1.0"
|
||||
testfixtures = "^7.0.4"
|
||||
sphinx-rtd-theme = "^1.1.1"
|
||||
testfixtures = "^7.2.2"
|
||||
sphinx-rtd-theme = "^1.3.0"
|
||||
sphinx = "^5.3.0"
|
||||
recommonmark = "^0.7.1"
|
||||
sphinxcontrib-httpdomain = "^1.8.1"
|
||||
tabulate = "^0.9.0"
|
||||
pylint-django = "^2.5.3"
|
||||
rope = "^1.7.0"
|
||||
black = "^23.1.0"
|
||||
pytest = "^7.3.1"
|
||||
pylint-django = "^2.5.5"
|
||||
rope = "^1.11.0"
|
||||
black = "^23.12.1"
|
||||
pytest = "^7.4.4"
|
||||
pytest-html = "^3.2.0"
|
||||
pytest-xdist = "^3.2.1"
|
||||
docker = "^6.0.1"
|
||||
pytest-xdist = "^3.5.0"
|
||||
docker = "^6.1.3"
|
||||
pytest-rerunfailures = "^12.0"
|
||||
pytest-check = "^2.2.1"
|
||||
pytest-check = "^2.2.4"
|
||||
playwright = "^1.40.0"
|
||||
flake8 = "^7.0.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
|
|
@ -5,7 +5,7 @@ export function srcset(...sources) {
|
|||
.map(
|
||||
(source, index) =>
|
||||
encodeURI(source).replace(encodeURI(staticJinjaTag), staticJinjaTag) +
|
||||
` ${index + 1}x`
|
||||
` ${index + 1}x`,
|
||||
)
|
||||
.join(", ");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче