add new endpoint to select OH equipment
parent
04f99c6be2
commit
9261e5341b
@ -1,153 +1,32 @@
|
|||||||
[tool.black]
|
[tool.poetry]
|
||||||
target-version = ['py310']
|
name = "optimumohservice"
|
||||||
line-length = 120
|
version = "0.1.0"
|
||||||
skip-string-normalization = true
|
description = ""
|
||||||
skip-magic-trailing-comma = true
|
authors = ["Cizz22 <cisatraa@gmail.com>"]
|
||||||
force-exclude = '''
|
license = "MIT"
|
||||||
/(
|
readme = "README.md"
|
||||||
| docs
|
|
||||||
| setup.py
|
[tool.poetry.dependencies]
|
||||||
)/
|
python = "^3.11"
|
||||||
'''
|
fastapi = { extras = ["standard"], version = "^0.115.4" }
|
||||||
|
sqlalchemy = "^2.0.36"
|
||||||
[tool.isort]
|
httpx = "^0.27.2"
|
||||||
py_version = 310
|
pytest = "^8.3.3"
|
||||||
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
|
faker = "^30.8.2"
|
||||||
default_section = "THIRDPARTY"
|
factory-boy = "^3.3.1"
|
||||||
known_third_party = []
|
sqlalchemy-utils = "^0.41.2"
|
||||||
known_first_party = []
|
slowapi = "^0.1.9"
|
||||||
known_local_folder = []
|
uvicorn = "^0.32.0"
|
||||||
# style: black
|
pytz = "^2024.2"
|
||||||
multi_line_output = 3
|
sqlalchemy-filters = "^0.13.0"
|
||||||
include_trailing_comma = true
|
asyncpg = "^0.30.0"
|
||||||
force_grid_wrap = 0
|
requests = "^2.32.3"
|
||||||
use_parentheses = true
|
pydantic = "^2.10.2"
|
||||||
ensure_newline_before_comments = true
|
temporalio = "^1.8.0"
|
||||||
line_length = 120
|
pandas = "^2.2.3"
|
||||||
split_on_trailing_comma = true
|
psycopg2-binary = "^2.9.10"
|
||||||
lines_after_imports = 2
|
|
||||||
force_single_line = true
|
|
||||||
skip_glob = ["docs/*", "setup.py"]
|
[build-system]
|
||||||
filter_files = true
|
requires = ["poetry-core"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
[tool.ruff]
|
|
||||||
target-version = "py310"
|
|
||||||
line-length = 120
|
|
||||||
indent-width = 4
|
|
||||||
extend-exclude = ["docs", "test", "tests"]
|
|
||||||
|
|
||||||
[tool.ruff.lint]
|
|
||||||
select = ["F", "E"]
|
|
||||||
extend-select = ["W", "C90", "I", "N", "B", "A", "C4", "PERF", "RUF"]
|
|
||||||
ignore = []
|
|
||||||
fixable = ["ALL"]
|
|
||||||
unfixable = []
|
|
||||||
preview = true
|
|
||||||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
|
||||||
force-single-line = true
|
|
||||||
force-sort-within-sections = false
|
|
||||||
lines-after-imports = 2
|
|
||||||
known-first-party = []
|
|
||||||
known-local-folder = []
|
|
||||||
known-third-party = []
|
|
||||||
section-order = [
|
|
||||||
"future",
|
|
||||||
"standard-library",
|
|
||||||
"third-party",
|
|
||||||
"first-party",
|
|
||||||
"local-folder",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.ruff.lint.mccabe]
|
|
||||||
max-complexity = 24
|
|
||||||
|
|
||||||
[tool.ruff.lint.pycodestyle]
|
|
||||||
ignore-overlong-task-comments = true
|
|
||||||
|
|
||||||
[tool.ruff.lint.pydocstyle]
|
|
||||||
convention = "numpy"
|
|
||||||
|
|
||||||
[tool.ruff.lint.flake8-annotations]
|
|
||||||
allow-star-arg-any = true
|
|
||||||
ignore-fully-untyped = true
|
|
||||||
|
|
||||||
[tool.ruff.lint.pylint]
|
|
||||||
max-args = 5
|
|
||||||
max-branches = 12
|
|
||||||
max-locals = 15
|
|
||||||
max-statements = 50
|
|
||||||
|
|
||||||
[tool.ruff.format]
|
|
||||||
quote-style = "double"
|
|
||||||
indent-style = "space"
|
|
||||||
skip-magic-trailing-comma = false
|
|
||||||
line-ending = "auto"
|
|
||||||
preview = false
|
|
||||||
docstring-code-format = true
|
|
||||||
|
|
||||||
[tool.mypy]
|
|
||||||
# Platform configuration
|
|
||||||
python_version = "3.10"
|
|
||||||
# imports related
|
|
||||||
ignore_missing_imports = true
|
|
||||||
follow_imports = "silent"
|
|
||||||
# None and Optional handling
|
|
||||||
no_implicit_optional = false
|
|
||||||
strict_optional = false
|
|
||||||
# Configuring warnings
|
|
||||||
warn_unused_configs = true
|
|
||||||
warn_redundant_casts = true
|
|
||||||
warn_unused_ignores = true
|
|
||||||
warn_no_return = true
|
|
||||||
warn_unreachable = true
|
|
||||||
warn_return_any = false
|
|
||||||
# Untyped definitions and calls
|
|
||||||
check_untyped_defs = false
|
|
||||||
disallow_untyped_calls = false
|
|
||||||
disallow_untyped_defs = false
|
|
||||||
disallow_incomplete_defs = false
|
|
||||||
disallow_untyped_decorators = false
|
|
||||||
# Disallow dynamic typing
|
|
||||||
disallow_subclassing_any = false
|
|
||||||
disallow_any_unimported = false
|
|
||||||
disallow_any_expr = false
|
|
||||||
disallow_any_decorated = false
|
|
||||||
disallow_any_explicit = false
|
|
||||||
disallow_any_generics = false
|
|
||||||
# Miscellaneous strictness flags
|
|
||||||
allow_untyped_globals = true
|
|
||||||
allow_redefinition = true
|
|
||||||
local_partial_types = false
|
|
||||||
implicit_reexport = true
|
|
||||||
strict_equality = true
|
|
||||||
# Configuring error messages
|
|
||||||
show_error_context = false
|
|
||||||
show_column_numbers = false
|
|
||||||
show_error_codes = true
|
|
||||||
exclude = ["docs", "test", "tests"]
|
|
||||||
|
|
||||||
[tool.pyright]
|
|
||||||
pythonVersion = "3.10"
|
|
||||||
typeCheckingMode = "basic"
|
|
||||||
# enable subset of "strict"
|
|
||||||
reportDuplicateImport = true
|
|
||||||
reportInvalidStubStatement = true
|
|
||||||
reportOverlappingOverload = true
|
|
||||||
reportPropertyTypeMismatch = true
|
|
||||||
reportUntypedClassDecorator = false
|
|
||||||
reportUntypedFunctionDecorator = false
|
|
||||||
reportUntypedNamedTuple = false
|
|
||||||
reportUnusedImport = true
|
|
||||||
# disable subset of "basic"
|
|
||||||
reportGeneralTypeIssues = false
|
|
||||||
reportMissingModuleSource = false
|
|
||||||
reportOptionalCall = false
|
|
||||||
reportOptionalIterable = false
|
|
||||||
reportOptionalMemberAccess = false
|
|
||||||
reportOptionalOperand = false
|
|
||||||
reportOptionalSubscript = false
|
|
||||||
reportPrivateImportUsage = false
|
|
||||||
reportUnboundVariable = false
|
|
||||||
exclude = ["docs", "setup.py"]
|
|
||||||
|
|||||||
Loading…
Reference in New Issue