-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
166 lines (149 loc) · 3.27 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[tool.poetry]
name = "datetime-helpers"
version = "0.0.13"
description = "Util for working with date and datetime objects"
authors = ["rikhilrai"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/DeveloperRSquared/datetime-helpers"
repository = "https://github.com/DeveloperRSquared/datetime-helpers"
keywords=[
"python",
"python3",
"date",
"datetime",
"development",
]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
include = [
"LICENSE",
]
packages = [
{ include = "datetime_helpers", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.7"
importlib-metadata = "^4.2.0"
http-exceptions = "^0.2.6"
[tool.poetry.dev-dependencies]
mypy = "^0.931"
black = "^21.12b0"
flake8 = "^4.0.1"
isort = "^5.10.1"
pre-commit = "^2.17.0"
pytest = "^6.2.5"
pylint = "^2.12.2"
autoflake = "^1.4"
pytest-cov = "^3.0.0"
freezegun = "^1.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
line_length = 200
force_single_line = true
skip = [
"migrations",
"versions",
]
[tool.black]
line-length = 200
skip-string-normalization = true
include = '.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.env
| _build
| buck-out
| build
| dist
| node_modules
)/
'''
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--capture=no --log-cli-level=INFO --cov=src/datetime_helpers/ --cov-report term-missing --cov-report=xml --cov-fail-under=90 --cov-config=./.coveragerc src/tests/"
testpaths = [
"tests",
]
xfail_strict = true
[tool.pylint.master]
ignore = [
"CVS",
"versions",
"migrations",
]
ignore-patterns = [
"versions"
]
[tool.pylint.basic]
good-names = [
"db",
"id",
"df",
"T",
"dt",
]
[tool.pylint.similarities]
min-similarity-lines = 20
ignore-comments = "yes"
ignore-docstrings = "yes"
ignore-imports = "yes"
[tool.pylint.messages_control]
disable = [
"missing-module-docstring",
"missing-function-docstring",
"too-many-locals",
"too-many-arguments",
"too-few-public-methods",
"logging-fstring-interpolation",
"missing-class-docstring",
"line-too-long",
"fixme",
"too-many-statements",
"too-many-branches",
"too-many-nested-blocks",
"too-many-instance-attributes",
"too-many-boolean-expressions",
]
extension-pkg-whitelist = "pydantic"
[tool.pylint.typecheck]
ignored-modules = [
"alembic.op",
"alembic.context",
]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
# Warnings
warn_return_any = true
# warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
# Miscellaneous
strict_equality = true
# Error messages
show_error_context = true
show_column_numbers = true
show_error_codes = true
# pretty = true
# show_absolute_path = true