forked from gdsfactory/gdsfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
96 lines (81 loc) · 1.6 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist = py37, py38, py39
[pytest]
addopts = --ignore=setup.py
nb_file_fnmatch = notebooks/*.ipynb
[testenv]
deps=
pytest
-rrequirements.txt
-rrequirements_full.txt
-rrequirements_dev.txt
commands = pytest
[testenv:windows]
deps=
pytest
-rrequirements.txt
-rrequirements_full.txt
-rrequirements_dev.txt
conda_deps=
gdspy
conda_channels=
conda-forge
commands = pytest
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
[testenv:deploy]
whitelist_externals=
sh
deps=
-rrequirements.txt
twine
wheel
commands=
sh -c 'mkdir -p dist && rm -f dist/*'
pip wheel -w dist .
sh -c 'twine upload -p none -u none --repository-url http://pypi.com dist/*.whl || echo "COULD NOT UPLOAD RELEASE. (Did you bump the version?)"'
# Linters
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings>=1.3.1
flake8-import-order>=0.9
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8 gdsfactory
# Flake8 Configuration
[flake8]
ignore = D203, W503, E203, B950, B018
exclude =
.tox,
.git,
__pycache__,
docs/source/conf.py,
build,
dist,
tests/fixtures/*,
*.pyc,
*.egg-info,
.cache,
.eggs
max-complexity = 10
import-order-style = google
application-import-names = flake8
[testenv:docs]
commands =
py.test --doctest-glob="*.md" --doctest-glob="README.md" README.md gdsfactory/
[testenv:plugins]
conda_deps=
pymeep
conda_channels=
conda-forge
commands =
pytest gdsfactory/simulation/meep
pytest gdsfactory/simulation/mpb