-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 2.9 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (95 loc) · 2.9 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
[project]
name = "maple-tracker"
dynamic = ["version"]
description = "A local Flask web app to track your cat's water intake"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "Sebastian Mocanu", email = "sebastian.mocanu31@gmail.com" }
]
classifiers = [
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Flask",
"Topic :: Home Automation",
]
keywords = ["cat", "water-tracker", "pet-health", "flask", "home-server"]
dependencies = [
"flask>=3.0",
"matplotlib>=3.10",
"pandas>=2.3"
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
prod = [
"gunicorn>=25.0.0",
]
dev = [
"pytest>=9.0",
"pytest-cov>=7.0",
"ruff>=0.15",
"mypy>=1.19",
]
all = [
"maple-tracker[prod,dev]",
]
[project.scripts]
maple-tracker = "web.app:main"
maple-import = "runnable.import_to_db:main"
[project.urls]
Homepage = "https://github.com/brittleru/maple-tracker"
Repository = "https://github.com/brittleru/maple-tracker"
Issues = "https://github.com/brittleru/maple-tracker/issues"
[tool.setuptools]
packages = ["database", "web", "web.routes", "web.services"]
include-package-data = true
[tool.setuptools.package-data]
"database" = ["sql-scripts/*.sql"]
"web" = ["templates/*.html", "static/**/*"]
[tool.setuptools.dynamic]
version = { attr = "database._version.__version__" }
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
disallow_untyped_defs = true
exclude = ["tests", "venv", "env", ".venv", ".env"]
strict = true
[[tool.mypy.overrides]]
module = "database.analyze_data"
disable_error_code = ["misc"]
[tool.ruff]
target-version = "py310"
exclude = ["tests", "venv", "env", ".venv", ".env"]
force-exclude = true
line-length = 120
lint.select = ["A", "B", "E", "F", "G", "I", "N", "C4", "T10", "UP", "W", "PL", "RUF", "DOC", "PGH004"]
lint.ignore = [
"I001", # PyCharm uses something else for imports
"RUF012",
"UP015",
]
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # allow unused variables when underscore-prefixed.
# TODO: Wait for the feature for configurable indentation for function parameters
# https://github.com/astral-sh/ruff/issues/8360
format.quote-style = "double"
format.indent-style = "space"
format.docstring-code-format = true
analyze.detect-string-imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = "test_*"
addopts = "-v --cov=database --cov=web --cov-report=term-missing"
[tool.coverage.run]
source = ["database", "web"]
omit = ["tests/*", "runnable/*"]