Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c992b5

Browse filesBrowse files
committed
Add configuration for running stubtest using tox
1 parent cd8281b commit 7c992b5
Copy full SHA for 7c992b5

File tree

Expand file treeCollapse file tree

3 files changed

+13
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+13
-2
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
################
3232
# meson-python working directory
3333
build
34+
.mesonpy*
3435

3536
# meson-python/build frontend dist directory
3637
dist

‎environment.yml

Copy file name to clipboardExpand all lines: environment.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies:
4646
- sphinxcontrib-svg2pdfconverter>=1.1.0
4747
- pikepdf
4848
# testing
49+
- black<24
4950
- coverage
5051
- flake8>=3.8
5152
- flake8-docstrings>=1.4.0
@@ -64,4 +65,4 @@ dependencies:
6465
- pytest-xdist
6566
- tornado
6667
- pytz
67-
- black<24
68+
- tox

‎tox.ini

Copy file name to clipboardExpand all lines: tox.ini
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py38, py39, py310
7+
envlist = py38, py39, py310, stubtest
88

99
[testenv]
1010
changedir = /tmp
@@ -25,3 +25,12 @@ commands =
2525
deps =
2626
pytest
2727
pytz
28+
29+
[testenv:stubtest]
30+
changedir = {tox_root}
31+
commands =
32+
python tools/stubtest.py
33+
usedevelop = False
34+
deps =
35+
-r requirements/testing/mypy.txt
36+
-r requirements/testing/all.txt

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.