ci: added pylint (triggered upon error w/ score < 8 only)
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
0d64964a02
commit
c158e65192
|
@ -2,8 +2,14 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: isort
|
||||||
image: python:alpine
|
image: python:alpine
|
||||||
commands:
|
commands:
|
||||||
- pip install isort
|
- pip install isort
|
||||||
- isort --check-only --diff .
|
- isort --check-only --diff .
|
||||||
|
- name: pylint
|
||||||
|
image: python:alpine
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache py3-lxml
|
||||||
|
- pip install .
|
||||||
|
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
[MASTER]
|
||||||
|
ignore=CVS
|
||||||
|
suggestion-mode=yes
|
||||||
|
extension-pkg-allow-list=lxml.etree
|
||||||
|
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
disable=missing-function-docstring,
|
||||||
|
missing-class-docstring,
|
||||||
|
missing-module-docstring,
|
||||||
|
wrong-spelling-in-comment,
|
||||||
|
|
||||||
|
[REPORTS]
|
||||||
|
reports=yes
|
||||||
|
score=yes
|
||||||
|
|
||||||
|
[SPELLING]
|
||||||
|
spelling-dict=en_GB
|
||||||
|
spelling-ignore-words=morss
|
||||||
|
|
||||||
|
[STRING]
|
||||||
|
check-quote-consistency=yes
|
||||||
|
check-str-concat-over-line-jumps=yes
|
||||||
|
|
||||||
|
[VARIABLES]
|
||||||
|
allow-global-unused-variables=no
|
||||||
|
init-import=no
|
||||||
|
|
||||||
|
[FORMAT]
|
||||||
|
expected-line-ending-format=LF
|
||||||
|
indent-string=' '
|
||||||
|
max-line-length=120
|
||||||
|
max-module-lines=1000
|
||||||
|
|
||||||
|
[BASIC]
|
||||||
|
argument-naming-style=snake_case
|
||||||
|
attr-naming-style=snake_case
|
||||||
|
class-attribute-naming-style=snake_case
|
||||||
|
class-const-naming-style=UPPER_CASE
|
||||||
|
class-naming-style=PascalCase
|
||||||
|
const-naming-style=UPPER_CASE
|
||||||
|
function-naming-style=snake_case
|
||||||
|
inlinevar-naming-style=snake_case
|
||||||
|
method-naming-style=snake_case
|
||||||
|
module-naming-style=snake_case
|
||||||
|
variable-naming-style=snake_case
|
||||||
|
|
||||||
|
include-naming-hint=yes
|
||||||
|
|
||||||
|
bad-names=foo, bar
|
||||||
|
good-names=i, j, k
|
|
@ -16,5 +16,8 @@
|
||||||
# with this program. If not, see <https://www.gnu.org/licenses/>.
|
# with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# ran on `import morss`
|
# ran on `import morss`
|
||||||
|
|
||||||
|
# pylint: disable=unused-import,unused-variable
|
||||||
|
|
||||||
from .morss import *
|
from .morss import *
|
||||||
from .wsgi import application
|
from .wsgi import application
|
||||||
|
|
Loading…
Reference in New Issue