-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (89 loc) · 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (89 loc) · 2.31 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
100
101
102
103
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "HazeWorldBot"
version = "1.0.0"
description = "A Discord bot for Haze World community with moderation, Rocket League stats, and more."
authors = [
{name = "inventory69", email = "admin@haze.world"},
]
dependencies = [
"discord.py",
"python-dotenv",
"aiohttp",
"requests",
"bs4",
"uuid",
"rich",
"openai",
]
requires-python = ">=3.8"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pymodules__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 120
indent-width = 4
# Assume Python 3.8+
target-version = "py38"
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["HazeWorldBot"]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and imports.
"tests/**/*" = ["PLR2004", "S101"]
"__init__.py" = ["F401"]
# Ignore line length in files with long strings (embeds, prompts)
"Cogs/Changelog.py" = ["E501"]
"Cogs/Leaderboard.py" = ["E501"]
"Cogs/ModPerks.py" = ["E501"]
"Cogs/Preferences.py" = ["E501"]
"Cogs/RocketLeague.py" = ["E501"]
"Cogs/RoleInfo.py" = ["E501"]
"Cogs/TicketSystem.py" = ["E501"]
"Cogs/Welcome.py" = ["E501"]
"Main.py" = ["E402"] # Imports after logging setup
"start_with_api.py" = ["E402"] # Imports after logging setup