Skip to content

Commit 2404f04

Browse files
lint /doc (#1345)
Co-authored-by: jan iversen <[email protected]>
1 parent 1044f75 commit 2404f04

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Document configuration."""
2-
# -*- coding: utf-8 -*-
32
#
43
# PyModbus documentation build configuration file,
54
#
@@ -11,10 +10,10 @@
1110
import sys
1211

1312
from recommonmark.transform import AutoStructify
14-
from recommonmark.parser import CommonMarkParser
1513

1614
from pymodbus import __version__
1715

16+
1817
parent_dir = os.path.abspath(os.pardir)
1918
sys.path.insert(0, parent_dir)
2019
sys.path.append(os.path.join(parent_dir, "examples"))

doc/source/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The examples can be downloaded from https://github.com/pymodbus-dev/pymodbus/tre
66
Examples version 3.x
77
--------------------
88

9-
These examples are considered essential usage examples, and are guarenteed to work,
9+
These examples are considered essential usage examples, and are guaranteed to work,
1010
because they are tested automatilly with each dev branch commit using CI.
1111

1212

doc/source/library/client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ and a asynchronous example::
4848
Large parts of the implementation are shared between the different classes,
4949
to ensure high stability and efficient maintenance.
5050

51-
Tranport classes
52-
----------------
51+
Transport classes
52+
-----------------
5353

5454
.. autoclass:: pymodbus.client.ModbusBaseClient
5555
:members:

doc/source/library/simulator/datastore.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Simulator datastore
22
===================
33

44
The simulator datastore is an advanced datastore.
5-
The simulator allows to simulate the registers of a real life modbus device by adding a simple dict (defintion see :ref:`Device entries`).
5+
The simulator allows to simulate the registers of a real life modbus device by adding a simple dict (definition see :ref:`Device entries`).
66

77
The simulator datastore allows to add actions (functions) to a register, and thus allows a low level automation.
88

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ check-str-concat-over-line-jumps=no
478478
#max-line-length-suggestions=
479479

480480
[flake8]
481-
exclude = pymodbus/client/serial_asyncio, venv,.venv,.git,doc,build,examples/v2.5.3
481+
exclude = pymodbus/client/serial_asyncio, venv,.venv,.git,build,examples/v2.5.3
482482
doctests = True
483483
max-line-length = 120
484484
# To work with Black
@@ -542,11 +542,11 @@ omit =
542542
examples/contrib/tornado_twister
543543

544544
[codespell]
545-
skip=doc,venv,.venv,.git,htmlcov,CHANGELOG.rst
545+
skip=./doc/source/_static,venv,.venv,.git,htmlcov,CHANGELOG.rst
546546
ignore-words-list = asend
547547

548548
[isort]
549-
skip=doc,venv,.venv,.git,pymodbus/client/serial_asyncio
549+
skip=venv,.venv,.git,pymodbus/client/serial_asyncio
550550
py_version=38
551551
profile=black
552552
line_length = 79

0 commit comments

Comments
 (0)