-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
141 lines (127 loc) · 3.36 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[project]
name = "pyratings"
version = "0.6.1"
description = "Working with credit ratings, professionally and efficiently"
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [
{name = "HSBC", email = "[email protected]"},
]
keywords = ["ratings", "credit ratings", "rating scores"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
]
dependencies = [
"numpy>=1.20.0",
"pandas>=1.0.0",
]
[project.urls]
Homepage = "https://hsbc.github.io/pyratings/"
Repository = "https://github.com/hsbc/pyratings"
BugTracker = "https://github.com/hsbc/pyratings/issues?q=label%3Abug+"
Documentation = "https://hsbc.github.io/pyratings/"
Changelog = "https://github.com/hsbc/pyratings/blob/main/CHANGELOG.md"
[tool.pdm]
[tool.pdm.dev-dependencies]
doc = [
"jupyter>=1.0.0",
"mkdocs-jupyter>=0.22.0",
"mkdocs-material>=8.5.11",
"mkdocstrings[python]>=0.19.1",
"openpyxl>=3.0.10",
]
lint = [
"black[jupyter]>=22.12.0",
"pre-commit>=3.0.0",
"ruff>=0.0.252",
]
misc = [
"python-kacl>=0.3.4",
]
test = [
"nox>=2022.11.21",
"pytest-cov>=4.0.0",
"pytest>=7.2.1",
"xdoctest>=1.1.0",
]
[tool.ruff]
select = [
"F", # Pyflakes
"E", "W", # Pycodestyle
"I", # isort
"N", # pep8-naming
"D", # docstring
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"F", # Pyflakes
"E", "W", # Pycodestyle
"I", # isort
"N", # pep8-naming
"D", # docstring
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
".venv",
]
# Same as Black.
line-length = 88
target-version = "py311"
[tool.ruff.per-file-ignores]
"__init__.py" = ["D104"]
[tool.ruff.mccabe]
max-complexity = 15
[tool.ruff.pydocstyle]
convention = "numpy" # Accepts: "google", "numpy", or "pep257".
[tool.black]
target-version = ["py39", "py310", "py311"]
include = '\.pyi?$'
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER"
[build-system]
requires = ["pdm-pep517>=1.0"]
build-backend = "pdm.pep517.api"