Pylama draft.
This commit is contained in:
parent
6c99a2af58
commit
cacea86a97
47
.drone.yml
47
.drone.yml
|
@ -1,10 +1,53 @@
|
|||
# https://docs.drone.io/pipeline/overview/
|
||||
# https://docs.drone.io/pipeline/configuration/
|
||||
|
||||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: environment
|
||||
- name: build-app
|
||||
image: 'python:3.10-alpine'
|
||||
commands:
|
||||
- python -m venv .venv
|
||||
- source ./.venv/bin/activate
|
||||
- pip install -r requirements.txt
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: code-audit
|
||||
|
||||
steps:
|
||||
- name: pylama
|
||||
image: 'python:3.10-alpine'
|
||||
commands:
|
||||
- python -m venv .pylama-venv
|
||||
- source ./.pylama-venv/bin/activate
|
||||
- 'pip install pylama pylama\[all\]'
|
||||
- pylama
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
- pull_request
|
||||
branch:
|
||||
exclude: master
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
image: alpine
|
||||
commands:
|
||||
- 'echo "TODO: implement deploy"'
|
||||
when:
|
||||
branch: master
|
||||
|
||||
depends_on:
|
||||
- build-app
|
||||
- code-audit
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@
|
|||
|
||||
# Python
|
||||
/.venv
|
||||
/.pylama-venv
|
||||
|
|
9
pylama.ini
Normal file
9
pylama.ini
Normal file
|
@ -0,0 +1,9 @@
|
|||
# https://github.com/klen/pylama#configuration-file
|
||||
[pylama]
|
||||
format = pylint
|
||||
skip = */.venv/*,*/.pylama-venv/*
|
||||
#linters = pylint,mccabe
|
||||
#ignore = F0401,C0111,E731
|
||||
|
||||
[pylama:pylint]
|
||||
max_line_length = 120
|
Loading…
Reference in a new issue