-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
84 lines (66 loc) · 2.1 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
[tool.poetry]
name = "license-plate-reader-app"
version = "1.0.0"
description = ""
authors = ["Business-Data-Wizard <49175856+Business-Wizard@users.noreply.github.com>"]
readme = "README.md"
packages = [{include = "src"}]
[tool.poetry.dependencies]
python = "~3.9"
flask = "~1.1.2"
matplotlib = "^3.7.1"
numpy = "^1.22.0"
opencv-python = "~4.4.0.46"
pandas = "~1.1.3"
scikit-learn = "~1.0.1"
seaborn = "~0.12.2"
tensorflow = "~2.7"
[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
[tool.black]
line-length = 100
target-version = ['py310']
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
show_error_codes = true
check_untyped_defs = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
select = ["E", "F", "W", "C90", "PL", "TRY", "RUF", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PT", "PTH", "PYI", "RET", "RSE", "SIM", "SLF", "TCH", "TID", "UP", "YTT", "ANN", "S", "Q", "T", "D", "N", "A", "B", "C", "C4", "I"]
ignore = ["E501", "D100", "D103", "D104", "D203", "D213", "PLR2004", "S101"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "C4", "D", "E", "F", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
line-length = 100
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".git-rewrite",
".mypy_cache",
".nox",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
]
[tool.ruff.mccabe]
max-complexity = 7
[tool.ruff.flake8-quotes]
docstring-quotes = "single"
inline-quotes = "single"
multiline-quotes = "single"