-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
91 lines (77 loc) · 1.87 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
81
82
83
84
85
86
87
88
89
90
91
[project]
name = "astrobotany"
description = "🌱 A community garden over the Gemini protocol"
requires-python = ">=3.10"
authors = [{name = "Michael Lazar", email = "michael@mozz.us"}]
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
dependencies = [
"jetforce",
"peewee",
"jinja2",
"faker",
"bcrypt",
"emoji>=2",
"MIDIUtil",
]
[project.optional-dependencies]
dev = [
"pytest",
"black",
"mypy",
"freezegun",
"types-emoji",
"types-freezegun",
"build",
]
[project.scripts]
astrobotany = "astrobotany.server:main"
astrobotany-migrate = "astrobotany.migrations:main"
astrobotany-tasks = "astrobotany.tasks:main"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "astrobotany.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
astrobotany = [
"*.psci",
"*.txt",
"*.gmi",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--import-mode=importlib", "--verbose"]
[tool.black]
line-length = 100
[tool.mypy]
python_version = "3.10"
files = ["src", "tests", "scripts"]
[[tool.mypy.overrides]]
module = "midiutil,playhouse,peewee"
ignore_missing_imports = true
[tool.ruff]
src = ["src", "tests", "scripts"]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PT", # flake8-pytest-style
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
ignore = [
"E501", # Line length is enforced by black
"PT012", # Allow pytest.raises with context managers
"E712", # == False comparison has special meaning in Peewee
]
line-length = 100
[tool.ruff.isort]
known-first-party = ["astrobotany"]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"