Skip to content

Commit 2d4683e

Browse files
author
BiffoBear
committed
Fixed pre-commit yaml and made requested changes to requirements.txt.
1 parent 8e7c04b commit 2d4683e

File tree

4 files changed

+41
-14
lines changed

4 files changed

+41
-14
lines changed

.pre-commit-config.yaml

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,40 @@
33
# SPDX-License-Identifier: Unlicense
44

55
repos:
6-
- repo: https://github.com/fsfe/reuse-tool
7-
rev: v0.14.0
8-
hooks:
9-
- id: reuse
10-
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.2.0
12-
hooks:
13-
- id: end-of-file-fixer
14-
- id: trailing-whitespace
6+
- repo: https://github.com/python/black
7+
rev: 22.3.0
8+
hooks:
9+
- id: black
10+
- repo: https://github.com/fsfe/reuse-tool
11+
rev: v0.14.0
12+
hooks:
13+
- id: reuse
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v4.2.0
16+
hooks:
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- repo: https://github.com/pycqa/pylint
21+
rev: v2.11.1
22+
hooks:
23+
- id: pylint
24+
name: pylint (library code)
25+
types: [python]
26+
args:
27+
- --disable=consider-using-f-string
28+
exclude: "^(docs/|examples/|tests/|setup.py$)"
29+
- id: pylint
30+
name: pylint (example code)
31+
description: Run pylint rules on "examples/*.py" files
32+
types: [python]
33+
files: "^examples/"
34+
args:
35+
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
36+
- id: pylint
37+
name: pylint (test code)
38+
description: Run pylint rules on "tests/*.py" files
39+
types: [python]
40+
files: "^tests/"
41+
args:
42+
- --disable=missing-docstring,consider-using-f-string,duplicate-code

adafruit_character_lcd/character_lcd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
3030
3131
"""
32-
import circuitpython_typing
33-
3432
try:
3533
from typing import Union, Optional, List, Sequence
3634
from circuitpython_typing import pwmio
@@ -91,7 +89,9 @@ def _set_bit(byte_value: int, position: int, val: bool) -> int:
9189
return ret
9290

9391

94-
def _map(xval: float, in_min: float, in_max: float, out_min: float, out_max: float) -> float:
92+
def _map(
93+
xval: float, in_min: float, in_max: float, out_min: float, out_max: float
94+
) -> float:
9595
# Affine transfer/map with constrained output.
9696
outrange = float(out_max - out_min)
9797
inrange = float(in_max - in_min)

docs/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
# SPDX-License-Identifier: Unlicense
44

55
sphinx>=4.0.0
6-
adafruit_circuitpython_typing>=1.8.2
7-
typing_extensions>=4.4.0

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Adafruit-Blinka
66
adafruit-circuitpython-mcp230xx
77
adafruit-circuitpython-busdevice
88
adafruit-circuitpython-74hc595
9+
adafruit-circuitpython-typing~=1.5

0 commit comments

Comments
 (0)