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
|
[project]
name = "uuid-extension"
version = "0.2.0"
description = "UUID7 Extension for Python"
readme = "README.md"
authors = [{ name = "Markus Feiks", email = "pypi.packages@feyx.de" }]
requires-python = ">=3.8"
dependencies = []
[dependency-groups]
dev = ["loguru>=0.7.3", "pytest>=8.3.5"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# PYTEST SETTINGS
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--verbose"
# RUFF SETTINGS
[tool.ruff]
# Target the oldest supported version in editors and default CLI
target-version = "py38"
# formatting
line-length = 80
indent-width = 4
# This file is not UTF-8
extend-exclude = []
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
ignore = ["F401", "S101", "S311"]
# For all rules see: https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-exception
"C4", # flake8-comprehensions
"COM", # #flake8-commas-com
"E", # pycodestyle Error
"EM", # flake8-errmsg
"F", # pyflakes
"FIX", # flake8-fixme
"F404", # late-future-import
"F811", # redefined-while-unused
"FA", # flake8-future-annotations
"FLY", # static-join-to-f-string
"G", # flake8-logging-format
"I", # isort
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PYI", # flake8-pyi
"RET", # flake8-return
"RSE", # flake8-raise
"S", # flake8-bandit
"TC", # flake8-type-checking
# "UP", # pyupgrade
"W", # pycodestyle Warning
"YTT", # flake8-2020
# "ANN", # flake8-annotations
# "FBT", # flake8-boolean-trap (FBT)
]
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.isort]
combine-as-imports = false
split-on-trailing-comma = true
detect-same-package = false
|