-
-
Notifications
You must be signed in to change notification settings - Fork 696
/
tox.ini
59 lines (54 loc) · 1.45 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
[tox]
envlist =
py3{9,10,11,12,13}
pypy3
docs
types
lint
skip_missing_interpreters = True
[testenv]
usedevelop = true
deps =
-r requirements-tests.txt
extras =
watchmedo
commands =
python -bb -m pytest {posargs}
[testenv:docs]
usedevelop = true
deps =
-r requirements-tests.txt
extras =
watchmedo
commands =
sphinx-build -aEWb html docs/source docs/build/html
[testenv:lint]
usedevelop = true
deps =
-r requirements-tests.txt
extras =
watchmedo
commands =
python -m ruff format docs/source/examples src tests
python -m ruff check --fix --unsafe-fixes src docs/source/examples tests
[testenv:types]
usedevelop = true
deps =
-r requirements-tests.txt
commands =
# General
python -m mypy docs/source/examples
python -m mypy src
# OS specific
python -m mypy --platform darwin --disable-error-code unused-ignore \
src/watchdog/observers/fsevents.py \
src/watchdog/observers/fsevents2.py
python -m mypy --platform freebsd --disable-error-code unused-ignore \
src/watchdog/observers/kqueue.py
python -m mypy --platform linux --disable-error-code unused-ignore \
src/watchdog/observers/inotify.py \
src/watchdog/observers/inotify_buffer.py \
src/watchdog/observers/inotify_c.py
python -m mypy --platform win32 --disable-error-code unused-ignore \
src/watchdog/observers/read_directory_changes.py \
src/watchdog/observers/winapi.py