Skip to content

Commit

Permalink
apio build refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 17, 2024
1 parent 354b8aa commit bf609ca
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions apio/commands/build.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""Main implementation of APIO BUILD command"""

# -*- coding: utf-8 -*-
# -- This file is part of the Apio project
# -- (C) 2016-2019 FPGAwars
# -- Author Jesús Arroyo
# -- (C) 2016-2024 FPGAwars
# -- Authors
# -- * Jesús Arroyo (2016-2019)
# -- * Juan Gonzalez (obijuan) (2019-2024)
# -- Licence GPLv2
"""Main implementation of APIO BUILD command"""

from pathlib import Path

from pathlib import Path
import click

from apio.managers.scons import SCons
from apio import util

Expand All @@ -29,23 +29,23 @@
TOP_MODULE = "top_module" # -- Option


# R0913: Too many arguments (6/5)
# pylint: disable=R0913
# pylint: disable=W0622
# pylint: disable=R0801
# R0801: Similar lines in 2 files
@click.command(CMD, context_settings=util.context_settings())
@click.pass_context
@click.option(
"-b", f"--{BOARD}", type=str, metavar="str", help="Set the board."
)
@click.option(f"--{FPGA}", type=str, metavar="str", help="Set the FPGA.")
@click.option(
"--size", type=str, metavar="str", help="Set the FPGA type (1k/8k)."
f"--{SIZE}", type=str, metavar="str", help="Set the FPGA type (1k/8k)."
)
@click.option(
f"--{TYPE}", type=str, metavar="str", help="Set the FPGA type (hx/lp)."
)
@click.option(
"--type", type=str, metavar="str", help="Set the FPGA type (hx/lp)."
f"--{PACK}", type=str, metavar="str", help="Set the FPGA package."
)
@click.option("--pack", type=str, metavar="str", help="Set the FPGA package.")
@click.option(
"-p",
"--project-dir",
Expand All @@ -55,7 +55,7 @@
)
@click.option(
"-v",
"--verbose",
f"--{VERBOSE}",
is_flag=True,
help="Show the entire output of the command.",
)
Expand Down

0 comments on commit bf609ca

Please sign in to comment.