/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/cli/python/conftest.py
32 строки
769 B
Dimitri Papadopoulos Orfanos
Upgrade Ruff to 0.13.2 (#1890)
28 сен 2025, 21:20
Не верифицирован
28 сен 2025, 21:20
aff6f39
Код
Авторство
О чём код?
import secrets import pytest from hatch.utils.shells import detect_shell @pytest.fixture(autouse=True) def default_shells(platform): return [] if platform.windows else [detect_shell(platform)[0]] @pytest.fixture(autouse=True) def isolated_python_directory(config_file): config_file.model.dirs.python = "isolated" config_file.save() @pytest.fixture(autouse=True) def path_append(mocker): return mocker.patch("userpath.append") @pytest.fixture(autouse=True) def disable_path_detectors(mocker): mocker.patch("userpath.in_current_path", return_value=False) mocker.patch("userpath.in_new_path", return_value=False) @pytest.fixture def dist_name(compatible_python_distributions): return secrets.choice(compatible_python_distributions)