forked from razorpay/razorpay-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (111 loc) · 3.13 KB
/
pyproject.toml
File metadata and controls
125 lines (111 loc) · 3.13 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"
[project]
name = "razorpay-py"
version = "0.0.3"
description = "An improved Razorpay python SDK"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "Team Razorpay" },
{ name = "DotMyStyle (Sunserg Technologies Pvt Ltd.)" },
]
dependencies = ["requests >=2.20"]
keywords = ["razorpay", "payment", "gateway", "india"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://github.com/sunsergdev/razorpay-python"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["razorpay", "razorpay.resources"]
[tool.ruff]
line-length = 100
target-version = 'py312'
lint.task-tags = ["TODO"]
extend-exclude = ["**/tests/*"]
lint.select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C901", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # pyflakes
"I", # isort
"ISC003", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"T20", # flake8-print
"UP", # pyupgrade
"S", # flake8-bandit
]
lint.ignore = [
# Ignore missing docstring in __init__
"D107",
# TODO:
# "D400",
# "B006",
# Ignore due to formatting: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"Q000",
"Q001",
"Q002",
"W191"
]
[tool.ruff.lint.flake8-builtins]
builtins-allowed-modules = ["logging", "types", "selectors", "collections"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D"]
"**/tests/**.py" = ["D", "S311"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
known-first-party = ["razorpay"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.isort]
profile = "black"
atomic = true
import_heading_stdlib = "Standard library imports"
import_heading_firstparty = "Razorpay SDK imports"
import_heading_thirdparty = "Other third-party library imports"
import_heading_localfolder = "Razorpay SDK local imports"
known_first_party = ["razorpay"]
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"