-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
133 lines (106 loc) · 2.79 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[build-system]
requires = ["setuptools >= 70.0"]
build-backend = "setuptools.build_meta"
[project]
name = "forensicsim"
description = "A forensic open-source parser module for Autopsy that allows extracting the messages, comments, posts, contacts, calendar entries and reactions from a Microsoft Teams IndexedDB LevelDB database."
readme = "README.md"
license = {file = "LICENSE.md"}
requires-python = ">=3.12"
authors = [
{ name = "Alexander Bilz", email = "github@alexbilz.com" },
{ name = "Markus Bilz", email = "github@markusbilz.com" }
]
dependencies = [
"beautifulsoup4",
"click",
"ccl_chromium_reader @ git+https://github.com/cclgroupltd/ccl_chromium_reader@master",
"dataclasses-json",
"pause",
"pyautogui",
"pywinauto"
]
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "forensicsim.__version__"}
[project.urls]
"Homepage" = "https://forensics.im/"
"Bug Tracker" = "https://github.com/lxndrblz/forensicsim/issues"
[project.optional-dependencies]
dev=[
"build",
"pre-commit",
"mypy",
"ruff",
"tox",
]
[tool.mypy]
python_version = "3.9"
exclude = [
"tools/**.py"
]
# https://github.com/python/mypy/issues/2410
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
[tool.ruff]
target-version = "py39"
include = ["*.py", "*.pyi", "**/pyproject.toml"]
exclude = ["tools/Forensicsim_Parser.py"]
[tool.ruff.lint]
preview = true
# exclude = ["tools/**.py"]
ignore = [
"C901", # too complex
"E501", # line too long, handled by black
"D206", # indent with white space
"W191", # tab identation
]
# See rules: https://beta.ruff.rs/docs/rules/
select = [
"C", # flake8-comprehensions
"F", # pyflakes
"FURB", # refurb
"I", # isort
"PGH", # pygrep
"PIE", # misc lints
# "PTH", # flake8-use-pathlib
"RET", # return
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
]
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["forensicsim"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = format, lint, pre-commit
skipdist = True
isolated_build = True
[testenv]
deps = .[dev]
# Cleanup tasks
[testenv:clean]
commands =
sh -c "rm -rf build cover dist .hypothesis .mypy_cache .pytest_cache site"
# Auto Formatting
[testenv:format]
commands =
python -m ruff check --fix src tests
python -m ruff format src
# Syntax Checks
[testenv:lint]
commands =
python -m mypy src/forensicsim/backend.py
python -m ruff check --output-format=github src
python -m ruff format src --check
# Pre-Commit
[testenv:pre-commit]
commands =
python -m pre-commit run --all-files --show-diff-on-failure
"""