Debian Codegraph @

ansible_collections/amazon/aws/pyproject.toml

raw
1 [tool.black]
2 skip-string-normalization = false
3 line-length = 120
4 target-version = ['py37', 'py38']
5 extend-exclude = '''
6 /(
7 | plugins/module_utils/_version.py
8 )/
9 '''
10
11 [tool.darker]
12 revision = "origin/main.."
13
14 src = [
15 "plugins",
16 "tests/unit",
17 "tests/integration",
18 ]
19
20 [tool.isort]
21 profile = "black"
22 force_single_line = true
23 line_length = 120
24
25 src_paths = [
26 "plugins",
27 "tests/unit",
28 "tests/integration",
29 ]
30
31 sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "ANSIBLE_CORE", "ANSIBLE_AMAZON_AWS", "ANSIBLE_COMMUNITY_AWS", "LOCALFOLDER"]
32 known_third_party = ["botocore", "boto3"]
33 known_ansible_core = ["ansible"]
34 known_ansible_amazon_aws = ["ansible_collections.amazon.aws"]
35 known_ansible_community_aws = ["ansible_collections.community.aws"]
36
37 [tool.flynt]
38 transform-joins = true
39 exclude = [
40 "ec2_metadata_facts",
41 ]
42
43 [tool.flake8]
44 # E123, E125 skipped as they are invalid PEP-8.
45 show-source = true
46 ignore = ["E123", "E125", "E203", "E402", "E501", "E741", "F401", "F811", "F841", "W503"]
47 max-line-length = 160
48 builtins = "_"
49
50 [tool.mypy]
51 disable_error_code = ["import-untyped"]
52
53 [tool.ruff]
54 line-length = 120
55
56 [tool.ruff.lint]
57 # "F401" - unused-imports - We use these imports to maintain historic Interfaces
58 # "E402" - import not at top of file - General Ansible style puts the documentation at the top.
59 unfixable = ["F401"]
60 ignore = ["F401", "E402"]
61
62 [tool.pytest]
63 xfail_strict = true
64
65 [tool.coverage.run]
66 source = [
67 "plugins/",
68 "extensions/",
69 ]
70 relative_files = true
71
72 [tool.coverage.report]
73 exclude_also = [
74 # Don't complain if tests don't hit defensive assertion code:
75 "raise NotImplementedError",
76 # Handling for botocore not being available is performed by AnsibleAWSModule
77 "try:\n( import botocore\n| import boto3\n)*except ImportError:\n pass",
78 ]
79 include_namespace_packages = true
80
81 [tool.coverage.html]
82 directory = "coverage-report"
83
84 [tool.coverage.xml]
85 output = "coverage.xml"