-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (77 loc) · 1.84 KB
/
pyproject.toml
File metadata and controls
85 lines (77 loc) · 1.84 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "amplifyp"
version = "v0.0.1"
description = "Python rewrite of Amplify 4"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"flet",
"pyyaml",
"pytesseract",
"pillow",
"requests",
"pytest-playwright",
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
optional-dependencies.tests = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-testmon",
"pytest-playwright",
]
optional-dependencies.e2e = [
"pytest-playwright",
]
urls.Homepage = "https://github.com/fangfufu/AmplifyP"
urls.Issues = "https://github.com/fangfufu/AmplifyP/issues"
author = [
{ name = "Fufu Fang", email = "fangfufu2003@gmail.com" },
]
[tool.ruff]
target-version = "py312"
exclude = ["resources"]
line-length = 80
lint.select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle (Docstrings)
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"RUF", # Ruff-specific rules
"S", # Bandit (Security)
"T10", # flake8-debugger
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# Ignore "S101" (assert used) in all files inside the tests directory
lint.per-file-ignores."tests/**/*.py" = [ "S101", "D" ]
lint.pydocstyle.convention = "google"
[tool.pytest.ini_options]
pythonpath = "src"
norecursedirs = ["resources"]
addopts = [
"--import-mode=importlib",
"--cov=src/amplifyp",
"--cov-report=xml",
]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
[tool.coverage.run]
omit = [ "src/amplifyp/antigravity_gui/gui.py" ]
[tool.mypy]
mypy_path = "src"