c2cwsgiutils 6.2.0.dev76__py3-none-any.whl → 6.2.0.dev77__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -223,7 +223,7 @@ def check_screenshot(
223
223
  media = []
224
224
 
225
225
  if not Path(__file__).parent.joinpath("node_modules").exists():
226
- subprocess.run(["npm", "install"], cwd=Path(__file__).parent, check=True) # nosec
226
+ subprocess.run(["npm", "install"], cwd=Path(__file__).parent, check=True) # noqa: S603,S607
227
227
 
228
228
  image_file_basename = Path(expected_filename).stem
229
229
  if image_file_basename.endswith(".expected"):
@@ -231,8 +231,8 @@ def check_screenshot(
231
231
 
232
232
  result_folder = Path(result_folder).resolve()
233
233
  actual_filename = result_folder / f"{image_file_basename}.actual.png"
234
- subprocess.run( # nosec
235
- [
234
+ subprocess.run( # noqa: S603,S607,RUF100
235
+ [ # noqa: S607
236
236
  "node",
237
237
  "screenshot.js",
238
238
  f"--url={url}",
@@ -79,7 +79,7 @@ def _dump_memory_diff(request: pyramid.request.Request) -> list[Any]:
79
79
  try:
80
80
  if request.params.get("no_warmup", "0").lower() in ("1", "true", "on"):
81
81
  request.invoke_subrequest(sub_request)
82
- except Exception: # pylint: disable=broad-exception-caught
82
+ except Exception: # pylint: disable=broad-exception-caught # noqa: S110
83
83
  pass
84
84
 
85
85
  _LOG.debug("checking memory growth for %s", path)
@@ -181,8 +181,8 @@ def _get_alembic_version(alembic_ini_path: Path, name: str) -> str:
181
181
  env["PYTHONPATH"] = pythonpath
182
182
  dirname = alembic_ini_path.parent.resolve()
183
183
 
184
- out = subprocess.check_output( # nosec
185
- ["alembic", "--config", alembic_ini_path, "--name", name, "heads"],
184
+ out = subprocess.check_output( # noqa: S603,S607,RUF100
185
+ ["alembic", "--config", alembic_ini_path, "--name", name, "heads"], # noqa: S607
186
186
  cwd=dirname,
187
187
  env=env,
188
188
  ).decode("utf-8")
@@ -33,7 +33,7 @@ def _get_packages_version() -> dict[str, str]:
33
33
  result = {}
34
34
  with open(os.devnull, "w", encoding="utf-8") as devnull: # noqa: PTH123
35
35
  for comp in (
36
- subprocess.check_output(["python3", "-m", "pip", "freeze"], stderr=devnull) # nosec
36
+ subprocess.check_output(["python3", "-m", "pip", "freeze"], stderr=devnull) # noqa: S603,S607
37
37
  .decode()
38
38
  .strip()
39
39
  .split("\n")
@@ -25,7 +25,8 @@ def _parse_args() -> argparse.Namespace:
25
25
  def deprecated() -> None:
26
26
  """Run the command and print a deprecated notice."""
27
27
  warnings.warn(
28
- "c2cwsgiutils_test_print.py is deprecated; use c2cwsgiutils-test-print instead", stacklevel=2
28
+ "c2cwsgiutils_test_print.py is deprecated; use c2cwsgiutils-test-print instead",
29
+ stacklevel=2,
29
30
  )
30
31
  return main()
31
32
 
@@ -57,7 +57,7 @@ class _Repository:
57
57
  ],
58
58
  )
59
59
  _LOG.info(output)
60
- except Exception: # pylint: disable=broad-exception-caught
60
+ except Exception: # pylint: disable=broad-exception-caught # noqa: S110
61
61
  pass
62
62
 
63
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: c2cwsgiutils
3
- Version: 6.2.0.dev76
3
+ Version: 6.2.0.dev77
4
4
  Summary: Common utilities for Camptocamp WSGI applications
5
5
  License: BSD-2-Clause
6
6
  Keywords: geo,gis,sqlalchemy,orm,wsgi
@@ -1,7 +1,7 @@
1
1
  c2cwsgiutils/__init__.py,sha256=DecyA-tMmcT1jt2Bd7zEO9Yse8WcOKEEppxS6omH-mY,4047
2
2
  c2cwsgiutils/acceptance/__init__.py,sha256=mSv7pmy7fF6i3JfNX_Ws-8x6jHgT7W3AK4bZTnkoosI,1515
3
3
  c2cwsgiutils/acceptance/connection.py,sha256=nXwDSRpqVaOBr_mhZ3jdOSJIxHCHub6atADa04dpiO4,9911
4
- c2cwsgiutils/acceptance/image.py,sha256=f5gd3zswSuYkZp2gzSk4697itoCyRgsLe8sy3BxPN-w,9315
4
+ c2cwsgiutils/acceptance/image.py,sha256=P32pqu4ndD9K6UNglPTxKAIKbcfyjgt3yGaNFsrnWRU,9356
5
5
  c2cwsgiutils/acceptance/package-lock.json,sha256=BTOPc5lkvZ_D5__FYckm0fi9Nyru2wgvO7xakvk5oCI,42616
6
6
  c2cwsgiutils/acceptance/package.json,sha256=ClHsOOzzwKrN7PL-7bcfIGiojA3MNBrk6fP_62soCuw,101
7
7
  c2cwsgiutils/acceptance/print.py,sha256=i6UxfSuZ8z9grC_P2qn0yU6RXLbNCcopPMOgjc8D1rI,2555
@@ -20,10 +20,10 @@ c2cwsgiutils/db.py,sha256=S9tzxjyTonxP2bEsRSPzd_c_b1eWX8BHdZc-x1UzU3s,16568
20
20
  c2cwsgiutils/db_maintenance_view.py,sha256=VzcJ7G8rHQNtIZSDLQxPt_nXZYeJwwsDyPYuHgPmY6w,3073
21
21
  c2cwsgiutils/debug/__init__.py,sha256=-MM2PJ1Dhpi7T1CvDO8JpTuO9cnRNv4DFVoCxkCZuLo,1333
22
22
  c2cwsgiutils/debug/_listeners.py,sha256=UhKbvnwwOhsuA8Q6RBmQs83lO00yMe--WGVEETaD-yk,4271
23
- c2cwsgiutils/debug/_views.py,sha256=F2C6K18yUVAQRE4pxzkVag4Axp0a3OPQtHdy3F7xf6U,8648
23
+ c2cwsgiutils/debug/_views.py,sha256=EmWoIAqBDHbaXaFLYA9PHVlfUPkeXDuKiyasR_go5Kw,8661
24
24
  c2cwsgiutils/debug/utils.py,sha256=GpQQ0LgDCJ57IZmJwjIi2GkFAnHPLHeNtDT-zmMbLTY,2338
25
25
  c2cwsgiutils/errors.py,sha256=EXb4AODAqn1T3AOaQ-39XlAHfNxjSkgFUJJhciDjrSQ,6748
26
- c2cwsgiutils/health_check.py,sha256=-fIbWap37UIsmbkG7aN_vzhD4xWJBjRRjDlAWRDXc5k,20834
26
+ c2cwsgiutils/health_check.py,sha256=L7Or5YmZNnupaPsZBz32HnVuj8WN65YP5avHtNu9z-4,20865
27
27
  c2cwsgiutils/index.py,sha256=5NbRP2G-GeZhRa7Bv6XB-7-LJlxc_aSPgvxZCnoY49M,17979
28
28
  c2cwsgiutils/loader.py,sha256=bvokKtBzC2-GkZGHPuxQPGROd8T5MrnM5u2kRnGdbDQ,1421
29
29
  c2cwsgiutils/logging_view.py,sha256=TfPNgiLLm86UnTJF1i6J1u8Nnyh8HaUK6pZAZfGJRjY,3491
@@ -39,14 +39,14 @@ c2cwsgiutils/redis_utils.py,sha256=8lxqVZTMzHMoo-QOxqWLcNdVE7HF8N8JZEH_nocv2NY,4
39
39
  c2cwsgiutils/request_tracking/__init__.py,sha256=ONYs7oH5YK90_-0liz6fwP3wQgzC3yHdcBPZf0v_tzA,4194
40
40
  c2cwsgiutils/request_tracking/_sql.py,sha256=Z3xVF1Le_2_O2y5K4B2qQy9iqJo4N0uRmYQ6VND5sHw,585
41
41
  c2cwsgiutils/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- c2cwsgiutils/scripts/genversion.py,sha256=PgZkUSqwomGEaoRlgV3ufki33rfmjsmNBGTXBu62jHk,2031
42
+ c2cwsgiutils/scripts/genversion.py,sha256=q_oXVc-DkDikp8BYG4lxD7Y8-vRLe3081sEE3saMkmQ,2041
43
43
  c2cwsgiutils/scripts/stats_db.py,sha256=YLVIyMoDsG1lN-raQQb6VJS5kRvW8lJj8nI1-G6WKNo,10611
44
- c2cwsgiutils/scripts/test_print.py,sha256=pLqqVZ9cVvjdD3MdJQ7Ul8i5OIBFvo1Gnr78rdH0Dh4,2130
44
+ c2cwsgiutils/scripts/test_print.py,sha256=-ofACKJfMF7GJv5eBwCFQKePodpZWxFTbn05AHMm8qQ,2139
45
45
  c2cwsgiutils/sentry.py,sha256=eKY3n7Fu-Mtoe_iqKFIlE4cDbCw3nZ2hMZ5gqmOh5ZE,6913
46
46
  c2cwsgiutils/services.py,sha256=AxdiH2S8gfEQpOY36R4WqKtJ-3P4OXhx0srTm5G5070,1569
47
47
  c2cwsgiutils/setup_process.py,sha256=Ox2Q7T7J9CaZ55Bomg3r1cW5FxKZaMSbfkwGMkbkl7U,3585
48
48
  c2cwsgiutils/sql_profiler/__init__.py,sha256=YR8003lCNNGC2eZdyIt5gt76-1frG5szw8IYE_EsQB4,921
49
- c2cwsgiutils/sql_profiler/_impl.py,sha256=2j1m-ffyr8BgsJKs2ctZ5lpLY6oiym_d2h3YEvdQ3xU,3803
49
+ c2cwsgiutils/sql_profiler/_impl.py,sha256=pVaoxQMwfUWLMXRAT7NplgMkGL8KnWjRAwLKh7_5mwg,3816
50
50
  c2cwsgiutils/sqlalchemylogger/README.md,sha256=qXfyhGC4Kbt-Ye_geTPm_1InpclhthmKZpc66rqB4as,2018
51
51
  c2cwsgiutils/sqlalchemylogger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  c2cwsgiutils/sqlalchemylogger/_filters.py,sha256=OJQ9_WA-fd9fMZ7TUNFzHHTPI6msw2NVBl5RoeYFnGw,752
@@ -61,8 +61,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=_E5_KFipmsOdqD849mde4EDIlXS7ae0oClZ
61
61
  c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=KFxxKdEKrmDeA1zpps-BPiB2c4hhR2GlgJvq6KOTyjU,3498
62
62
  c2cwsgiutils/templates/index.html.mako,sha256=cK8qGBDeQG5SiJJCfvL0oKpgacr7dPKx634AAQivmjA,1416
63
63
  c2cwsgiutils/version.py,sha256=3SzSbPTaURGvBHxXomKcN4ZMC1rE5-ksOWlh-_JPqSQ,3154
64
- c2cwsgiutils-6.2.0.dev76.dist-info/LICENSE,sha256=6bEOU0n7ued3SA-DQCsHQaACONMMRzGHmH5XhDVeD-U,1304
65
- c2cwsgiutils-6.2.0.dev76.dist-info/METADATA,sha256=nEkFVeFHle6PmdapaTUnhrIDtzagoR_2rl2TQyA9IvM,36598
66
- c2cwsgiutils-6.2.0.dev76.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
67
- c2cwsgiutils-6.2.0.dev76.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
68
- c2cwsgiutils-6.2.0.dev76.dist-info/RECORD,,
64
+ c2cwsgiutils-6.2.0.dev77.dist-info/LICENSE,sha256=6bEOU0n7ued3SA-DQCsHQaACONMMRzGHmH5XhDVeD-U,1304
65
+ c2cwsgiutils-6.2.0.dev77.dist-info/METADATA,sha256=_04lEXaVgBpOp05jtzszftwtvjLC4EakV9JFTyFqBoY,36598
66
+ c2cwsgiutils-6.2.0.dev77.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
67
+ c2cwsgiutils-6.2.0.dev77.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
68
+ c2cwsgiutils-6.2.0.dev77.dist-info/RECORD,,