Skip to content

Commit 1820bb0

Browse files
committed
black format
1 parent 93b7b3e commit 1820bb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5720
-5718
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# SPDX-FileCopyrightText: 2021 Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
Thank you for contributing! Before you submit a pull request, please read the following.
6-
7-
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://docs.circuitpython.org/en/latest/docs/design_guide.html
8-
9-
If your changes are to documentation, please verify that the documentation builds locally by following the steps found here: https://adafru.it/build-docs
10-
11-
Before submitting the pull request, make sure you've run Pylint and Black locally on your code. You can do this manually or using pre-commit. Instructions are available here: https://adafru.it/check-your-code
12-
13-
Please remove all of this text before submitting. Include an explanation or list of changes included in your PR, as well as, if applicable, a link to any related issues.
1+
# SPDX-FileCopyrightText: 2021 Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
Thank you for contributing! Before you submit a pull request, please read the following.
6+
7+
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://docs.circuitpython.org/en/latest/docs/design_guide.html
8+
9+
If your changes are to documentation, please verify that the documentation builds locally by following the steps found here: https://adafru.it/build-docs
10+
11+
Before submitting the pull request, make sure you've run Pylint and Black locally on your code. You can do this manually or using pre-commit. Instructions are available here: https://adafru.it/check-your-code
12+
13+
Please remove all of this text before submitting. Include an explanation or list of changes included in your PR, as well as, if applicable, a link to any related issues.

.github/workflows/build.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
name: Build CI
6-
7-
on: [pull_request, push]
8-
9-
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Run Build CI workflow
14-
uses: adafruit/workflows-circuitpython-libs/build@main
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Build CI
6+
7+
on: [pull_request, push]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Run Build CI workflow
14+
uses: adafruit/workflows-circuitpython-libs/build@main
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# SPDX-FileCopyrightText: 2021 Scott Shawcroft for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
name: Failure help text
6-
7-
on:
8-
workflow_run:
9-
workflows: ["Build CI"]
10-
types:
11-
- completed
12-
13-
jobs:
14-
post-help:
15-
runs-on: ubuntu-latest
16-
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
17-
steps:
18-
- name: Post comment to help
19-
uses: adafruit/circuitpython-action-library-ci-failed@v1
1+
# SPDX-FileCopyrightText: 2021 Scott Shawcroft for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Failure help text
6+
7+
on:
8+
workflow_run:
9+
workflows: ["Build CI"]
10+
types:
11+
- completed
12+
13+
jobs:
14+
post-help:
15+
runs-on: ubuntu-latest
16+
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
17+
steps:
18+
- name: Post comment to help
19+
uses: adafruit/circuitpython-action-library-ci-failed@v1

.github/workflows/release_gh.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
name: GitHub Release Actions
6-
7-
on:
8-
release:
9-
types: [published]
10-
11-
jobs:
12-
upload-release-assets:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Run GitHub Release CI workflow
16-
uses: adafruit/workflows-circuitpython-libs/release-gh@main
17-
with:
18-
github-token: ${{ secrets.GITHUB_TOKEN }}
19-
upload-url: ${{ github.event.release.upload_url }}
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: GitHub Release Actions
6+
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
upload-release-assets:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run GitHub Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-gh@main
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
upload-url: ${{ github.event.release.upload_url }}

.github/workflows/release_pypi.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
name: PyPI Release Actions
6-
7-
on:
8-
release:
9-
types: [published]
10-
11-
jobs:
12-
upload-release-assets:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Run PyPI Release CI workflow
16-
uses: adafruit/workflows-circuitpython-libs/release-pypi@main
17-
with:
18-
pypi-username: ${{ secrets.pypi_username }}
19-
pypi-password: ${{ secrets.pypi_password }}
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: PyPI Release Actions
6+
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
upload-release-assets:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run PyPI Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-pypi@main
17+
with:
18+
pypi-username: ${{ secrets.pypi_username }}
19+
pypi-password: ${{ secrets.pypi_password }}

.gitignore

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
# SPDX-FileCopyrightText: 2022 Kattni Rembor, written for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
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 CircuitPython 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-
# CircuitPython-specific files
26-
*.mpy
27-
28-
# Python-specific files
29-
__pycache__
30-
*.pyc
31-
32-
# Sphinx build-specific files
33-
_build
34-
35-
# This file results from running `pip -e install .` in a local repository
36-
*.egg-info
37-
38-
# Virtual environment-specific files
39-
.env
40-
.venv
41-
42-
# MacOS-specific files
43-
*.DS_Store
44-
45-
# IDE-specific files
46-
.idea
47-
.vscode
48-
*~
49-
50-
# tox-specific files
51-
.tox
52-
build
53-
54-
# coverage-specific files
55-
.coverage
1+
# SPDX-FileCopyrightText: 2022 Kattni Rembor, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
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 CircuitPython 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+
# CircuitPython-specific files
26+
*.mpy
27+
28+
# Python-specific files
29+
__pycache__
30+
*.pyc
31+
32+
# Sphinx build-specific files
33+
_build
34+
35+
# This file results from running `pip -e install .` in a local repository
36+
*.egg-info
37+
38+
# Virtual environment-specific files
39+
.env
40+
.venv
41+
42+
# MacOS-specific files
43+
*.DS_Store
44+
45+
# IDE-specific files
46+
.idea
47+
.vscode
48+
*~
49+
50+
# tox-specific files
51+
.tox
52+
build
53+
54+
# coverage-specific files
55+
.coverage

.pre-commit-config.yaml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2-
#
3-
# SPDX-License-Identifier: Unlicense
4-
5-
repos:
6-
- repo: https://github.com/python/black
7-
rev: 24.2.0
8-
hooks:
9-
- id: black
10-
- repo: https://github.com/fsfe/reuse-tool
11-
rev: v1.1.2
12-
hooks:
13-
- id: reuse
14-
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.4.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.17.4
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=consider-using-f-string,duplicate-code,missing-docstring,invalid-name
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=consider-using-f-string,duplicate-code,missing-docstring,invalid-name,protected-access
1+
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
repos:
6+
- repo: https://github.com/python/black
7+
rev: 24.2.0
8+
hooks:
9+
- id: black
10+
- repo: https://github.com/fsfe/reuse-tool
11+
rev: v1.1.2
12+
hooks:
13+
- id: reuse
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v4.4.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.17.4
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=consider-using-f-string,duplicate-code,missing-docstring,invalid-name
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=consider-using-f-string,duplicate-code,missing-docstring,invalid-name,protected-access

0 commit comments

Comments
 (0)