Compare commits

...

2 commits

Author SHA1 Message Date
Jeff Epler
344d29f5c5 Add pull request template 2022-02-15 09:59:16 -06:00
Jeff Epler
b391f2b8de Update pre-commit, blacken 2022-02-15 09:59:16 -06:00
3 changed files with 42 additions and 16 deletions

View file

@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2021 Adafruit Industries
#
# SPDX-License-Identifier: MIT
Thank you for contributing! Before you submit a pull request, please read the following.
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
If your changes are to documentation, please verify that the documentation builds locally by following the steps found here: https://adafru.it/build-docs
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
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.

View file

@ -4,7 +4,7 @@
repos: repos:
- repo: https://github.com/python/black - repo: https://github.com/python/black
rev: 19.10b0 rev: 20.8b1
hooks: hooks:
- id: black - id: black
- repo: https://github.com/fsfe/reuse-tool - repo: https://github.com/fsfe/reuse-tool
@ -18,15 +18,23 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/pycqa/pylint - repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0 rev: pylint-2.7.1
hooks: hooks:
- id: pylint - id: pylint
name: lint (examples) name: pylint (library code)
types: [python] types: [python]
files: ^examples/ exclude: "^(docs/|examples/|tests/|setup.py$)"
args: - repo: local
- --disable=missing-docstring,invalid-name,bad-whitespace hooks:
- id: pylint - id: pylint_examples
name: lint (code) name: pylint (examples code)
types: [python] description: Run pylint rules on "examples/*.py" files
exclude: "^(docs/|examples/|setup.py$)" entry: /usr/bin/env bash -c
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)']
language: system
- id: pylint_tests
name: pylint (tests code)
description: Run pylint rules on "tests/*.py" files
entry: /usr/bin/env bash -c
args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']
language: system

View file

@ -5348,7 +5348,12 @@ BasicContext = Context(
flags=[], flags=[],
) )
ExtendedContext = Context(prec=9, rounding=ROUND_HALF_EVEN, traps=[], flags=[],) ExtendedContext = Context(
prec=9,
rounding=ROUND_HALF_EVEN,
traps=[],
flags=[],
)
##### crud for parsing strings ############################################# ##### crud for parsing strings #############################################