This is a very basic class without many helper functions added yet Add to the CoreLibs so when we develop it further it can be used by all projects
70 lines
1.7 KiB
TOML
70 lines
1.7 KiB
TOML
# MARK: Project info
|
|
[project]
|
|
name = "corelibs"
|
|
version = "0.28.0"
|
|
description = "Collection of utils for Python scripts"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"cryptography>=46.0.3",
|
|
"jmespath>=1.0.1",
|
|
"jsonpath-ng>=1.7.0",
|
|
"psutil>=7.0.0",
|
|
"requests>=2.32.4",
|
|
]
|
|
# set this to disable publish to pypi (pip)
|
|
# classifiers = ["Private :: Do Not Upload"]
|
|
|
|
# MARK: build target
|
|
[[tool.uv.index]]
|
|
name = "egra-gitea"
|
|
url = "https://git.egplusww.jp/api/packages/PyPI/pypi/simple/"
|
|
publish-url = "https://git.egplusww.jp/api/packages/PyPI/pypi"
|
|
explicit = true
|
|
|
|
# MARK: build system
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"deepdiff>=8.6.1",
|
|
"pytest>=8.4.1",
|
|
"pytest-cov>=6.2.1",
|
|
]
|
|
|
|
# MARK: Python linting
|
|
[tool.pyright]
|
|
typeCheckingMode = "strict"
|
|
reportMissingImports = "information"
|
|
reportMissingTypeStubs = "information"
|
|
reportUnknownMemberType = "information"
|
|
[tool.ruff]
|
|
line-length = 120
|
|
[tool.black]
|
|
# set 10 short for better formatting
|
|
line-length = 110
|
|
# to avoid " ... " " ... " string sets
|
|
# experimental-string-processing = true
|
|
preview = true
|
|
enable-unstable-feature = ["string_processing"]
|
|
[tool.pylint.format]
|
|
max-line-length = 120
|
|
[tool.pylint.miscellaneous]
|
|
notes = ["FIXME", "TODO"]
|
|
notes-rgx = '(FIXME|TODO)(\((TTD-|#)\[0-9]+\))'
|
|
[tool.flake8]
|
|
max-line-length = 120
|
|
ignore = [
|
|
"E741", # ignore ambigious variable name
|
|
"W504" # Line break occurred after a binary operator [wrong triggered by "or" in if]
|
|
]
|
|
[tool.pylint.MASTER]
|
|
# this is for the tests/etc folders
|
|
init-hook='import sys; sys.path.append("src/")'
|
|
[tool.pytest.ini_options]
|
|
testpaths = [
|
|
"tests",
|
|
]
|