Debian Codegraph @

ansible_collections/community/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 # Unstable
32 skip = [
33 "aws_ssm.py"
34 ]
35
36 sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "ANSIBLE_CORE", "ANSIBLE_AMAZON_AWS", "ANSIBLE_COMMUNITY_AWS", "LOCALFOLDER"]
37 known_third_party = ["botocore", "boto3"]
38 known_ansible_core = ["ansible"]
39 known_ansible_amazon_aws = ["ansible_collections.amazon.aws"]
40 known_ansible_community_aws = ["ansible_collections.community.aws"]
41
42 [tool.flynt]
43 transform-joins = true
44
45 [tool.flake8]
46 # E123, E125 skipped as they are invalid PEP-8.
47 show-source = true
48 ignore = ["E123", "E125", "E203", "E402", "E501", "E741", "F401", "F811", "F841", "W503"]
49 max-line-length = 160
50 builtins = "_"
51
52 [tool.mypy]
53 disable_error_code = ["import-untyped"]
54
55 [tool.ruff]
56 line-length = 120
57
58 [tool.ruff.lint]
59 # "F401" - unused-imports - We use these imports to maintain historic Interfaces
60 # "E402" - import not at top of file - General Ansible style puts the documentation at the top.
61 unfixable = ["F401"]
62 ignore = ["F401", "E402"]
63
64 [tool.pytest]
65 xfail_strict = true
66
67 [tool.coverage.report]
68 exclude_lines = [
69 # Have to re-enable the standard pragma
70 "pragma: no cover",
71 # Don't complain if tests don't hit defensive assertion code:
72 "raise NotImplementedError",
73 ]