lint
This commit is contained in:
parent
148f757d5d
commit
4d8c1d7aab
3 changed files with 2 additions and 16 deletions
|
@ -1,17 +1,11 @@
|
|||
"""Debian operating system."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from . import OS
|
||||
|
||||
|
||||
class Debian(OS):
|
||||
"""Debian operating system."""
|
||||
|
||||
def __init__(self, path: Path) -> None:
|
||||
"""Initialize."""
|
||||
super().__init__(path)
|
||||
|
||||
def get_name(self) -> str:
|
||||
"""Return name."""
|
||||
return "Debian"
|
||||
|
|
|
@ -7,10 +7,6 @@ from rwx.ps import Command
|
|||
class APT(PM):
|
||||
"""Advanced Package Tool."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Initialize."""
|
||||
super().__init__()
|
||||
|
||||
def get_install_command(self) -> Command:
|
||||
"""Return install command."""
|
||||
return Command()
|
||||
|
|
|
@ -14,10 +14,6 @@ from rwx.prj import Project
|
|||
class SphinxProject(Project):
|
||||
"""Child class for a project based on Sphinx."""
|
||||
|
||||
def __init__(self, file_path: str) -> None:
|
||||
"""Call the parent constructor."""
|
||||
super().__init__(file_path)
|
||||
|
||||
def build(self) -> None:
|
||||
"""Build the project."""
|
||||
output_root: Path = self.root / "out"
|
||||
|
@ -31,9 +27,9 @@ class SphinxProject(Project):
|
|||
"-D",
|
||||
f"project={self.name}",
|
||||
"-D",
|
||||
"master_doc={}".format("index"),
|
||||
"master_doc=index",
|
||||
"-D",
|
||||
"html_theme={}".format("sphinx_rtd_theme"),
|
||||
"html_theme=sphinx_rtd_theme",
|
||||
"-c",
|
||||
str(self.root),
|
||||
# "-C",
|
||||
|
|
Loading…
Reference in a new issue