-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
110 lines (98 loc) · 2.52 KB
/
pyproject.toml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "aec-cli"
description = "AWS EC2 CLI"
dynamic = ["version"]
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["AWS", "EC2", "command line", "cli"]
classifiers = ["License :: OSI Approved :: MIT License"]
requires-python = ">=3.8"
dependencies = [
"boto3==1.36.11",
"importlib_resources==6.4.5",
"pytoml==0.1.21",
"pytz==2025.1",
"requests==2.32.3",
"rich==13.9.4",
"typing_extensions==4.12.2",
]
[project.optional-dependencies]
dev = [
"build~=1.0",
"boto3-stubs[ec2,compute-optimizer,ssm,s3]",
"cogapp~=3.3",
"dirty-equals~=0.6",
"moto[ec2]~=5.0.2",
"pre-commit~=3.4",
"pyfakefs~=5.1",
"pytest~=8.0",
"pytest-mock~=3.11",
"ruff~=0.9.4",
"twine~=6.0",
]
[project.scripts]
aec = "aec.main:main"
[project.urls]
homepage = "https://github.com/seek-oss/aec"
[build-system]
requires = ["setuptools~=75.3", "setuptools_scm~=8.0", "wheel~=0.42"]
# enable setuptools_scm to set the version based on git tags
[tool.setuptools_scm]
fallback_version = "0.0.0"
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["src", "tests"]
strictListInference = true
strictDictionaryInference = true
strictParameterNoneValue = true
reportTypedDictNotRequiredAccess = false
reportIncompatibleVariableOverride = true
reportIncompatibleMethodOverride = true
reportMatchNotExhaustive = true
reportUnnecessaryTypeIgnoreComment = true
[tool.ruff]
line-length = 120
# first-party imports for sorting
src = ["src"]
fix = true
show-fixes = true
[tool.ruff.lint]
# rules to enable/ignore
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"ANN", # type annotations
"N", # pep8-naming
"B", # bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"SLF", # flake8-self
"UP", # pyupgrade
"PERF", # perflint
"RUF", # ruff-specific
"SIM", # flake8-simplify
"S113", # request-without-timeout
"FA", # flake8-future-annotations (for python 3.7/8/9)
]
ignore = [
# allow untyped self and cls args
"ANN101",
"ANN102",
# allow no return type from dunder methods
"ANN204",
# allow == True because pandas dataframes overload equality
"E712",
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
[tool.ruff.lint.per-file-ignores]
# test functions don't need return types
"tests/*" = ["ANN201", "ANN202"]
# main.py can have long lines
"src/aec/main.py" = ["E501"]
[tool.ruff.lint.flake8-annotations]
# allow *args: Any, **kwargs: Any
allow-star-arg-any = true