2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Marcel Telka
16 %patch% 01-test-requirements.patch
17 %patch% 02-pydantic.patch
18 %patch% 03-test-remove-failing.patch
21 # https://github.com/pylint-dev/pylint/pull/9475
22 LICENSE='GPL-2.0-only'
25 # Some tests are failing when run under pytest 8 so we simply remove them.
26 # https://github.com/pylint-dev/pylint/issues/9477
27 # https://github.com/pylint-dev/pylint/pull/9576
28 COMPONENT_PREP_ACTION += \
30 i/inconsistent/inconsistent_quotes_fstring \
31 i/inconsistent/inconsistent_returns \
32 i/invalid/invalid_all/invalid_all_format_valid_5 \
33 i/invalid/invalid_all/invalid_all_format_valid_6 \
34 n/no/no_name_in_module \
35 r/regression/regression_4680 \
37 u/undefined/undefined_variable_typing \
38 u/unused/unused_import_assigned_to \
39 u/use/use_yield_from \
40 u/used/used_before_assignment \
41 u/used/used_before_assignment_else_return \
43 $(RM) -r $(SOURCE_DIR)/tests/functional/$${t}.* ; \
46 # Test results order varies between runs
47 PYTEST_SORT_TESTS = yes
49 # Random directory name
50 COMPONENT_TEST_TRANSFORMS += "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"