Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 8a237be

Browse files
committed
minor updates
1 parent 27aa830 commit 8a237be

File tree

6 files changed

+9
-62
lines changed

6 files changed

+9
-62
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@ repos:
2121
types: [python]
2222
args:
2323
- --disable=consider-using-f-string
24-
exclude: "^(docs/|examples/|tests/|setup.py$)"
24+
exclude: "^(docs/|examples/|tests/)"
2525
- id: pylint
2626
name: pylint (example code)
2727
description: Run pylint rules on "examples/*.py" files
2828
types: [python]
2929
files: "^examples/"
3030
args:
3131
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
32-
- id: pylint
33-
name: pylint (test code)
34-
description: Run pylint rules on "tests/*.py" files
35-
types: [python]
36-
files: "^tests/"
37-
args:
38-
- --disable=missing-docstring,consider-using-f-string,duplicate-code

docs/conf.py

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
extensions = [
3131
"sphinx.ext.autodoc",
3232
"sphinx.ext.intersphinx",
33-
"sphinx.ext.napoleon",
3433
"sphinx.ext.viewcode",
3534
"sphinx_immaterial",
3635
]
@@ -71,9 +70,6 @@
7170

7271
language = "en"
7372
autoclass_content = "both"
74-
# List of patterns, relative to source directory, that match files and
75-
# directories to ignore when looking for source files.
76-
# This patterns also effect to html_static_path and html_extra_path
7773
exclude_patterns = [
7874
"_build",
7975
"Thumbs.db",
@@ -203,32 +199,6 @@
203199
html_css_files = ["extra_css.css"]
204200

205201

206-
# -- Options for LaTeX output ---------------------------------------------
207-
208-
latex_elements = {
209-
# The paper size ('letterpaper' or 'a4paper').
210-
# 'papersize': 'letterpaper',
211-
# The font size ('10pt', '11pt' or '12pt').
212-
# 'pointsize': '10pt',
213-
# Additional stuff for the LaTeX preamble.
214-
# 'preamble': '',
215-
# Latex figure (float) alignment
216-
# 'figure_align': 'htbp',
217-
}
218-
219-
# Grouping the document tree into LaTeX files. List of tuples
220-
# (source start file, target name, title,
221-
# author, documentclass [howto, manual, or own class]).
222-
latex_documents = [
223-
(
224-
master_doc,
225-
"MicroPython_ds3502_Library.tex",
226-
"MicroPython ds3502 Library Documentation",
227-
author,
228-
"manual",
229-
),
230-
]
231-
232202
# -- Options for manual page output ---------------------------------------
233203

234204
# One entry per manual page. List of tuples
@@ -242,20 +212,3 @@
242212
1,
243213
),
244214
]
245-
246-
# -- Options for Texinfo output -------------------------------------------
247-
248-
# Grouping the document tree into Texinfo files. List of tuples
249-
# (source start file, target name, title, author,
250-
# dir menu entry, description, category)
251-
texinfo_documents = [
252-
(
253-
master_doc,
254-
"MicroPython_ds3502_Library",
255-
"MicroPython ds3502 Library Documentation",
256-
author,
257-
"MicroPython_ds3502_Library",
258-
"One line description of project.",
259-
"Miscellaneous",
260-
),
261-
]

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Table of Contents
2424
.. toctree::
2525
:caption: Other Links
2626

27-
Download from GitHub <https://github.com/jposada202020/MciroPython_DS3502/releases/latest>
27+
Download from GitHub <https://github.com/jposada202020/MicroPython_DS3502/releases/latest>

examples.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"urls": [
3-
["micropython_ds3502/examples/ds3502_simpletest.py", "github:jposada202020/MicroPython_DS3502/examples/ds3502_simpletest.py"]
3+
[
4+
"micropython_ds3502/examples/ds3502_simpletest.py",
5+
"github:jposada202020/MicroPython_DS3502/examples/ds3502_simpletest.py"
6+
]
47
],
5-
"version": "0.1"
8+
"version": "1"
69
}

examples/ds3502_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
voltage *= 3.3
2121
voltage /= 65535
2222
print(f"Wiper voltage {voltage:.2f}V")
23-
print("")
23+
print()
2424
sleep(1.0)
2525

2626
ds3502.wiper = 0
@@ -29,7 +29,7 @@
2929
voltage *= 3.3
3030
voltage /= 65535
3131
print(f"Wiper voltage {voltage:.2f}V")
32-
print("")
32+
print()
3333
sleep(1.0)
3434

3535
ds3502.wiper = 63

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ authors = [
2020
urls = {Homepage = "https://github.com/jposada202020/MicroPython_DS3502"}
2121
keywords = [
2222
"sensor",
23-
"micropython",
2423
"ds3502",
2524
"potentiometer",
2625
"resistance",
2726
"variable",
2827
"driver",
2928
"micropython",
3029
"maxim",
31-
"ds3502",
3230
]
3331
license = {text = "MIT"}
3432
classifiers = [

0 commit comments

Comments
 (0)