-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
107 lines (98 loc) · 3.67 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
[tool.poetry]
name = "kaskara"
version = "0.2.1"
description = "A simple, unified API for various static analysers"
authors = ["Chris Timperley <[email protected]>"]
license = "Apache-2.0"
repository = "https://github.com/ChrisTimperley/Kaskara"
readme = "README.rst"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[tool.poetry.scripts]
kaskara = 'kaskara.cli:cli'
[tool.poetry.dependencies]
python = ">=3.11,<4"
attrs = ">=19.3.0"
click = "^8.1.7"
loguru = ">=0.4.0"
requests = "2.31.0"
sourcelocation = "^1.1.8"
dockerblade = "^0.6"
asttokens = "^2.0"
astor = "^0.8"
importlib_resources = ">=1.0"
overrides = "^7.7.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = ">=1.10.0"
pytest = "^7.4.3"
python = "^3.11"
ruff = ">=0.4.4"
types-docker = "^7.0.0.20240524"
types-setuptools = "^70.0.0.20240524"
[tool.mypy]
ignore_missing_imports = false
strict = true
implicit_reexport = true
[[tool.mypy.overrides]]
module = "astor"
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py311"
src = ["src"]
[tool.ruff.lint]
select = [
"ALL", # includes all rules (including new ones)
]
per-file-ignores = {"*/__init__.py" = ["F401"], "src/kaskara/core.py" = ["F401"], "src/kaskara/python/*.py" = ["N802", "N815"]}
extend-ignore = [
"ANN101", # missing type annotation for 'self' in method
"ANN102", # missing type annotation for 'cls' in classmethod
"B024", # use of abstract base class without abstract methods
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"D401", # first line of docstring should be in imperative mood
"D413", # missing blank line after last section
"FIX001", # unresolved FIXME
"FIX002", # TODO found
"TD001", # invalid TODO tag: `FIXME`
"TD002", # missing author in TODO
"TD003", # missing issue link on line following TODO
"TD004", # missing colon in TODO
"TRY003", # avoid specifying long messages outside the exception class
"S101", # use of assertions
"SLF001", # private member accessed
"T201", # use of print
"D204", # 1 blank line required after class docstring
"C901", # function is too complex (cyclomatic complexity)
"PLR0912", # too many branches
"PGH003", # use specific rule codes when ignoring type issues
"FBT001", # boolean typed positional argument in function definition
"ARG001", # unused function argument
"PLR0913", # too many arguments in function definition
"PLR0911", # too many return statements
"PTH118", # `os.path.join()` should be replaced by `Path` with `/` operator
"S604", # function call with `shell=True` parameter identified, security issue
"S602", # subprocess call with shell=True identified, security issue
"D107", # missing docstring in `__init__`
"N818", # exception name should be named with an Error suffix
"PTH117", # `os.path.isabs()` should be replaced by `Path.is_absolute()`
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"