-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (154 loc) · 5.88 KB
/
pyproject.toml
File metadata and controls
198 lines (154 loc) · 5.88 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[project]
name = "carlogtt-python-library"
description = "A versatile Python library offering a collection of reusable utility functions designed to streamline common programming tasks and promote code reusability across various projects."
readme = "README.md"
license = "MIT"
authors = [
{name = "Carlo Gatti", email = "carlo.gatti@me.com"}
]
requires-python = ">= 3.9"
dynamic = ["version"]
dependencies = [
# Runtime dependencies
"boto3",
"awscrt",
"cryptography",
"mysql-connector-python",
"redis",
"requests",
"selenium",
# Type checkin dependencies
"typing-extensions",
"types-cryptography",
"types-requests",
"types-redis",
"types-psycopg2",
"boto3-stubs",
"mypy-boto3",
"mypy-boto3-cloudfront",
"mypy-boto3-dynamodb",
"mypy-boto3-ec2",
"mypy-boto3-kms",
"mypy-boto3-lambda",
"mypy-boto3-s3",
"mypy-boto3-secretsmanager",
]
[project.urls]
Homepage = "https://github.com/64rl0/CarlogttPythonLibrary"
[project.optional-dependencies]
postgres = [
"psycopg2",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["**/*"]
[tool.black]
# black docs
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html
# How many characters per line to allow. The default is 88.
line-length = 100
# Black normalize ' to ". Setting to 1 so that strings are left
# unchanged instead.
skip-string-normalization = 1
# Enable potentially disruptive style changes that may be added to
# Black's main functionality in the next major release.
preview = true
unstable = true
[tool.isort]
# isort docs
# https://pycqa.github.io/isort/docs/configuration/options.html
# The max length of an import line (used for wrapping long imports).
line_length = 100
# Use parentheses for line continuation on length limit instead of
# backslashes. NOTE: This is separate from wrap modes, and only affects
# how individual lines that are too long get continued, not sections of
# multiple imports.
use_parentheses = true
# What sections isort should display imports for and in what order.
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'MYLIB', 'FIRSTPARTY', 'LOCALFOLDER']
# Multi line output (0-grid, 1-vertical, 2-hanging, 3-vert-hanging,
# 4-vert-grid, 5-vert-grid-grouped, 6-deprecated-alias-for-5, 7-noqa,
# 8-vertical-hanging-indent-bracket,
# 9-vertical-prefix-from-module-import,
# 10-hanging-indent-with-parentheses).
multi_line_output = 3
# A mapping of import sections to import heading comments that should
# show above them.
import_headings = {future="Special Imports", stdlib="Standard Library Imports", thirdparty="Third Party Library Imports", mylib ="My Library Imports", firstparty="Local Application Imports", localfolder="Local Folder (Relative) Imports"}
# Inserts a blank line before a comment following an import.
ensure_newline_before_comments = true
# Includes a trailing comma on multi line imports that include
# parentheses.
include_trailing_comma = true
# Split imports list followed by a trailing comma into
# VERTICAL_HANGING_INDENT mode. This follows Black style magic comma.
split_on_trailing_comma = true
# Causes all non-indented imports to float to the top of the file
# having its imports sorted (immediately below the top of file comment).
# This can be an excellent shortcut for collecting imports every once
# in a while when you place them in the middle of a file to avoid context
# switching.
float_to_top = true
# If enabled, isort will apply import headings to indended imports the
# same way it does unindented ones.
indented_import_headings = false
# Force all imports to be sorted alphabetically within a section.
# force_alphabetical_sort_within_sections = true
# If enabled, isort will strip comments that exist within import lines.
# ignore_comments = true
# Add an explicitly defined source path (modules within src paths have
# their imports automatically categorized as first_party). Glob expansion
# (* and **) is supported for this option.
src_paths = ['src/*']
# Force isort to recognize a module as part of Python's internal future
# compatibility libraries. WARNING: this overrides the behavior of
# future handling and therefore can result in code that can't execute.
known_future_library = ['__future__']
# Extra modules to be included in the list of ones in Python's standard
# library.
extra_standard_library = []
# Force isort to recognize a module as being part of a third party
# library.
known_third_party = []
# known_OTHER is how imports of custom sections are defined.
# OTHER is a placeholder for the custom section name.
known_mylib = ['carlogtt_library', 'carlogtt_python_library']
# Force isort to recognize a module as being part of the current python
# project.
known_first_party = []
# Force isort to recognize a module as being a local folder. Generally,
# this is reserved for relative imports (from . import module).
known_local_folder = []
[tool.mypy]
# mypy docs
# https://mypy.readthedocs.io/en/latest/config_file.html
# Enables the type-checker on the interior of functions without type
# annotations.
check_untyped_defs = true
# Generate a warning when returning a value with type Any from a function
# declared with a non-Any return type.
warn_return_any = true
# Treat parameters with a None default value as having an implicit
# optional type (T | None).
implicit_optional = false
# Displaying specific error codes makes it easier to silence specific
# errors.
show_error_codes = true
# Show source code snippets and location markers in error messages.
pretty = true
# Suppresses errors about packages which do not implement type-hint
# sharing.
ignore_missing_imports = true
# Warns about unneeded '# type: ignore' comments.
warn_unused_ignores = false
[tool.pytest.ini_options]
addopts = "-vvv --color=yes --durations=5"
testpaths = [
"test",
"tests",
"integration",
]