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

Commit ac84d10

Browse files
committed
minor updates
1 parent 4d189a2 commit ac84d10

File tree

10 files changed

+27
-118
lines changed

10 files changed

+27
-118
lines changed

.gitignore

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,15 @@
1-
# SPDX-FileCopyrightText: 2022 Kattni Rembor, written for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2023 Jose D. Montoya
22
#
33
# SPDX-License-Identifier: MIT
44

5-
# Do not include files and directories created by your personal work environment, such as the IDE
6-
# you use, except for those already listed here. Pull requests including changes to this file will
7-
# not be accepted.
8-
9-
# This .gitignore file contains rules for files generated by working with MicroPython libraries,
10-
# including building Sphinx, testing with pip, and creating a virual environment, as well as the
11-
# MacOS and IDE-specific files generated by using MacOS in general, or the PyCharm or VSCode IDEs.
12-
13-
# If you find that there are files being generated on your machine that should not be included in
14-
# your git commit, you should create a .gitignore_global file on your computer to include the
15-
# files created by your personal setup. To do so, follow the two steps below.
16-
17-
# First, create a file called .gitignore_global somewhere convenient for you, and add rules for
18-
# the files you want to exclude from git commits.
19-
20-
# Second, configure Git to use the exclude file for all Git repositories by running the
21-
# following via commandline, replacing "path/to/your/" with the actual path to your newly created
22-
# .gitignore_global file:
23-
# git config --global core.excludesfile path/to/your/.gitignore_global
24-
25-
# MicroPython-specific files
265
*.mpy
27-
28-
# Python-specific files
296
__pycache__
307
*.pyc
31-
32-
# Sphinx build-specific files
338
_build
34-
35-
# This file results from running `pip -e install .` in a local repository
369
*.egg-info
37-
38-
# Virtual environment-specific files
3910
.env
4011
.venv
41-
42-
# MacOS-specific files
4312
*.DS_Store
44-
45-
# IDE-specific files
4613
.idea
4714
.vscode
4815
*~

.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

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
version: 2
66

77
build:
8-
os: ubuntu-20.04
8+
os: ubuntu-22.04
99
tools:
1010
python: "3"
1111

docs/conf.py

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2023 Jose D. Montoya
42
#
53
# SPDX-License-Identifier: MIT
@@ -32,7 +30,6 @@
3230
extensions = [
3331
"sphinx.ext.autodoc",
3432
"sphinx.ext.intersphinx",
35-
"sphinx.ext.napoleon",
3633
"sphinx.ext.viewcode",
3734
"sphinx_immaterial",
3835
]
@@ -203,61 +200,3 @@
203200
# These paths are either relative to html_static_path
204201
# or fully qualified paths (eg. https://...)
205202
html_css_files = ["extra_css.css"]
206-
207-
208-
# -- Options for LaTeX output ---------------------------------------------
209-
210-
latex_elements = {
211-
# The paper size ('letterpaper' or 'a4paper').
212-
# 'papersize': 'letterpaper',
213-
# The font size ('10pt', '11pt' or '12pt').
214-
# 'pointsize': '10pt',
215-
# Additional stuff for the LaTeX preamble.
216-
# 'preamble': '',
217-
# Latex figure (float) alignment
218-
# 'figure_align': 'htbp',
219-
}
220-
221-
# Grouping the document tree into LaTeX files. List of tuples
222-
# (source start file, target name, title,
223-
# author, documentclass [howto, manual, or own class]).
224-
latex_documents = [
225-
(
226-
master_doc,
227-
"MicroPython_shtc3_Library.tex",
228-
"MicroPython shtc3 Library Documentation",
229-
author,
230-
"manual",
231-
),
232-
]
233-
234-
# -- Options for manual page output ---------------------------------------
235-
236-
# One entry per manual page. List of tuples
237-
# (source start file, name, description, authors, manual section).
238-
man_pages = [
239-
(
240-
master_doc,
241-
"MicroPython_shtc3_Library",
242-
"MicroPython shtc3 Library Documentation",
243-
[author],
244-
1,
245-
),
246-
]
247-
248-
# -- Options for Texinfo output -------------------------------------------
249-
250-
# Grouping the document tree into Texinfo files. List of tuples
251-
# (source start file, target name, title, author,
252-
# dir menu entry, description, category)
253-
texinfo_documents = [
254-
(
255-
master_doc,
256-
"MicroPython_shtc3_Library",
257-
"MicroPython shtc3 Library Documentation",
258-
author,
259-
"MicroPython_shtc3_Library",
260-
"One line description of project.",
261-
"Miscellaneous",
262-
),
263-
]

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_SHTC3/releases/latest>
27+
Download from GitHub <https://github.com/jposada202020/MicroPython_SHTC3/releases/latest>

examples.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"urls": [
3-
["micropython_shtc3/examples/shtc3_power_mode.py", "github:jposada202020/MicroPython_SHTC3/examples/shtc3_power_mode.py"],
4-
["micropython_shtc3/examples/shtc3_simpletest.py", "github:jposada202020/MicroPython_SHTC3/examples/shtc3_simpletest.py"]
3+
[
4+
"micropython_shtc3/examples/shtc3_power_mode.py",
5+
"github:jposada202020/MicroPython_SHTC3/examples/shtc3_power_mode.py"
6+
],
7+
[
8+
"micropython_shtc3/examples/shtc3_simpletest.py",
9+
"github:jposada202020/MicroPython_SHTC3/examples/shtc3_simpletest.py"
10+
]
511
],
6-
"version": "0.1"
7-
}
12+
"version": "1"
13+
}

examples/shtc3_power_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
print("Current Operation mode setting: ", sht.power_mode)
2121
for _ in range(10):
2222
temp = sht.temperature
23-
print("Temperature: {:.2f}C".format(temp))
23+
print(f"Temperature: {temp:0.1f}°C")
2424
print()
2525
time.sleep(0.5)
2626
sht.power_mode = power_mode

examples/shtc3_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
while True:
1313
temperature, relative_humidity = sht.measurements
14-
print("Temperature: {:0.1f} C".format(temperature))
15-
print("Humidity: {:0.1f} %%".format(relative_humidity))
14+
print(f"Temperature: {temperature:0.1f}°C")
15+
print(f"Humidity: {relative_humidity:0.1f}%")
1616
print()
1717
time.sleep(0.5)

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"urls": [
3-
["micropython_shtc3/__init__.py", "github:jposada202020/MicroPython_SHTC3/micropython_shtc3/__init__.py"],
4-
["micropython_shtc3/shtc3.py", "github:jposada202020/MicroPython_SHTC3/micropython_shtc3/shtc3.py"]
3+
[
4+
"micropython_shtc3/__init__.py",
5+
"github:jposada202020/MicroPython_SHTC3/micropython_shtc3/__init__.py"
6+
],
7+
[
8+
"micropython_shtc3/shtc3.py",
9+
"github:jposada202020/MicroPython_SHTC3/micropython_shtc3/shtc3.py"
10+
]
511
],
6-
"version": "0.1"
7-
}
12+
"version": "1"
13+
}

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ urls = {Homepage = "https://github.com/jposada202020/MicroPython_SHTC3"}
2121
keywords = [
2222
"sensor",
2323
"micropython",
24-
"shtc3",
25-
"micropython",
2624
"driver",
2725
"sensor",
2826
"shtc3",

0 commit comments

Comments
 (0)