File: tox.ini

package info (click to toggle)
python-watchdog 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: python: 6,384; ansic: 609; xml: 155; makefile: 120; sh: 8
file content (59 lines) | stat: -rw-r--r-- 1,484 bytes parent folder | download | duplicates (2)
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 -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