Skip to content

Commit 2b8cafd

Browse files
committed
Ran pre-commit, added licenses
1 parent 6bdb92b commit 2b8cafd

23 files changed

+454
-43
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,36 @@ jobs:
4242
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
4343
run: |
4444
source actions-ci/install.sh
45-
- name: Pip install pylint, black, & Sphinx
45+
- name: Pip install pylint, Sphinx, pre-commit
4646
run: |
47-
pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
47+
pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
4848
- name: Library version
4949
run: git describe --dirty --always --tags
50-
- name: Check formatting
50+
- name: Pre-commit hooks
5151
run: |
52-
black --check --target-version=py35 .
52+
pre-commit run --all-files
5353
- name: PyLint
5454
run: |
5555
pylint $( find . -path './adafruit*.py' )
5656
([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
5757
- name: Build assets
5858
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
59+
- name: Archive bundles
60+
uses: actions/upload-artifact@v2
61+
with:
62+
name: bundles
63+
path: ${{ github.workspace }}/bundles/
5964
- name: Build docs
6065
working-directory: docs
6166
run: sphinx-build -E -W -b html . _build/html
67+
- name: Check For setup.py
68+
id: need-pypi
69+
run: |
70+
echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
71+
- name: Build Python package
72+
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
73+
run: |
74+
pip install --upgrade setuptools wheel twine readme_renderer testresources
75+
python setup.py sdist
76+
python setup.py bdist_wheel --universal
77+
twine check dist/*

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
26
#
37
# SPDX-License-Identifier: Unlicense

.pylintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
26
#
37
# SPDX-License-Identifier: Unlicense

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
26
#
37
# SPDX-License-Identifier: Unlicense

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
3+
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
4+
SPDX-License-Identifier: CC-BY-4.0
5+
-->
6+
17
<!--
28
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
39
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
@@ -49,7 +55,7 @@ Examples of unacceptable behavior by participants include:
4955

5056
The goal of the standards and moderation guidelines outlined here is to build
5157
and maintain a respectful community. We ask that you don’t just aim to be
52-
"technically unimpeachable", but rather try to be your best self.
58+
"technically unimpeachable", but rather try to be your best self.
5359

5460
We value many things beyond technical expertise, including collaboration and
5561
supporting others within our community. Providing a positive experience for
@@ -80,9 +86,9 @@ You may report in the following ways:
8086
In any situation, you may send an email to <[email protected]>.
8187

8288
On the Adafruit Discord, you may send an open message from any channel
83-
to all Community Moderators by tagging @community moderators. You may
84-
also send an open message from any channel, or a direct message to
85-
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
89+
to all Community Moderators by tagging @community moderators. You may
90+
also send an open message from any channel, or a direct message to
91+
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
8692
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
8793

8894
Email and direct message reports will be kept confidential.

0 commit comments

Comments
 (0)