Skip to content

Commit 21ef104

Browse files
committed
more precommit fixes
1 parent 618b5a7 commit 21ef104

9 files changed

+40
-6
lines changed

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
python:
25
version: 3
36
requirements_file: requirements.txt

adafruit_lps35hw.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2019 Bryan Siepert for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
14
# The MIT License (MIT)
25
#
36
# Copyright (c) 2019 Bryan Siepert for Adafruit Industries

docs/conf.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
4+
#
5+
# SPDX-License-Identifier: MIT
6+
37
import os
48
import sys
59

@@ -37,6 +41,9 @@
3741
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
3842
}
3943

44+
# Show the docstring from both the class and its __init__() method.
45+
autoclass_content = "both"
46+
4047
# Add any paths that contain templates here, relative to this directory.
4148
templates_path = ["_templates"]
4249

@@ -69,7 +76,13 @@
6976
# List of patterns, relative to source directory, that match files and
7077
# directories to ignore when looking for source files.
7178
# This patterns also effect to html_static_path and html_extra_path
72-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"]
79+
exclude_patterns = [
80+
"_build",
81+
"Thumbs.db",
82+
".DS_Store",
83+
".env",
84+
"CODE_OF_CONDUCT.md",
85+
]
7386

7487
# The reST default role (used for this markup: `text`) to use for all
7588
# documents.
@@ -128,16 +141,12 @@
128141

129142
latex_elements = {
130143
# The paper size ('letterpaper' or 'a4paper').
131-
#
132144
# 'papersize': 'letterpaper',
133145
# The font size ('10pt', '11pt' or '12pt').
134-
#
135146
# 'pointsize': '10pt',
136147
# Additional stuff for the LaTeX preamble.
137-
#
138148
# 'preamble': '',
139149
# Latex figure (float) alignment
140-
#
141150
# 'figure_align': 'htbp',
142151
}
143152

@@ -165,7 +174,7 @@
165174
"Adafruit LPS35HW Library Documentation",
166175
[author],
167176
1,
168-
)
177+
),
169178
]
170179

171180
# -- Options for Texinfo output -------------------------------------------

examples/lps35hw_data_rate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
import time
25
import board
36
from adafruit_lps35hw import LPS35HW, DataRate

examples/lps35hw_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
import time
25
import board
36
import adafruit_lps35hw

examples/lps35hw_high_threshold.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
import time
25
import board
36
import adafruit_lps35hw

examples/lps35hw_relative.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
import time
25
import board
36
import adafruit_lps35hw

examples/lps35hw_simpletest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
14
import time
25
import board
36
import adafruit_lps35hw

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2019 Bryan Siepert for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
15
Adafruit-Blinka
26
adafruit-circuitpython-busdevice
37
adafruit-circuitpython-register

0 commit comments

Comments
 (0)