Skip to content

Ensure correct directory for make.py #1719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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