Merge pull request #937 from pimutils/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Hugo Osvaldo Barrera 2021-09-13 21:42:01 +02:00 committed by GitHub
commit b3c9df1b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 11 deletions

View file

@ -29,11 +29,6 @@ tasks:
export PATH=$PATH:~/.local/bin/
make -e ci-test
make -e ci-test-storage
- style: |
cd vdirsyncer
# Non-system python is used for packages:
export PATH=$PATH:~/.local/bin/
make -e style
- check-secrets: |
# Stop here if this is a PR. PRs can't run with the below secrets.
[ -f ~/fastmail-secrets ] || complete-build

View file

@ -23,7 +23,7 @@ repos:
- id: isort
name: isort (python)
- repo: https://github.com/asottile/pyupgrade
rev: v2.25.0
rev: v2.26.0
hooks:
- id: pyupgrade
args: [--py37-plus]

View file

@ -1,5 +1,4 @@
import logging
import sys
import aiohttp
import click_log
@ -103,10 +102,7 @@ def test_open_graphical_browser(monkeypatch):
# Just assert that this internal attribute still exists and behaves the way
# expected
if sys.version_info < (3, 7):
iter(webbrowser._tryorder)
else:
assert webbrowser._tryorder is None
assert webbrowser._tryorder is None
monkeypatch.setattr("webbrowser._tryorder", [])