-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (86 loc) · 2.15 KB
/
pyproject.toml
File metadata and controls
99 lines (86 loc) · 2.15 KB
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
90
91
92
93
94
95
96
97
98
99
[project]
name = "ipper"
version = "0.2.0"
description = "A hub for Open Source Software Improvement Proposals"
authors = [
{ name = "Thomas Cooper", email = "code@tomcooper.dev" }
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"requests>=2.32.3",
"beautifulsoup4>=4.10.0",
"pandas>=2.2.3",
"Jinja2>=3.1.4",
"jira>=3.8.0",
"python-dateutil>=2.9.0.post0",
"rapidfuzz>=3.0.0",
]
[dependency-groups]
dev = [
"ipython>=8.29.0",
"mypy>=1.14.0",
"types-requests>=2.32.0.20241016",
"ipdb>=0.13.13",
"pandas-stubs>=2.2.3.241126",
"types-beautifulsoup4>=4.12.0.20241020",
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"freezegun>=1.5.0",
"ruff>=0.8.0",
# Keeping these for now, can remove after Ruff is validated:
"pylint>=3.3.3",
"black>=24.10.0",
"types-python-dateutil>=2.9.0.20260124",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
# Target Python 3.12+
target-version = "py312"
# Same line length as Black
line-length = 88
# Exclude common directories
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
"cache",
"site_files",
"htmlcov",
]
[tool.ruff.lint]
# Enable rule sets
select = [
"E", # pycodestyle errors
"F", # Pyflakes (includes unused imports F401)
"B", # flake8-bugbear (common bugs)
"I", # isort (import sorting)
"UP", # pyupgrade (modern Python idioms)
"SIM", # simplify (code simplifications)
"C4", # flake8-comprehensions
]
# Ignore specific rules
ignore = [
"E501", # Line too long (handled by formatter)
]
# Allow auto-fixing for all enabled rules
fixable = ["ALL"]
unfixable = []
# Per-file rule ignores
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py files
"tests/**/*.py" = ["S101"] # Allow asserts in tests
[tool.ruff.format]
# Use double quotes (like Black)
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Respect magic trailing commas
skip-magic-trailing-comma = false
# Auto-detect line endings
line-ending = "auto"