-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
92 lines (83 loc) · 2.12 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
92
[tool.poetry]
name = "nthp_api"
version = "0.1.8"
description = "This is a CLI tool for building the Nottingham New Theatre's History Project content database."
authors = ["Will Pimblett <will@wjdp.uk>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/newtheatre/nthp-api"
repository = "https://github.com/newtheatre/nthp-api"
[tool.poetry.scripts]
nthp = "nthp_api.cli:cli"
nthp_api = "nthp_api.cli:cli"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.1.1"
python-frontmatter = "^1.0.0"
peewee = "^3.16.2"
python-slugify = "^8.0.1"
pyhumps = "^3.8.0"
click = "^8.1.3"
coloredlogs = "^15.0.1"
pydantic-collections = "^0.5.0"
Markdown = "^3.4.3"
PyYAML = "^6.0"
httpx = "^0.24.1"
pydantic-settings = "^2.0.2"
[tool.poetry.dev-dependencies]
pytest = "^7.3.1"
pytest-vcr = "^1.0.2"
mypy = "^1.3.0"
pytest-depends = "^1.0.1"
types-python-slugify = "^8"
types-Markdown = "^3.3.7"
freezegun = "^1.2.2"
types-PyYAML = "^6.0.1"
pytest-asyncio = "^0.21.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.11"
files = "nthp_api"
pretty = true
ignore_missing_imports = true
plugins = [ "pydantic.mypy" ]
[tool.pytest.ini_options]
asyncio_mode = "strict"
[tool.ruff]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"C90", # mccabe, complexity
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
# "DTZ", # flake8-datetimez
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PL", # pylint
"TRY", # tryceratops
"RUF", # ruff special rules
]
ignore = [
"TRY003", # Permit long exception messages
]
# Higher than black to give wiggle room
line-length = 120
[tool.ruff.per-file-ignores]
"bin/*" = ["INP001"]
"dev/*" = ["INP001"]
"*/fixtures/*" = ["E501"]