-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (128 loc) · 2.87 KB
/
pyproject.toml
File metadata and controls
141 lines (128 loc) · 2.87 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "azul-plugin-python"
description = "Decompiles Python bytecode"
dynamic = ["version"]
readme = "README.md"
license = "MIT"
license-files = ["license.md"]
authors = [
{ name="Azul"},
]
requires-python = ">=3.12"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"azul-runner>=9.0.38",
"isort>=4.3,<5.0",
"pefile>=2024.8.26",
"pytz>=2020.4",
"setuptools-scm>=9.2.2",
"tzlocal>=3.0",
"uncompyle6>=3.9.2",
"xdis>=6.0.0",
]
[project.scripts]
azul-plugin-python = "azul_plugin_python.main:main"
python_decompiler = "azul_plugin_python.python_decompiler:cmd"
pyi_unpacker = "azul_plugin_python.pyinstaller_unpacker.pyi:main"
pyz_unpacker = "azul_plugin_python.pyinstaller_unpacker.pyz:main"
[project.urls]
Documentation = "https://australiancybersecuritycentre.github.io/azul/"
Repository = "https://github.com/AustralianCyberSecurityCentre/azul-plugin-python"
[[tool.uv.index]]
url = "https://devpi.acsc.internal/azul/stable/+simple"
default = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "only-version"
[tool.hatch.version.fallback]
version = "0.0.0"
[dependency-groups]
dev = [
"azul-runner[test-utils]>=9.0.38",
"cart>=1.2.3",
"pytest>=9.0.2",
"tox>=4.34.1",
]
[tool.ruff]
# formatter config
line-length = 119
indent-width = 4
target-version = "py312"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".env",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Flake8 linting equivalent but for ruff
[tool.ruff.lint]
select = [
# isort
"I",
# Code styles
"E4",
"E7",
"E9",
# pyflakes
"F",
# flake8 bug bear
"B",
# flake8 doc strings
"D",
# bandit
"S",
]
ignore = ["B008","C901","D104","D107","E203"]
exclude = [
"tests/*",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
# Use the Google docstring convention
convention = "google"
# Make formatter match black
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"