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 argparse | |
import logging | |
import os | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
def _get_repo(): |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "https://github.com/iterative/dvc/blob/master/dvc-yaml.schema.json", | |
"$comment": "v0.1.0", | |
"title": "Pipeline Schema", | |
"description": "A dvc.yaml pipeline definition", | |
"type": "object", | |
"definitions": { | |
"OutputFlags": { | |
"type": "object", |
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 pytest | |
from funcy import wrap_with | |
import threading | |
class TdqmCapture: | |
def __init__(self): | |
self._instances = [] | |
@property |
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
""" | |
Setup: | |
1. pip install pytest-playwright | |
2. playwright install | |
3. `pytest test_plots_html_e2e.py` to run in headless mode. Add `--headed` for non-headless mode. | |
""" | |
import dataclasses | |
import os | |
from typing import List |
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 os | |
from funcy import log_durations | |
from rich.console import Console | |
import dvc.api | |
from dvc._debug import profile | |
from dvc.external_repo import clean_repos | |
from dvc.fs.pool import close_pools |
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
from dvc.repo import locked | |
from dvc.repo.scm_context import scm_context | |
from dvc.repo.add import create_stages | |
@locked | |
@scm_context | |
def single_add(repo, target): | |
# does not support --recursive add | |
stage, = create_stages(repo, [target]) |
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 httpx | |
import pytest | |
from typing import NamedTuple, Dequeue | |
from unittest import mock | |
class Transaction(NamedTuple): | |
request: httpx.Request | |
response: httpx.Response |
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
# | |
#!optional | |
#!rest | |
#( | |
#\ | |
#\altmode | |
#\backnext | |
#\backspace | |
#\call | |
#\linefeed |
OlderNewer