Skip to content

Commit 55eaf56

Browse files
committed
Remove dependency on WTForms and fix a misleading docstring
1 parent b79cf15 commit 55eaf56

2 files changed

Lines changed: 19 additions & 30 deletions

File tree

common/auth/keys/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def extract_key(value: str) -> AuthenticationKeyParts:
9494
Given an authenticaton key, extract the key id and passphrase.
9595
9696
An authentication key is always 2 components of identical length. A UUID representing the primary key for the API
97-
key, and the actual passphrase which is also a UUID.
97+
key, and the actual passphrase which is a string of random characters.
9898
"""
9999
key_bytes: bytes = b64decode(value)
100100
key_text = key_bytes.decode("utf-8")

pyproject.toml

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
[build-system]
2-
requires = [
3-
"setuptools ~= 65.3",
4-
"wheel",
5-
"build"
6-
]
2+
requires = ["setuptools ~= 65.3", "wheel", "build"]
73
build-backend = "setuptools.build_meta"
84

95
[project]
106
name = "Observability"
117
version = "2.0.0"
128
description = "DataOops Observability"
139
urls = { "homepage" = "https://datakitchen.io" }
14-
authors = [
15-
]
10+
authors = []
1611
license = { "file" = "LICENSE" }
1712
readme = "README.md"
1813
classifiers = [
@@ -45,7 +40,6 @@ dependencies = [
4540
"requests_extensions~=1.1.3",
4641
"tomli==2.0.1",
4742
"Werkzeug==2.2.3",
48-
"WTForms==3.0.1",
4943
"yoyo-migrations~=8.2.0",
5044
]
5145

@@ -66,12 +60,7 @@ dev = [
6660
"types-requests==2.28.11.15",
6761
"types-setuptools==65.3.0",
6862
]
69-
build = [
70-
"build",
71-
"setuptools~=65.3",
72-
"wheel",
73-
"trove-classifiers",
74-
]
63+
build = ["build", "setuptools~=65.3", "wheel", "trove-classifiers"]
7564

7665
[project.entry-points.console_scripts]
7766
cli = "cli.__main__:main"
@@ -91,18 +80,18 @@ include-package-data = true
9180
# see the important note for why we glob. TL;DR: Otherwise you don't get submodules
9281
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-simple-packages
9382
include = [
94-
"agent_api*",
95-
"observability_api*",
96-
"common*",
97-
"conf*",
98-
"event_api*",
99-
"cli*",
100-
"rules_engine*",
101-
"run_manager*",
102-
"scheduler*",
103-
"subcommand*",
83+
"agent_api*",
84+
"observability_api*",
85+
"common*",
86+
"conf*",
87+
"event_api*",
88+
"cli*",
89+
"rules_engine*",
90+
"run_manager*",
91+
"scheduler*",
92+
"subcommand*",
10493
]
105-
exclude = [ "*.tests", "tests*", "deploy*", "scripts*", "testlib*"]
94+
exclude = ["*.tests", "tests*", "deploy*", "scripts*", "testlib*"]
10695

10796
[tool.pytest.ini_options]
10897
minversion = "7.0"
@@ -123,7 +112,7 @@ markers = [
123112
]
124113
filterwarnings = [
125114
# remove when resolved: https://github.com/marshmallow-code/apispec/issues/739
126-
'ignore:distutils Version classes are deprecated:DeprecationWarning:apispec'
115+
'ignore:distutils Version classes are deprecated:DeprecationWarning:apispec',
127116
]
128117

129118
# see: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
@@ -289,7 +278,7 @@ exclude = '''
289278

290279
# See: https://coverage.readthedocs.io/en/latest/config.html
291280
[tool.coverage.run]
292-
branch=true
281+
branch = true
293282
# Every time there is a new top-level module, this will need to be expanded.
294283
source = [
295284
"agent_api",
@@ -306,7 +295,7 @@ source = [
306295
# We don't need to report the coverage lines on tests
307296
omit = ["*/*tests/*"]
308297
# This skips __init__.py and other empty files.
309-
skip_empty=true
298+
skip_empty = true
310299

311300
[tool.ruff]
312301
target-version = "py310"
@@ -317,5 +306,5 @@ line-length = 120
317306

318307
[tool.ruff.extend-per-file-ignores]
319308
"*/tests/*" = [
320-
"F811", # Shadow unused imports; pytest fixtures
309+
"F811", # Shadow unused imports; pytest fixtures
321310
]

0 commit comments

Comments
 (0)