adafruit / Adafruit-Raspberry-Pi-Python-Code

Adafruit library code for Raspberry Pi
1.43k stars 686 forks source link

Continuous integration and PEP8 #146

Closed s-celles closed 5 years ago

s-celles commented 8 years ago

Hello,

You might use continuous integration for testing that merged code respect PEP8.

Here is a .travis.yml file that could help

language: python
python: 2.7
install:
  - python setup.py install
script:
  - flake8 --version
  - flake8 --ignore=E501 Adafruit

so it will ensure that library can be installed (no error in setup.py) and that merged code respect PEP8.

with flake8 you can use # noqa to disable ununsed imports for a given line.

See also https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/issues/144 https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/issues/116

Kind regards

ladyada commented 5 years ago

Thank you for the Issue! This library has been deprecated in favor of our python3 Blinka library. We have replaced all of the libraries that use this repo with CircuitPython libraries that are Python3 compatible, and support a wide variety of single board/linux computers!

Visit https://circuitpython.org/blinka for more information

CircuitPython has support for almost 200 different drivers, and a as well as FT232H support for Mac/Win/Linux!