forked from RDFLib/rdflib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
101 lines (92 loc) · 2.56 KB
/
setup.cfg
File metadata and controls
101 lines (92 loc) · 2.56 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[options.package_data]
rdflib = py.typed
# https://flake8.pycqa.org/en/latest/user/configuration.html
[flake8]
exclude =
.git,
__pycache__,
.venv,
.tox,
var,
.mypy_cache,
test/data/suites/, # does not contain python
test/jsonld/1.1/, # does not contain python
test/jsonld/test-suite/, # does not contain python
test/data/variants/, # does not contain python
test/data/translate_algebra/, # does not contain python
docs/rdf_terms.rst, # This file is causing an error on GitHub actions
extend-ignore =
# Disabled so that black can control line length.
E501, # line too long
# Disabled based on black recommendations
# https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
E203, # Whitespace before ':'
W503, # Line break occurred before a binary operator
# Disabled because this bumps heads with black
E231, # missing whitespace after ','
[coverage:run]
branch = True
source = rdflib
omit =
*/_type_checking.py
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# TYPE_CHECKING guarded code only affects type checkers.
^ *if (False|TYPE_CHECKING):
# constant used in protocols and abstract methods, does not run anything
# and has no side effects.
^ +\.\.\.$
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
if __name__==.__main__.:
[mypy]
files = rdflib,test,devtools
python_version = 3.7
warn_unused_configs = True
ignore_missing_imports = True
disallow_subclassing_any = False
warn_unreachable = True
warn_unused_ignores = True
no_implicit_optional = False
# 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$
)
[mypy-pyparsing.*]
# This is here because of an upstream issue with pyparsing:
# https://github.com/pyparsing/pyparsing/issues/385
# Once the issue is fixed this should be removed.
follow_imports = skip
[isort]
profile = black
py_version = 37
line_length = 88
src_paths=rdflib,test
supported_extensions =
pyw
pyi
py
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_reports,
rdflib.egg-info,
buck-out,
build,
dist,
venv,