Skip to content

Commit 3e26f98

Browse files
committed
2 parents e84f36e + 409cb68 commit 3e26f98

28 files changed

+452
-267
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
source actions-ci/install.sh
4141
- name: Pip install pylint, black, & Sphinx
4242
run: |
43-
pip install --force-reinstall pylint==1.9.2 black==19.10b0 Sphinx sphinx-rtd-theme
43+
pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
4444
- name: Library version
4545
run: git describe --dirty --always --tags
4646
- name: PyLint

CODE_OF_CONDUCT.md

Lines changed: 90 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,129 @@
1-
# Contributor Covenant Code of Conduct
1+
# Adafruit Community Code of Conduct
22

33
## Our Pledge
44

55
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
6+
contributors and leaders pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, gender identity and expression, level of experience,
9-
nationality, personal appearance, race, religion, or sexual identity and
10-
orientation.
8+
size, disability, ethnicity, gender identity and expression, level or type of
9+
experience, education, socio-economic status, nationality, personal appearance,
10+
race, religion, or sexual identity and orientation.
1111

1212
## Our Standards
1313

14+
We are committed to providing a friendly, safe and welcoming environment for
15+
all.
16+
1417
Examples of behavior that contributes to creating a positive environment
1518
include:
1619

20+
* Be kind and courteous to others
1721
* Using welcoming and inclusive language
1822
* Being respectful of differing viewpoints and experiences
23+
* Collaborating with other community members
1924
* Gracefully accepting constructive criticism
2025
* Focusing on what is best for the community
2126
* Showing empathy towards other community members
2227

2328
Examples of unacceptable behavior by participants include:
2429

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
30+
* The use of sexualized language or imagery and sexual attention or advances
31+
* The use of inappropriate images, including in a community member's avatar
32+
* The use of inappropriate language, including in a community member's nickname
33+
* Any spamming, flaming, baiting or other attention-stealing behavior
34+
* Excessive or unwelcome helping; answering outside the scope of the question
35+
asked
2736
* Trolling, insulting/derogatory comments, and personal or political attacks
37+
* Promoting or spreading disinformation, lies, or conspiracy theories against
38+
a person, group, organisation, project, or community
2839
* Public or private harassment
2940
* Publishing others' private information, such as a physical or electronic
3041
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
42+
* Other conduct which could reasonably be considered inappropriate
43+
44+
The goal of the standards and moderation guidelines outlined here is to build
45+
and maintain a respectful community. We ask that you don’t just aim to be
46+
"technically unimpeachable", but rather try to be your best self.
47+
48+
We value many things beyond technical expertise, including collaboration and
49+
supporting others within our community. Providing a positive experience for
50+
other community members can have a much more significant impact than simply
51+
providing the correct answer.
3352

3453
## Our Responsibilities
3554

36-
Project maintainers are responsible for clarifying the standards of acceptable
55+
Project leaders are responsible for clarifying the standards of acceptable
3756
behavior and are expected to take appropriate and fair corrective action in
3857
response to any instances of unacceptable behavior.
3958

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
59+
Project leaders have the right and responsibility to remove, edit, or
60+
reject messages, comments, commits, code, issues, and other contributions
4261
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
62+
permanently any community member for other behaviors that they deem
63+
inappropriate, threatening, offensive, or harmful.
4564

46-
## Scope
65+
## Moderation
4766

48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
67+
Instances of behaviors that violate the Adafruit Community Code of Conduct
68+
may be reported by any member of the community. Community members are
69+
encouraged to report these situations, including situations they witness
70+
involving other community members.
71+
72+
You may report in the following ways:
73+
74+
In any situation, you may send an email to <[email protected]>.
5475

55-
## Enforcement
76+
On the Adafruit Discord, you may send an open message from any channel
77+
to all Community Moderators by tagging @community moderators. You may
78+
also send an open message from any channel, or a direct message to
79+
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
80+
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
5681

57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
82+
Email and direct message reports will be kept confidential.
6383

64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
84+
In situations on Discord where the issue is particularly egregious, possibly
85+
illegal, requires immediate action, or violates the Discord terms of service,
86+
you should also report the message directly to Discord.
87+
88+
These are the steps for upholding our community’s standards of conduct.
89+
90+
1. Any member of the community may report any situation that violates the
91+
Adafruit Community Code of Conduct. All reports will be reviewed and
92+
investigated.
93+
2. If the behavior is an egregious violation, the community member who
94+
committed the violation may be banned immediately, without warning.
95+
3. Otherwise, moderators will first respond to such behavior with a warning.
96+
4. Moderators follow a soft "three strikes" policy - the community member may
97+
be given another chance, if they are receptive to the warning and change their
98+
behavior.
99+
5. If the community member is unreceptive or unreasonable when warned by a
100+
moderator, or the warning goes unheeded, they may be banned for a first or
101+
second offense. Repeated offenses will result in the community member being
102+
banned.
103+
104+
## Scope
105+
106+
This Code of Conduct and the enforcement policies listed above apply to all
107+
Adafruit Community venues. This includes but is not limited to any community
108+
spaces (both public and private), the entire Adafruit Discord server, and
109+
Adafruit GitHub repositories. Examples of Adafruit Community spaces include
110+
but are not limited to meet-ups, audio chats on the Adafruit Discord, or
111+
interaction at a conference.
112+
113+
This Code of Conduct applies both within project spaces and in public spaces
114+
when an individual is representing the project or its community. As a community
115+
member, you are representing our community, and are expected to behave
116+
accordingly.
67117

68118
## Attribution
69119

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at [http://contributor-covenant.org/version/1/4][version]
120+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
121+
version 1.4, available at
122+
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>,
123+
and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html).
72124

73-
[homepage]: http://contributor-covenant.org
74-
[version]: http://contributor-covenant.org/version/1/4/
125+
For other projects adopting the Adafruit Community Code of
126+
Conduct, please contact the maintainers of those projects for enforcement.
127+
If you wish to use this code of conduct for your own project, consider
128+
explicitly mentioning your moderation policy or making a copy with your
129+
own moderation policy so as to avoid confusion.

adafruit_featherwing/alphanum_featherwing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@
3535
import adafruit_ht16k33.segments as segments
3636
from adafruit_featherwing.led_segments import Segments
3737

38+
3839
class AlphaNumFeatherWing(Segments):
3940
"""Class representing an `Adafruit 14-segment AlphaNumeric FeatherWing
4041
<https://www.adafruit.com/product/3139>`_.
4142
4243
Automatically uses the feather's I2C bus."""
44+
4345
def __init__(self, address=0x70, i2c=None):
4446
super().__init__()
4547
if i2c is None:

adafruit_featherwing/dotstar_featherwing.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@
3535
import adafruit_dotstar as dotstar
3636
from adafruit_featherwing.pixelmatrix import PixelMatrix
3737

38+
3839
class DotStarFeatherWing(PixelMatrix):
3940
"""Class representing a `DotStar FeatherWing
4041
<https://www.adafruit.com/product/3449>`_.
4142
4243
The feather uses pins D13 and D11"""
44+
4345
def __init__(self, clock=board.D13, data=board.D11, brightness=0.2):
4446
"""
4547
:param pin clock: The clock pin for the featherwing
@@ -49,5 +51,10 @@ def __init__(self, clock=board.D13, data=board.D11, brightness=0.2):
4951
super().__init__()
5052
self.rows = 6
5153
self.columns = 12
52-
self._matrix = dotstar.DotStar(clock, data, self.rows * self.columns,
53-
brightness=brightness, auto_write=False)
54+
self._matrix = dotstar.DotStar(
55+
clock,
56+
data,
57+
self.rows * self.columns,
58+
brightness=brightness,
59+
auto_write=False,
60+
)

adafruit_featherwing/gps_featherwing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@
3535
import busio
3636
import adafruit_gps
3737

38+
3839
class GPSFeatherWing:
3940
"""Class representing an `Ultimate GPS FeatherWing
4041
<https://www.adafruit.com/product/3133>`_.
4142
4243
Automatically uses the feather's UART bus."""
44+
4345
def __init__(self, update_period=1000, baudrate=9600):
4446
"""
4547
:param int update_period: (Optional) The amount of time in milliseconds between
@@ -57,8 +59,10 @@ def __init__(self, update_period=1000, baudrate=9600):
5759
self._uart = busio.UART(board.TX, board.RX, baudrate=baudrate, timeout=timeout)
5860
self._gps = adafruit_gps.GPS(self._uart, debug=False)
5961
# Turn on the basic GGA and RMC info
60-
self._gps.send_command(bytes('PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', 'utf-8'))
61-
self._gps.send_command(bytes('PMTK220,{}'.format(update_period), 'utf-8'))
62+
self._gps.send_command(
63+
bytes("PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "utf-8")
64+
)
65+
self._gps.send_command(bytes("PMTK220,{}".format(update_period), "utf-8"))
6266

6367
def update(self):
6468
"""

adafruit_featherwing/ina219_featherwing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
import board
3535
import adafruit_ina219
3636

37+
3738
class INA219FeatherWing:
3839
"""Class representing an `Adafruit INA219 FeatherWing
3940
<https://www.adafruit.com/product/3650>`_.
4041
4142
Automatically uses the feather's I2C bus."""
43+
4244
def __init__(self, i2c=None):
4345
if i2c is None:
4446
i2c = board.I2C()

adafruit_featherwing/joy_featherwing.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,15 @@ class JoyFeatherWing:
4646
"""Class representing an `Adafruit Joy FeatherWing <https://www.adafruit.com/product/3632>`_.
4747
4848
Automatically uses the feather's I2C bus."""
49+
4950
def __init__(self, i2c=None):
5051
if i2c is None:
5152
i2c = board.I2C()
5253
self._seesaw = adafruit_seesaw.seesaw.Seesaw(i2c)
53-
self._seesaw.pin_mode_bulk(BUTTON_A | BUTTON_B | BUTTON_Y | BUTTON_X | BUTTON_SELECT,
54-
self._seesaw.INPUT_PULLUP)
54+
self._seesaw.pin_mode_bulk(
55+
BUTTON_A | BUTTON_B | BUTTON_Y | BUTTON_X | BUTTON_SELECT,
56+
self._seesaw.INPUT_PULLUP,
57+
)
5558

5659
# Initialise joystick_offset
5760
self._joystick_offset = (0, 0)

adafruit_featherwing/led_segments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
__version__ = "0.0.0-auto.0"
3232
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"
3333

34-
#pylint: disable-msg=unsubscriptable-object, unsupported-assignment-operation
34+
# pylint: disable-msg=unsubscriptable-object, unsupported-assignment-operation
35+
3536

3637
class Segments:
3738
"""Class representing an `Adafruit 14-segment AlphaNumeric FeatherWing
3839
<https://www.adafruit.com/product/3139>`_.
3940
4041
Automatically uses the feather's I2C bus."""
42+
4143
def __init__(self):
4244
self._segments = None
4345

@@ -78,7 +80,7 @@ def fill(self, fill):
7880
self._segments.fill(1 if fill else 0)
7981
self._segments.show()
8082
else:
81-
raise ValueError('Must set to either True or False.')
83+
raise ValueError("Must set to either True or False.")
8284

8385
@property
8486
def blink_rate(self):

adafruit_featherwing/matrix_featherwing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@
3535
import board
3636
import adafruit_ht16k33.matrix as matrix
3737

38+
3839
class MatrixFeatherWing:
3940
"""Class representing an `Adafruit 8x16 LED Matrix FeatherWing
4041
<https://www.adafruit.com/product/3155>`_.
4142
4243
Automatically uses the feather's I2C bus."""
44+
4345
def __init__(self, address=0x70, i2c=None):
4446
if i2c is None:
4547
i2c = board.I2C()
@@ -102,7 +104,7 @@ def fill(self, fill):
102104
self._matrix.fill(1 if fill else 0)
103105
self._update()
104106
else:
105-
raise ValueError('Must set to either True or False.')
107+
raise ValueError("Must set to either True or False.")
106108

107109
def shift_right(self, rotate=False):
108110
"""

0 commit comments

Comments
 (0)