-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
80 lines (74 loc) · 2.22 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "example-project"
dynamic = ["version"]
description = "Demonstrate the micromamba devcontainer"
authors = [
{ name = "Ben Mares", email = "[email protected]" },
]
license = "MIT"
dependencies = [
"cowsay >=5.0",
]
requires-python = ">=3.10,<3.13"
[tool.hatch.version]
path = "python/example_project/__init__.py"
[tool.hatch.build.targets.wheel]
packages = [
"python/example_project",
]
[project.scripts]
example-hello-world = "example_project.main:hello"
[tool.ruff]
line-length = 88
select = [
# Defaults:
"E4",
"E7",
"E9",
"F",
# Custom:
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"C4", # flake8-comprehensions
"C90", # mccabe
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # Ruff-specific rules
"TID", # flake8-tidy-imports
"BLE", # flake8-blind-except
"PTH", # flake8-pathlib
"A", # flake8-builtins
]
ignore = [
"C408", # unnecessary-collection-call (allow dict(a=1, b=2); clarity over speed!)
"D203", # one-blank-line-before-class (must ignore this or D211)
"D213", # multi-line-summary-second-line (must ignore this or D212)
"D415", # ends-in-punctuation (redundant with D400 ends-in-period)
# The following list is recommended to disable these when using ruff's formatter.
# (Not all of the following are actually enabled.)
"W191", # tab-indentation
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"D206", # indent-with-spaces
"D300", # triple-single-quotes
"Q000", # bad-quotes-inline-string
"Q001", # bad-quotes-multiline-string
"Q002", # bad-quotes-docstring
"Q003", # avoidable-escaped-quote
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
]
target-version = "py310"
show-fixes = true
show-source = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"