Skip to content

Commit 45e04c1

Browse files
committed
Add license info to the docs.
1 parent fd797ff commit 45e04c1

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

doc-source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ Contents
201201

202202
contributing
203203
Source
204+
license
204205

205206
.. sidebar-links::
206207
:caption: Links

doc-source/license.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=========
2+
License
3+
=========
4+
5+
``consolekit`` is licensed under the :choosealicense:`MIT`
6+
7+
.. license-info:: MIT
8+
9+
.. license::
10+
:py: consolekit

doc-source/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sphinx-autofixture>=0.2.1
1010
sphinx-copybutton>=0.2.12
1111
sphinx-debuginfo>=0.1.0
1212
sphinx-highlights>=0.4.0
13+
sphinx-licenseinfo>=0.1.1
1314
sphinx-notfound-page>=0.5
1415
sphinx-prompt>=1.1.0
1516
sphinx-pyproject>=0.1.0

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extensions = [
6060
"sphinxcontrib.default_values",
6161
"sphinxcontrib.toctree_plus",
6262
"sphinx_debuginfo",
63+
"sphinx_licenseinfo",
6364
"seed_intersphinx_mapping",
6465
"sphinx_autofixture",
6566
"sphinx_highlights",
@@ -129,3 +130,10 @@ python-versions = [ "3.6", "3.7", "3.8", "3.9",]
129130
python-implementations = [ "CPython", "PyPy",]
130131
platforms = [ "Windows", "macOS", "Linux",]
131132
license-key = "MIT"
133+
134+
[tool.mypy]
135+
python_version = "3.6"
136+
namespace_packages = true
137+
check_untyped_defs = true
138+
warn_unused_ignores = true
139+
no_implicit_optional = true

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ rst-directives =
150150
autosummary-widths
151151
envvar
152152
extras-require
153+
license
154+
license-info
155+
rst-roles =
156+
choosealicense
157+
inline-code
153158
per-file-ignores =
154159
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
155160
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
@@ -159,7 +164,6 @@ multiline-quotes = """
159164
docstring-quotes = """
160165
count = True
161166
min_python_version = 3.6.1
162-
rst-roles = inline-code
163167
164168
[coverage:run]
165169
plugins = coverage_pyver_pragma

0 commit comments

Comments
 (0)