This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alternatively don't use slog but something else. I just like that more. | |
[aliases] | |
slog = log --pretty=format:"%C(auto,yellow)%h%C(auto)%d\\ %C(auto,reset)%s\\ \\ [%C(auto,blue)%cn%C(auto,reset),\\ %C(auto,cyan)%ar%C(auto,reset)]" | |
addprx = "!f() { b=`git symbolic-ref -q --short HEAD` && \ | |
git fetch origin pull/$1/head:pr/$1 && \ | |
git fetch -f origin pull/$1/merge:PR_MERGE_HEAD && \ | |
git rebase --onto $b PR_MERGE_HEAD^ pr/$1 && \ | |
git branch -D PR_MERGE_HEAD && \ | |
git checkout $b && echo && \ | |
git diff --stat $b..pr/$1 && echo && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import ssl | |
import sys | |
import warnings | |
from requests.adapters import HTTPAdapter | |
from requests.packages import urllib3 | |
from requests.packages.urllib3.util import ssl_ | |
from requests.packages.urllib3.exceptions import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Небольшая шпаргалка по библиотечке respx. Все это есть в документации https://lundberg.github.io/respx/guide/, | |
но местами написано очень коротко и не очевидно. | |
Зависимости: python > 3.10, httpx, respx, pytest-asyncio | |
""" | |
from typing import Any | |
import httpx | |
import pytest |
OlderNewer