Skip to content

Commit

Permalink
chore: Reformat files with black
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetteadhikari committed Aug 23, 2024
1 parent 84b2b77 commit a4e89f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 3 additions & 1 deletion conda_smithy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def default_feedstock_config_path(feedstock_directory: str) -> str:


def generate_feedstock_content(
target_directory: str, source_recipe_dir: str, conda_build_tool: Optional[str] = None
target_directory: str,
source_recipe_dir: str,
conda_build_tool: Optional[str] = None,
):
target_directory = os.path.abspath(target_directory)
recipe_dir = "recipe"
Expand Down
5 changes: 2 additions & 3 deletions conda_smithy/feedstock_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
from io import TextIOWrapper
from typing import Iterator, Optional, Any, Union

def get_repo(
path: str, search_parent_directories: bool = True
):

def get_repo(path: str, search_parent_directories: bool = True):
repo = None
try:
import git
Expand Down
5 changes: 4 additions & 1 deletion conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,10 @@ def _format_validation_msg(error: jsonschema.ValidationError):


def main(
recipe_dir: str, conda_forge: bool = False, return_hints: bool = False, feedstock_dir=None
recipe_dir: str,
conda_forge: bool = False,
return_hints: bool = False,
feedstock_dir=None,
) -> Union[
Tuple[List[str], List[str]],
Tuple[List[str], List[Any]],
Expand Down
10 changes: 7 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def config_yaml(testing_workdir: str, recipe_dirname: str, request) -> str:


@pytest.fixture(scope="function")
def noarch_recipe(config_yaml: ConfigYAML, recipe_dirname: str) -> RecipeConfigPair:
def noarch_recipe(
config_yaml: ConfigYAML, recipe_dirname: str
) -> RecipeConfigPair:
# get the used params passed for config_yaml fixture
with open(
os.path.join(
Expand Down Expand Up @@ -369,7 +371,7 @@ def recipe_migration_cfep9(config_yaml: ConfigYAML):
@pytest.fixture(scope="function")
def recipe_migration_cfep9_downgrade(
config_yaml: ConfigYAML, recipe_migration_cfep9: RecipeConfigPair
)-> RecipeConfigPair:
) -> RecipeConfigPair:
# write a downgrade migrator that lives next to the current migrator.
# Only this, more recent migrator should apply.
os.makedirs(
Expand Down Expand Up @@ -406,7 +408,9 @@ def recipe_migration_cfep9_downgrade(


@pytest.fixture(scope="function")
def recipe_migration_win_compiled(config_yaml: ConfigYAML, py_recipe: RecipeConfigPair) -> RecipeConfigPair:
def recipe_migration_win_compiled(
config_yaml: ConfigYAML, py_recipe: RecipeConfigPair
) -> RecipeConfigPair:
os.makedirs(
os.path.join(config_yaml.workdir, ".ci_support", "migrations"),
exist_ok=True,
Expand Down

0 comments on commit a4e89f7

Please sign in to comment.