Black tests by aucampia · Pull Request #1798 · RDFLib/rdflib (original) (raw)

@gjhiggins seeing as you work a lot on test it probably makes sense to check with you also, not sure if you find black a nuisance or a benefit.

Thanks for the consideration, I think black is an extremely useful benefit and makes a significant positive contribution both to reducing the maintenance effort and to supporting a well-founded shared model of the codebase.

fwiw, black would reformat 37 files in the test subdirectory:

test/helper.py
test/jsonld/runner.py
test/jsonld/test_localsuite.py
test/jsonld/test_onedotone.py
test/jsonld/test_testsuite.py
test/plugins/parser/example/rdflib/plugin/parser/__init__.py
test/test_conjunctivegraph/test_conjunctivegraph_generators.py
test/test_conjunctivegraph/test_conjunctivegraph_operator_combinations.py
test/test_definednamespace.py
test/test_extras_external_graph_libs.py
test/test_graph/test_graph_context.py
test/test_graph/test_graph_formula.py
test/test_graph/test_graph_generators.py
test/test_graph/test_graph_http.py
test/test_graph/test_slice.py
test/test_infixowl.py
test/test_issues/test_issue1404.py
test/test_issues/test_issue1484.py
test/test_literal/test_normalized_string.py
test/test_literal/test_term.py
test/test_literal/test_tokendatatype.py
test/test_misc/test_b64_binary.py
test/test_misc/test_create_input_source.py
test/test_misc/test_parse_file_guess_format.py
test/test_misc/test_prefix_types.py
test/test_namespace/test_definednamespace_creator.py
test/test_parsers/test_empty_xml_base.py
test/test_parsers/test_parser_hext.py
test/test_rdfxml.py
test/test_serializers/test_serializer_hext.py
test/test_sparql/test_construct_bindings.py
test/test_sparql/test_evaluate_bind.py
test/test_sparql/test_operators.py
test/test_sparql/test_prepare.py
test/test_sparql/test_sparql.py
test/test_tools/test_csv2rdf.py
test/test_typing.py

For convenience, I'm including the diff here (having browsed it) because I'm inclined to just let it rip and merge the result.
test.diff.gz