github.com/apache/beam/sdks/v2@v2.48.2/python/setup.cfg (about) 1 # 2 # Licensed to the Apache Software Foundation (ASF) under one or more 3 # contributor license agreements. See the NOTICE file distributed with 4 # this work for additional information regarding copyright ownership. 5 # The ASF licenses this file to You under the Apache License, Version 2.0 6 # (the "License"); you may not use this file except in compliance with 7 # the License. You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 # 17 18 [nosetests] 19 # Allow discovery of Python test files marked executable. 20 exe=True 21 verbosity=2 22 23 # Creates an xml file compatible with standard XUnit XML format. 24 with-xunit=1 25 26 # Configurations to control coverage.py. 27 [coverage:run] 28 branch = True 29 source = apache_beam 30 omit = 31 # Omit auto-generated files by the protocol buffer compiler. 32 apache_beam/portability/api/*_pb2.py 33 apache_beam/portability/api/*_pb2_grpc.py 34 35 [coverage:report] 36 # Regexes for lines to exclude from consideration 37 exclude_lines = 38 # Have to re-enable the standard pragma 39 pragma: no cover 40 abc.abstractmethod 41 42 # Don't complain about missing debug-only code: 43 def __repr__ 44 if self\.debug 45 46 # Don't complain if tests don't hit defensive assertion code: 47 raise NotImplementedError 48 49 # Don't complain if non-runnable code isn't run: 50 if __name__ == .__main__.: 51 52 [coverage:xml] 53 output = target/site/cobertura/coverage.xml 54 55 [isort] 56 known_standard_library = dataclasses 57 58 [yapf] 59 indent_width = 2 60 continuation_indent_width = 4 61 column_limit = 80 62 allow_split_before_dict_value = False 63 blank_line_before_module_docstring = True 64 coalesce_brackets = True 65 each_dict_entry_on_separate_line = True 66 split_all_top_level_comma_separated_values = True 67 split_arguments_when_comma_terminated = True 68 split_before_expression_after_opening_paren = True 69 split_before_first_argument = True 70 split_before_logical_operator = False 71 # Use this feature to keep type ignore comments on the correct line 72 i18n_comment = # type: ignore.*