-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (62 loc) · 1.14 KB
/
pyproject.toml
File metadata and controls
68 lines (62 loc) · 1.14 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
[project]
name = "your_cool_project"
version = "1.1.1"
description = "Example repository demonstrating a modern Python project setup"
readme = "README.md"
requires-python = ">=3.12"
license-files = { paths = ["LICENSE"] }
authors = [
{ name = "Your Name Here", email = "your@name.com" }
]
dependencies = [
"coloredlogs~=15.0",
"pre-commit~=4.3",
"pytest~=8.4",
"ruff~=0.13"
]
# Below are settings for different tools we use for testing and linting
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
pythonpath = [
"src"
]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-eradicate/eradicate
"ERA",
# isort
"I",
# pep8-naming
"N",
# flake8-pie
"PIE",
# pygrep
"PGH",
# ruff checks
"RUF",
# flake8-simplify
"SIM",
# flake8-type-checking
"TCH",
# flake8-tidy-imports
"TID",
# pyupgrade
"UP",
]
ignore = [
# whitespace-before-punctuation
"E203",
]