forked from Dentosal/sc2-techtree
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
48 lines (43 loc) · 1.17 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
[project]
name = "sc2-techtree"
version = "0.1.0"
description = ""
authors = [{ name = "BurnySc2", email = "[email protected]" }]
requires-python = ">=3.9, <3.13"
dependencies = [
"burnysc2>=7.0.3",
"loguru>=0.7.3",
"toml>=0.10.2",
]
[dependency-groups]
dev = ["pyre-check>=0.9.23", "pyright>=1.1.391", "ruff>=0.8.4"]
[tool.yapf]
based_on_style = "pep8"
column_limit = 120
split_arguments_when_comma_terminated = true
dedent_closing_brackets = true
allow_split_before_dict_value = false
[tool.ruff]
target-version = 'py310'
line-length = 120
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = [
"C4", # flake8-comprehensions
"E", # Error
"F", # pyflakes
"BLE", # flake8-blind-except
# "I", # isort
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"W", # Warning
"Q", # flake8-quotes
"YTT", # flake8-2020
"UP", # pyupgrade
# "A", # flake8-builtins
]
# Allow Pydantic's `@validator` decorator to trigger class method treatment.
pep8-naming.classmethod-decorators = ["pydantic.validator", "classmethod"]