-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
71 lines (62 loc) · 1.43 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
[tox]
envlist = lint,py37,py38,py39,py310,py311,py312,pypy3
skip_missing_interpreters = True
isolated_build = True
minversion = 3.3.0
[testenv]
deps =
dev: joblib @ git+https://github.com/joblib/joblib.git
pytest
pytest-cov
pytest-mock
pytest-rerunfailures
commands =
pytest --pyargs {posargs} fscacher
[testenv:lint]
deps =
flake8
flake8-bugbear
flake8-builtins
flake8-unused-arguments
commands =
flake8 benchmarks src
[testenv:benchmark]
skip_install = True
extras = benchmarks
commands =
asv run {posargs} HEAD^1..HEAD
[pytest]
addopts = --cov=fscacher --no-cov-on-fail
filterwarnings =
error
ignore:The distutils package is deprecated:DeprecationWarning:joblib
ignore:`formatargspec` is deprecated:DeprecationWarning:joblib
norecursedirs = test/data
[coverage:run]
branch = True
parallel = True
[coverage:paths]
source =
src
.tox/**/site-packages
[coverage:report]
precision = 2
show_missing = True
omit = src/fscacher/_version.py
[flake8]
doctests = True
exclude = .*/,build/,dist/,test/data,venv/,_version.py
hang-closing = False
max-line-length = 88
unused-arguments-ignore-stub-functions = True
select = A,B,B902,B950,C,E,E242,F,U100,W
ignore = B005,E203,E262,E266,E501,W503
[isort]
atomic = True
force_sort_within_sections = True
honor_noqa = True
lines_between_sections = 0
profile = black
reverse_relative = True
sort_relative_in_force_sorted_sections = True
src_paths = src