Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 23 Jun 2019 15:25:51 UTC Commit: 9d8197be9e0e779f5b4829b460a0b77b2849293e https://github.com/geany/www.geany.org/commit/9d8197be9e0e779f5b4829b460a0b7...
Log Message: ----------- Run linting and static code analysis with Tox and Travis
Still no unit tests but at least linting checks and PyLint.
Modified Paths: -------------- .travis.yml tox.ini
Modified: .travis.yml 26 lines changed, 26 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,26 @@ +# LICENCE: This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. + +os: linux +dist: xenial +sudo: false +language: python +cache: pip + +python: + - "3.5" + - "3.6" + - "3.7" + +install: pip install tox-travis +script: tox
Modified: tox.ini 84 lines changed, 84 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,84 @@ +# LICENCE: This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. + +[tox] +skip_missing_interpreters = true +skipsdist = true +envlist = + py35,py36,py37 + +geany_modules = geany latest_version news nightlybuilds pastebin static_docs + +[testenv] +deps = + flake8 + isort + pylint + pylint-django + -r{toxinidir}/requirements.txt +commands = + {envbindir}/flake8 {[tox]geany_modules} + {envbindir}/isort --check-only --diff --recursive {[tox]geany_modules} + {envbindir}/pylint --rcfile=tox.ini {[tox]geany_modules} + +[flake8] +exclude = build,.git,docs,local_settings.py +ignore = E127,E128, +max-line-length = 100 + +[isort] +line_length = 100 +indent = 4 +multi_line_output = 3 +length_sort = false +force_alphabetical_sort_within_sections = true +sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER +lines_after_imports = 2 +from_first = true +include_trailing_comma = true +skip = local_settings.py + +# the following secions are for pylint +[MASTER] +ignore=.git +ignore-patterns=local_settings.py +persistent=no +load-plugins=pylint_django + +[MESSAGES CONTROL] +disable= + empty-docstring, + logging-format-interpolation, + missing-docstring, + no-else-return, + no-self-use + +[REPORTS] +output-format=parseable +files-output=no +reports=no + +[FORMAT] +max-line-length=100 + +[VARIABLES] +dummy-variables-rgx=_|dummy + +[DESIGN] +min-public-methods=0 +max-attributes=10 +max-args=7 +max-parents=9 + +[EXCEPTIONS] +overgeneral-exceptions=
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).