Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21e28a2

Browse filesBrowse files
committed
feat: added docfx build in nox file
1 parent b60b5cf commit 21e28a2
Copy full SHA for 21e28a2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-40
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-40
lines changed

‎noxfile.py

Copy file name to clipboardExpand all lines: noxfile.py
+1-40Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def default(session):
7979
"--cov-append",
8080
"--cov-config=.coveragerc",
8181
"--cov-report=",
82-
"--cov-fail-under=25",
82+
"--cov-fail-under=20",
8383
os.path.join("tests", "unit"),
8484
*session.posargs
8585
)
@@ -127,45 +127,6 @@ def docs(session):
127127
)
128128

129129

130-
@nox.session(python=DEFAULT_PYTHON_VERSION)
131-
def docfx(session):
132-
"""Build the docfx yaml files for this library."""
133-
134-
session.install("-e", ".")
135-
session.install(
136-
"sphinx",
137-
"alabaster",
138-
"recommonmark",
139-
"sphinx-docfx-yaml",
140-
"django==2.2",
141-
)
142-
143-
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
144-
session.run(
145-
"sphinx-build",
146-
"-T", # show full traceback on exception
147-
"-N", # no colors
148-
"-D",
149-
(
150-
"extensions=sphinx.ext.autodoc,"
151-
"sphinx.ext.autosummary,"
152-
"docfx_yaml.extension,"
153-
"sphinx.ext.intersphinx,"
154-
"sphinx.ext.coverage,"
155-
"sphinx.ext.napoleon,"
156-
"sphinx.ext.todo,"
157-
"sphinx.ext.viewcode,"
158-
"recommonmark"
159-
),
160-
"-b",
161-
"html",
162-
"-d",
163-
os.path.join("docs", "_build", "doctrees", ""),
164-
os.path.join("docs", ""),
165-
os.path.join("docs", "_build", "html", ""),
166-
)
167-
168-
169130
@nox.session(python=DEFAULT_PYTHON_VERSION)
170131
def docfx(session):
171132
"""Build the docfx yaml files for this library."""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.