Commit 5f5e0eb9 authored by Recteur LP's avatar Recteur LP

Use pycodestyle

parent 86e46dd7
Pipeline #1547 failed with stages
in 3 minutes and 2 seconds
[pycodestyle]
max-line-length = 120
[pep8]
max-line-length = 120
[pycodestyle]
max-line-length = 120
[pep8]
max-line-length = 120
......@@ -45,7 +45,7 @@ goss: test-build
tests: test-build
@podman run --rm -t localhost/pyrmin:tests python3
@podman run --rm -t localhost/pyrmin:tests pep8
@podman run --rm -t localhost/pyrmin:tests pycodestyle
@podman run --rm -t localhost/pyrmin:tests grunt
csscomb:
......
PyRmin 0.4.0
============
[![build status](https://pyrmin.io/gitlab/PyRmin/PyRmin/badges/master/build.svg)](https://pyrmin.io/gitlab/PyRmin/PyRmin/commits/master) [![Documentation status](https://pyrmin.io/docs/projects/pyrmin/badge/?version=latest)](http://pyrmin.io/docs/pyrmin/en/latest/)
**Online documentation available on** [http://docs.pyrmin.io](http://docs.pyrmin.io)
**For online documentation go to** [PyRmin Docs](http://docs.pyrmin.io/)
Or [docs/install.rst](docs/install.rst)
Or in reStructuredText Format [docs/install.rst](docs/install.rst)
......@@ -23,9 +23,9 @@ elif [[ "$1" == "python2" ]]; then
cd pyrmin && /opt/pyrmin/venv-2/bin/python -m pytest -svl --color yes -s tests.py
elif [[ "$1" == "pep8" ]]; then
elif [[ "$1" == "pycodestyle" ]]; then
/opt/pyrmin/venv-3/bin/pep8 --max-line-length=120 --first --show-source --show-pep8 pyrmin
/opt/pyrmin/venv-3/bin/pycodestyle --max-line-length=120 --first --show-source --show-pep8 pyrmin
elif [[ "$1" == "grunt" ]]; then
......
......@@ -30,10 +30,10 @@ class Main():
def plugins(self):
# Get CLI Arguments from Installed Plugins
plugin = Plugins(self.config).get(self.args.plugin)
conf = Core(self.config).get_plugin_config(self.args.plugin)
args = self.args
exec(self.args.function)
plugin = Plugins(self.config).get(self.args.plugin)
conf = Core(self.config).get_plugin_config(self.args.plugin)
args = self.args
exec(self.args.function)
def parseconfigpath(self, opts):
config_path = "/etc/pyrmin/"
......
......@@ -207,7 +207,7 @@ class Web():
self.config = self.httpconfigure(config)
def httpconfigure(self, config):
from .errors import error_default, error_debug, error_404, error_401
from .errors import error_401, error_404, error_debug, error_default
# Run Cherrpy as webserver
cherrypy.server.socket_port = config['pyrmin'].get('port', 8080)
......@@ -329,7 +329,7 @@ class Web():
Function to Start Web server
"""
from .auth import LogIn, LogOut
from .handlers import root, settings_rest, version, ping
from .handlers import ping, root, settings_rest, version
core_path = os.path.dirname(os.path.abspath(__file__))
......
pep8
pycodestyle
pytest-cov
nose
pytest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment