summaryrefslogtreecommitdiff
path: root/setup.cfg
blob: f1cb7a8ab1d6ef614de8cd17ffa9f2ac01d16fda (plain)
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
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt

[tool:pytest]
addopts = -q -n auto --strict-markers --no-flaky-report -rfEX --failed-first
python_classes = *Test
markers =
    expensive: too slow to run during "make smoke"

# How come these warnings are suppressed successfully here, but not in conftest.py??
filterwarnings =
    ignore:the imp module is deprecated in favour of importlib:DeprecationWarning
    ignore:distutils Version classes are deprecated:DeprecationWarning
    ignore:The distutils package is deprecated and slated for removal in Python 3.12:DeprecationWarning

# xfail tests that pass should fail the test suite
xfail_strict = true

balanced_clumps =
    ; Because of expensive session-scoped fixture:
    VirtualenvTest
    ; Because of shared-file manipulations (~/tests/actual/testing):
    CompareTest
    ; No idea why this one fails if run on separate workers:
    GetZipBytesTest

[pep8]
# E265 block comment should start with '# '
# E266 too many leading '#' for block comment
# E301 expected 1 blank line, found 0
# E401 multiple imports on one line
# The rest are the default ignored warnings.
ignore = E265,E266,E123,E133,E226,E241,E242,E301,E401
max-line-length = 100

[metadata]
license_files = LICENSE.txt