-
Notifications
You must be signed in to change notification settings - Fork 47
/
pyproject.toml
66 lines (51 loc) · 1.33 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
[tool.poetry]
name = "ask-astro"
version = "0.1.0"
description = ""
authors = ["Wei Lee <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"
[tool.poetry.group.docs.dependencies]
sphinx-book-theme = "^1.0.1"
rich = "^13.6.0"
myst-parser = "^2.0.0"
[tool.poetry.group.pre-commit.dependencies]
pre-commit = "^3.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py39']
[tool.ruff]
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
extend-select = [
"W", # pycodestyle warnings
"I", # isort
# "C90", # Complexity # TODO: enable this and the score below
# "B", # flake8-bugbear
"C", # flake8-comprehensions
# "ANN", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"T10", # flake8-debugger
"A", # flake8-builtins
"UP", # pyupgrade
]
extend-ignore = ["A002", "C901", "ISC001"]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
"__pycache__",
"docs/source/conf.py",
]
target-version = "py39"
fix = true
[tool.ruff.per-file-ignores]
# TODO: Decrease the complexity and fix the errors.
# [mccabe]
# max-complexity = 6
[tool.ruff.isort]
combine-as-imports = true