-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (78 loc) · 2.29 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
[project]
name = "listdiff"
version = "1.0.3"
description = "Diff 2 python lists using a given key"
maintainers = [
{ name = "Rehan Khwaja", email = "rehan@khwaja.name" }
]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dependencies = []
[project.urls]
Homepage = "https://github.com/rkhwaja/pylistdiff"
[tool.poe.tasks]
lint = "ruff check src tests"
test = "pytest"
[tool.poe.tasks.test-with-coverage]
shell = """
pytest --cov=src/listdiff || exit 1
coverage xml
"""
[tool.ruff]
line-length = 200
lint.ignore = [
"ANN001", # missing-type-function-argument
"ANN202", # missing-return-type-private-function
"ANN401", # any-type
"D100", # undocumented-public-module
"D203", # one-blank-line-before-class
"D205", # blank-line-after-summary
"D206", # indent-with-spaces
"D211", # blank-line-before-class
"D212", # multi-line-summary-first-line
"D400", # ends-in-period
"D401", # non-imperative-mood
"D403", # first-line-capitalized
"D415", # ends-in-punctuation
"N802", # invalid-function-name
"I", # isort checks
"N803", # invalid-argument-name
"N806", # non-lowercase-variable-in-function
"PT013", # requires `import pytest`
"S101", # Disallows use of assert
"TCH003", # Requires use of TYPE_CHECKING
"W191", # Checks for indentation that uses tabs
]
lint.select = ["ALL"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = [
"ANN201", # Checks that public functions and methods have return type annotations
"D103", # Checks for undocumented public function definitions
"INP001", # Checks for packages that are missing an __init__.py file
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
[tool.pytest.ini_options]
pythonpath = ["src"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
dev-dependencies = [
"pytest>=7.1",
"pytest-cov>=2.9.0",
"poethepoet>=0.16.4",
"ruff>=0.3.1",
]