-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
112 lines (99 loc) · 2.57 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
[build-system]
requires = ["flit_core>=3.2"]
build-backend = "flit_core.buildapi"
[project]
name = "sat-utils"
version = "1.7.0"
authors = [
{ name="Ryan Semmler", email="[email protected]" },
{ name="Shawn Taylor", email="[email protected]" },
{ name="Jeremy Gibson", email="[email protected]"},
{ name="John Champion", email="[email protected]"}
]
description = "Contains a collection of shared utility functions"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
dependencies = [
"slack-sdk==3.27.1",
"requests==2.31.0",
"cx_Oracle==8.3.0",
"oracledb==2.0.1",
"pyodbc==5.1.0",
"requests_oauthlib==1.3.1",
"pydantic==2.6.4",
"pydantic[email]==2.6.4",
"elasticsearch==8.15.1"
]
[project.optional-dependencies]
dev = [
"pytest>=6.2.5, <7.0.0",
"pytest-mock>=3.10.0, <4.0.0",
"pytest-cov>=4.0.0, <5.0.0",
"coverage[toml]>=6.2",
"black>=23.3.0, <24.0.0",
"mypy>=1.2.0, <2.0.0",
"ruff==0.0.263",
"mkdocs-material>=9.1.6, <10.0.0",
"Pygments>=2.10.0, <3.0.0",
"bandit>=1.7.4, <2.0.0",
"pre-commit>=2.16.0, <3.0.0",
"isort>=5.10.1, <6.0.0",
"pyupgrade>=2.29.1, <3.0.0",
"jupyterlab>=3.2.0, <4.0.0",
"flit>=3.8.0, <4.0.0",
]
[project.urls]
"Homepage" = "https://github.com/ncstate-sat/sat-utils"
[tool.flit.module]
name = "sat"
[tool.black]
target-version = ["py310"]
line-length = 100
include = '\.pyi?$'
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F", "W", "I001"]
src = ["sat"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 100
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_context = true