File: rules

package info (click to toggle)
pylint 3.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,660 kB
  • sloc: python: 74,101; makefile: 67
file content (58 lines) | stat: -rwxr-xr-x 2,291 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# https://ci.debian.net/packages/p/pylint/testing/amd64/45931688/
# already a lot better

# wrong_import_order fails in Salsa CI

export PYBUILD_BEFORE_TEST=rm -f {dir}/tests/functional/u/unused_typing_imports.py {dir}/tests/functional/m/missing_final_newline.py
export PYBUILD_TEST_ARGS=-vvvv \
                         -k '\
                             not test_do_not_import_files_from_local_directory \
                         and not test_relative_beyond_top_level_two \
                         and not test_relative_beyond_top_level_three \
                         and not test_relative_beyond_top_level_four \
                         and not inconsistent_returns \
                         and not invalid_all_format_valid_5 \
                         and not invalid_all_format_valid_6 \
                         and not regression_4680 \
                         and not unreachable \
                         and not undefined_variable_typing \
                         and not unused_import_assigned_to \
                         and not use_yield_from \
                         and not used_before_assignment_else_return \
                         and not test_package \
                         and not test_preferred_module \
                         and not test_allow_reexport_package \
                         and not test_package_all \
                         and not wrong_import_order \
                         and not import_error \
                         and not syntax_error \
                         and not test_json_report_when_file_has_syntax_error \
                         and not test_stdin_syntax_error \
                         and not used_before_assignment \
                         ' \
                         {build_dir}/tests
export PYBUILD_AFTER_TEST=rm -rf {dir}/.pytest_cache
export PYBUILD_BEFORE_INSTALL=rm -rf {build_dir}/classes.dot

%:
	dh $@ --buildsystem pybuild

override_dh_auto_build:
	dh_auto_build

override_dh_compress:
	dh_compress -i -X.py -X.ini -X.xml -Xtest

override_dh_installexamples:
	dh_installexamples -ppylint examples/*

override_dh_installdocs:
	dh_installdocs -A README.rst

override_dh_missing:
	dh_missing --fail-missing