-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.cfg
79 lines (71 loc) · 2.03 KB
/
setup.cfg
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
72
73
74
75
76
77
78
79
[options.package_data]
rdflib = py.typed
[flake8]
ignore = W806
max-line-length = 88
exclude = host,extras,transform,rdfs,pyRdfa,sparql,results,pyMicrodata
[coverage:run]
branch = True
source = rdflib
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
if __name__==.__main__.:
[mypy]
files = rdflib,test
python_version = 3.7
warn_unused_configs = True
ignore_missing_imports = True
disallow_subclassing_any = False
warn_unreachable = True
warn_unused_ignores = True
# This is here to exclude the setup.py files in test plugins because these
# confuse mypy as mypy think they are the same module.
exclude = (?x)(
^.*test/plugins/.*/setup.py$
)
[isort]
profile = black
py_version = 37
line_length = 88
supported_extensions =
pyw
pyi
skip =
.eggs # exclude a few common directories in the
.git # root of the project
.hg
.mypy_cache
.pytest_cache
.tox
.venv
.github
_build
htmlcov
benchmarks
examples # No need to Black examples
test # Tests are a mess, don't black them
test_reports
rdflib.egg-info
buck-out
build
dist
venv
[tool:pytest]
addopts =
--doctest-modules
--ignore=test/translate_algebra
--ignore=admin
--ignore=rdflib/extras/external_graph_libs.py
--ignore-glob=docs/*.py
doctest_optionflags = ALLOW_UNICODE
filterwarnings =
# The below warning is a consequence of how pytest doctest detects mocks and how DefinedNamespace behaves when an undefined attribute is being accessed.
ignore:Code. pytest_mock_example_attribute_that_shouldnt_exist is not defined in namespace .*:UserWarning
# The below warning is a consequence of how pytest detects fixtures and how DefinedNamespace behaves when an undefined attribute is being accessed.
ignore:Code. _pytestfixturefunction is not defined in namespace .*:UserWarning