Skip to content

Commit

Permalink
Ensure correct directory for make.py (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleptomania committed Apr 24, 2023
1 parent 428ad41 commit 26d05eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
SPHINXAUTOBUILD = "sphinx-autobuild"
PAPER_SIZE = None
DOCDIR = "doc"
BUILDDIR = DOCDIR + "/build"
BUILDDIR = "build"


# Linting
Expand All @@ -41,6 +41,7 @@
# This allows for internationalization / localization of doc.
I18NSPHINXOPTS = [*PAPER_SIZE_OPTS[PAPER_SIZE], *SPHINXOPTS, '.']

os.chdir(Path(DOCDIR))

# User-friendly check for dependencies and binaries
binaries = ['sphinx-build', 'sphinx-autobuild']
Expand Down Expand Up @@ -347,6 +348,7 @@ def pseudoxml():

@app.command()
def lint():
os.chdir("../")
run([RUFF, *RUFFOPTS])
print("Ruff Finished.")
run([MYPY, *MYPYOPTS])
Expand All @@ -356,23 +358,27 @@ def lint():

@app.command()
def ruff():
os.chdir("../")
run([RUFF, *RUFFOPTS])
print("Ruff Finished.")


@app.command()
def mypy():
os.chdir("../")
run([MYPY, *MYPYOPTS])
print("MyPy Finished.")


@app.command()
def test_full():
os.chdir("../")
run([PYTEST, TESTDIR])


@app.command()
def test():
os.chdir("../")
run([PYTEST, UNITTESTS])


Expand Down

0 comments on commit 26d05eb

Please sign in to comment.