-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (45 loc) · 1.5 KB
/
pyproject.toml
File metadata and controls
55 lines (45 loc) · 1.5 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
[tool.poetry]
name = "monosurf"
version = "0.3.0"
description = "Python API wrapper for the mono.surf payment system."
authors = ["Mykola Solodukha <mykola@mono.surf>"]
readme = "README.md"
license = "MIT"
packages = [
{ include = "monosurf" },
]
[tool.poetry.dependencies]
python = "^3.12"
httpx = "^0.27.0"
pydantic = {extras = ["email"], version = "^2.8.2"}
pydantic-settings = "^2.4.0"
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
isort = "^5.13.2"
pylint = "^3.2.6"
pydocstyle = {extras = ["toml"], version = "^6.3.0"}
[tool.black]
line-length = 120
target-version = ["py312"]
verbose = false
skip-string-normalization = false
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["monosurf"]
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
known_first_party = ["monosurf"]
filter_files = true
force_alphabetical_sort_within_sections = true
[tool.pylint.main]
max-line-length = 120 # the maximum length of a line
disable = ["fixme"] # ignore TODOs and FIXMEs
# Use the `.` for the `source-roots` because we use relative imports in the code (so that the `pypi` module works)
#source-roots = ["monosurf"] # the source roots for pylint to check
source-roots = ["."] # the source roots for pylint to check
ignore-patterns = ["tests", "migrations"] # ignore the tests and migrations folders
[tool.pydocstyle]
match-dir = "(?!tests|migrations).*" # exclude the tests and migrations folders
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"