-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
92 lines (81 loc) · 2.09 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
[project]
name = "attctrl"
version = "0.1.1"
description = "Zoho People Attendance Control"
authors = [
{ name = "nickosh", email = "[email protected]" }
]
dependencies = [
"python-decouple>=3.8",
"playwright>=1.46.0",
"apscheduler>=3.10.4",
"sqlalchemy>=2.0.32",
"fastapi[standard]>=0.112.1",
"sentry-sdk>=2.13.0",
]
readme = "README.md"
requires-python = ">= 3.11"
license = { text = "MIT" }
[project.scripts]
"attctrl" = "attctrl:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.6.1",
"pre-commit>=3.8.0",
]
[tool.rye.scripts]
start-prod = "fastapi run --port 9898 src/attctrl/main.py"
start-dev = "fastapi dev --port 9898 --reload src/attctrl/main.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/attctrl"]
[tool.ruff]
line-length = 100
src = ["src", "test"]
target-version = "py311"
include = ["*.py", "*.pyi", "**/pyproject.toml"]
[tool.ruff.lint]
select = [
"I", # iSort
"F", # PyFlakes
"E", # pycodestyle
"W", # Warning
"N", # pep8-naming
"YTT", # flake8-2020
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"G", # flake8-logging-format
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"RUF", # Ruff-specific rules
]
ignore = [
"PLR0913", # Too many arguments to function call
"I001", # Import block is un-sorted or un-formatted
"RET505", # Unnecessary `else` after `return` statement
"E501", # Line too long
"E999", # Syntax Error as it doesnt understand match commands from Python 3.10+
"G004", # Logging statement uses f-string
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.format]
line-ending = "lf"
indent-style = "space"
quote-style = "double"