-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (74 loc) · 2.75 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
85
86
87
88
89
[tool.poetry]
name = "lazy-type-hint"
version = "3.1.0"
description = "Automate type hint generation in a single line."
authors = ["Manuel Floriano Vázquez <[email protected]>"]
readme = "README.md"
[tool.poetry.urls]
Source = "https://github.com/mflova/lazy-type-hint"
[tool.poetry.dependencies]
python = "^3.9, <=3.12"
typing_extensions = "*"
[tool.poetry.group.dev.dependencies]
mypy = "^1.9.0"
ruff = "^0.3.2"
pytest = "7.4.4" # Testing
codespell = "2.2.6" # Spell checker
black = "23.12.1" # Autoformatter
pytest-clarity = "^1.0.1"
pyyaml = "*" # Used by the `check_code.py` script
types-pyyaml = "*"
filelock = "*"
pytest_xdist = "*" # Parallel execution tests
pandas = "*"
numpy = "*"
pyinstrument = "^4.6.2"
pytest-benchmark = "^4.0.0"
# Docs related
mkdocs-git-revision-date-localized-plugin = "^1.3.0"
mkdocs-material = "^9.5.50"
pymdown-extensions = "^10.14"
mkdocs-htmlproofer-plugin = "^1.3.0"
pytest-cov = "^6.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Config for developer tools
[tool.black]
line-length = 120
target-version = ["py39"]
include = 'lazy_type_hint/.*\.py$|tests/.*\.py$|check_code\.py$'
force_exclude = """test_files/"""
exclude = """test_files/"""
[tool.mypy]
ignore_missing_imports = true
exclude = ["build", "test_files"]
python_version = "3.9"
strict = true
explicit_package_bases = true
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = ["*.pyi", "test_files"]
lint.select = ["F", "E", "I", "N", "D", "UP", "YTT", "ASYNC", "BLE", "B", "A", "C4", "T10", "DJ", "EXE", "ISC", "ICN", "G", "PIE", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "INT", "ARG", "FIX", "PD", "PGH", "PL", "FLY", "NPY", "AIR", "RUF", "TCH"]
lint.ignore = ["SIM102", "EM101", "PLR", "D100", "D103", "C419", "D104", "D105", "D212", "PGH003", "RUF001", "D101", "PD901", "C405", "UP015", "PLC0414", "I001", "NPY002", "D102", "D107", "PT023", "B027", "UP007", "PIE808", "PD011", "SIM115", "PT006", "PT007", "F811", "UP006", "RET505", "PLW1510", "E731", "PLW2901", "SLF001", "RUF018"]
[tool.ruff.lint.pydocstyle]
convention = "google" # Docstring convention. Accepts: "google", "numpy", or "pep257".
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["E501", "ARG002"]
"tests/**/test_func_data_type_tree.py" = ["ARG005", "ARG001"]
"lazy_type_hint/**/lazy_type_hint*.py" = ["ARG002"]
[tool.codespell]
ignore-words-list = "bu" # Comma separated
[tool.pytest.ini_options]
markers = "integration"
# addopts = "-vv"
# addopts = ["-m", "not integration"]
# addopts = ["-n", "auto", "-m", "not integration"]
# addopts = ["-n", "auto"] # All tests
addopts = ["--cov", "lazy_type_hint"] # All tests
testpaths = ["tests"]
# Commands:
# poetry run pytest --benchmark-only