Skip to content

Commit 5e9fa30

Browse files
authored
feat: add pylint for docs (#202)
* add pylint for docs * linting * docstring to comment * remove repated comment
1 parent e51cf33 commit 5e9fa30

File tree

9 files changed

+38
-31
lines changed

9 files changed

+38
-31
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3-
# skip all the files in docs/
4-
exclude: 'docs/'
53
repos:
64
- repo: https://github.com/pre-commit/pre-commit-hooks
75
rev: v3.4.0

docs/_static/logo.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
.. _{{fullname}}:
2-
3-
{{ name }}
4-
{{ underline }}
5-
6-
.. currentmodule:: {{ module }}
7-
8-
.. autoattribute:: {{ module}}.{{ objname }}
1+
.. _{{fullname}}:
92

3+
{{ name }}
4+
{{ underline }}
5+
6+
.. currentmodule:: {{ module }}
7+
8+
.. autoattribute:: {{ module}}.{{ objname }}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
.. _{{fullname}}:
2-
3-
{{ name }}
4-
{{ underline }}
5-
6-
.. currentmodule:: {{ module }}
7-
8-
.. automethod:: {{ module}}.{{ objname }}
1+
.. _{{fullname}}:
92

3+
{{ name }}
4+
{{ underline }}
5+
6+
.. currentmodule:: {{ module }}
7+
8+
.. automethod:: {{ module}}.{{ objname }}

docs/_templates/breadcrumbs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}
22

33
{% block breadcrumbs_aside %}
4-
{% endblock %}
4+
{% endblock %}

docs/autosummary.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
:recursive:
77

88
qctrlopencontrols
9-

docs/conf.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
# pylint: disable=invalid-name
1+
# Copyright 2021 Q-CTRL. All rights reserved.
2+
#
3+
# Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4+
# copying or use of this file, via any medium, is strictly prohibited.
5+
# Proprietary and confidential. You may not use this file except in compliance
6+
# with the License. You may obtain a copy of the License at
7+
#
8+
# https://q-ctrl.com/terms
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS. See the
12+
# License for the specific language.
13+
# pylint:disable=invalid-name
14+
215
"""
316
Configuration file for the Sphinx documentation builder.
4-
""" # This file only contains a selection of the most common options. For a full
5-
# list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
17+
"""
18+
19+
# This file only contains a selection of the most common options. For a full
20+
# list see the documentation:
21+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
622

723
# -- Path setup --------------------------------------------------------------
824

925
# If extensions (or modules to document with autodoc) are in another directory,
1026
# add these directories to sys.path here. If the directory is relative to the
1127
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
28+
1329
import datetime
1430
import inspect
1531
import os

docs/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ The Q-CTRL Open Controls Python package provides a comprehensive library of publ
1515
:maxdepth: 1
1616

1717
API Reference <qctrlopencontrols.rst>
18-
19-
20-
21-

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cloned using
4343
Once the clone is complete, you have two options:
4444

4545

46-
#.
46+
#.
4747
Using setup.py
4848

4949
.. code-block:: shell
@@ -54,7 +54,7 @@ Once the clone is complete, you have two options:
5454
**Note:** We recommend installing using ``develop`` to point your installation
5555
at the source code in the directory where you cloned the repository.
5656

57-
#.
57+
#.
5858
Using Poetry
5959

6060
Follow the instructions from the

0 commit comments

Comments
 (0)