Skip to content

Commit 53138f4

Browse files
authored
Merge pull request #179 from Dessia-tech/dev
Twoards 0.11.0
2 parents d52d999 + 04db785 commit 53138f4

23 files changed

+1212
-496
lines changed

.drone.yml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@ name: default
55

66
steps:
77
- name: npm update tag from git, build
8-
image: node:14
8+
image: node:16
99
commands:
1010
- git fetch --tags
11-
- npm config set git-tag-version=false
12-
- version=`git describe --tags`
13-
- npm version $${version}
11+
- bash set_version.sh
1412
- npm install
1513
- npm run build
1614
- npm run dev
1715
- npm install typedoc
1816
- npx typedoc src/plot-data.ts --out doc/build/typescript/
1917

18+
- name: python install, build doc run scripts
19+
image: python:3.8
20+
commands:
21+
- pip install sphinx sphinx_rtd_theme
22+
- python setup.py install
23+
- cd doc
24+
- make html
25+
2026
- name: upload npm
2127
image: plugins/npm
2228
when:
@@ -84,21 +90,19 @@ steps:
8490
password:
8591
from_secret: ssh_drone_password
8692

87-
88-
89-
- name: install, build doc run scripts
90-
image: python:3.8
93+
- name: check code complexity, docs & code quality
94+
image: python:3.9
9195
commands:
92-
- pip install sphinx sphinx_rtd_theme
93-
- python setup.py install
94-
- cd doc
95-
- make html
96-
96+
- pip install radon pydocstyle pylint
97+
- ./code_quality.sh
98+
- python code_pylint.py
9799

98-
#- name: develop
99-
# image: python:3.8
100-
# commands:
101-
# - python setup.py develop
100+
- name: check pep8 formatting
101+
image: python:3.9
102+
commands:
103+
- git fetch --tags
104+
- pip3 install -U pip autopep8
105+
- bash code_pep8.sh
102106

103107
- name: sdist
104108
image: python:3.8
@@ -129,15 +133,3 @@ steps:
129133
password:
130134
from_secret: ssh_drone_password
131135

132-
- name: notify by email
133-
when:
134-
status:
135-
- failure
136-
image: drillster/drone-email
137-
settings:
138-
host: mail.dessia.tech
139-
username: technical@dessia.tech
140-
password:
141-
from_secret: email_password
142-
from: technical@dessia.tech
143-
recipients: [ root@dessia.tech ]

.pep8

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[pycodestyle]
2+
max_line_length = 120
3+
ignore = E402, E722, E126, E731
4+
recursive = true
5+
aggressive = 1
6+
7+
# config file used by autopep, which enhance pycodestyle
8+
# see config options at :
9+
# see https://pypi.org/project/autopep8/#features
10+
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
11+
# interesting codes : E501, W6

.pydocstylerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pydocstyle]
2+
inherit = false
3+
ignore = D400,D415,D404,D212,D205,D200,D203,D401,D210,D204,D101

0 commit comments

Comments
 (0)