Skip to content

Commit 66d0ae5

Browse files
committed
Bump utils to 95.1.1
## 95.1.1 * Add `RUF100` rule to linter config (checks for inapplicable uses of `# noqa`) ## 95.1.0 * Adds log message and statsd metric for retried celery tasks ## 95.0.0 * Reverts 92.0.0 to restore new validation code ## 94.0.1 * Add `ruff.toml` to `MANIFEST.in` ## 94.0.0 * `version_tools.copy_config` will now copy `ruff.toml` instead of `pyproject.toml`. Apps should maintain their own `pyproject.toml`, if required * Replaces `black` formatter with `ruff format` * Upgrades `ruff` to version 0.9.2 ## 93.2.1 * Replaces symlink at `./pyproject.toml` with a duplicate file ## 93.2.0 * logging: add verbose eventlet context to app.request logs if request_time is over a threshold ## 93.1.0 * Introduce `NOTIFY_LOG_LEVEL_HANDLERS` config variable for separate control of handler log level ## 93.0.0 * BREAKING CHANGE: logging: all contents of `logging/__init__.py` have been moved to `logging/flask.py` because they all assume a flask(-like) environment and this way we don't implicitly import all of flask etc. every time anything under `logging` is imported. * Adds `request_cpu_time` to `app.request` logs when available. * Adds ability to track eventlet's switching of greenlets and annotate `app.request` logs with useful metrics when the flask config parameter `NOTIFY_EVENTLET_STATS` is set and the newly provided function `account_greenlet_times` is installed as a greenlet trace hook. ## 92.1.1 * Bump minimum version of `jinja2` to 3.1.5 ## 92.1.0 * RequestCache: add CacheResultWrapper to allow dynamic cache decisions ## 92.0.2 * Downgrade minimum version of `requests` to 2.32.3 ## 92.0.1 * Bumps core dependencies to latest versions ## 92.0.0 * Restores old validation code so later utils changes can be added to api, admin etc. ## 91.1.2 * Adds rule N804 (invalid-first-argument-name-for-class-method) to linter config ## 91.1.1 * Remove hangul filler character from rendered emails ## 91.1.0 * bump all libs in requirements_for_test_common.in ## 91.0.4 * Don’t copy config when bumping utils version ## 91.0.3 * Fix validating supported international country codes for phone numbers without a leading "+" that look a bit like UK numbers ## 91.0.2 * Bumps requests to newer version ## 91.0.1 * Adds public utility method to check if a phonenumber is international (with correct handling for OFCOM TV numbers) * Updates PhoneNumber.get_international_phone_info to return the correct info for OFCOM TV numbers ## 91.0.0 * BREAKING CHANGE: All standalone functions for validating, normalising and formatting phone numbers has been removed from notifications_utils/recipient_validation/phone_number.py, and are replaced and encapsualated entirely with a single `PhoneNumber` class. All code that relies on validation, normalisation or fomratting of a phone number must be re-written to use instances of `PhoneNumber` instead. ## 90.0.0 * Allow leading empty columns in CSV files * Change second argument of `formatters.strip_all_whitespace` (this argument is not used in other apps) ## 89.2.0 * Use github API rather than fetching from their CDN in version_tools *** Complete changes: alphagov/notifications-utils@89.1.0...95.1.1
1 parent 831b34d commit 66d0ae5

File tree

4 files changed

+59
-49
lines changed

4 files changed

+59
-49
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# it to work out the current utils version
55

66
# Run `make bump-utils` to update to the latest version
7-
notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@89.1.0
7+
notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@95.1.1

requirements_for_test.txt

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,20 @@
77
attrs==24.2.0
88
# via
99
# jsonschema
10-
# pytest
1110
# referencing
12-
beautifulsoup4==4.11.1
13-
# via -r requirements_for_test_common.in
14-
black==24.4.0
11+
beautifulsoup4==4.12.3
1512
# via -r requirements_for_test_common.in
1613
certifi==2024.8.30
1714
# via requests
1815
charset-normalizer==3.4.0
1916
# via requests
20-
click==8.1.7
21-
# via black
22-
colorama==0.4.6
23-
# via pytest-watch
2417
coverage==7.6.4
2518
# via pytest-testmon
2619
docopt==0.6.2
27-
# via
28-
# notifications-python-client (setup.py)
29-
# pytest-watch
20+
# via notifications-python-client (setup.py)
3021
execnet==2.1.1
3122
# via pytest-xdist
32-
freezegun==1.2.2
23+
freezegun==1.5.1
3324
# via -r requirements_for_test_common.in
3425
idna==3.10
3526
# via requests
@@ -39,37 +30,26 @@ jsonschema==4.23.0
3930
# via -r requirements_for_test.in
4031
jsonschema-specifications==2024.10.1
4132
# via jsonschema
42-
mypy-extensions==1.0.0
43-
# via black
4433
packaging==24.2
45-
# via
46-
# black
47-
# pytest
48-
pathspec==0.12.1
49-
# via black
50-
platformdirs==4.3.6
51-
# via black
34+
# via pytest
5235
pluggy==1.5.0
5336
# via pytest
5437
pyjwt==2.9.0
5538
# via notifications-python-client (setup.py)
56-
pytest==7.2.0
39+
pytest==8.3.4
5740
# via
5841
# -r requirements_for_test_common.in
5942
# pytest-env
6043
# pytest-mock
6144
# pytest-testmon
62-
# pytest-watch
6345
# pytest-xdist
64-
pytest-env==0.8.1
65-
# via -r requirements_for_test_common.in
66-
pytest-mock==3.9.0
46+
pytest-env==1.1.5
6747
# via -r requirements_for_test_common.in
68-
pytest-testmon==2.1.0
48+
pytest-mock==3.14.0
6949
# via -r requirements_for_test_common.in
70-
pytest-watch==4.2.0
50+
pytest-testmon==2.1.1
7151
# via -r requirements_for_test_common.in
72-
pytest-xdist==3.0.2
52+
pytest-xdist==3.6.1
7353
# via -r requirements_for_test_common.in
7454
python-dateutil==2.9.0.post0
7555
# via freezegun
@@ -81,21 +61,17 @@ requests==2.32.3
8161
# via
8262
# notifications-python-client (setup.py)
8363
# requests-mock
84-
requests-mock==1.10.0
64+
requests-mock==1.12.1
8565
# via -r requirements_for_test_common.in
8666
rpds-py==0.21.0
8767
# via
8868
# jsonschema
8969
# referencing
90-
ruff==0.3.7
70+
ruff==0.9.2
9171
# via -r requirements_for_test_common.in
9272
six==1.16.0
93-
# via
94-
# python-dateutil
95-
# requests-mock
73+
# via python-dateutil
9674
soupsieve==2.6
9775
# via beautifulsoup4
9876
urllib3==2.2.3
9977
# via requests
100-
watchdog==6.0.0
101-
# via pytest-watch

requirements_for_test_common.in

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# This file was automatically copied from notifications-utils@89.1.0
1+
# This file was automatically copied from notifications-utils@95.1.1
22

3-
beautifulsoup4==4.11.1
4-
pytest==7.2.0
5-
pytest-env==0.8.1
6-
pytest-mock==3.9.0
7-
pytest-xdist==3.0.2
8-
pytest-testmon==2.1.0
9-
pytest-watch==4.2.0
10-
requests-mock==1.10.0
11-
freezegun==1.2.2
3+
beautifulsoup4==4.12.3
4+
pytest==8.3.4
5+
pytest-env==1.1.5
6+
pytest-mock==3.14.0
7+
pytest-xdist==3.6.1
8+
pytest-testmon==2.1.1
9+
requests-mock==1.12.1
10+
freezegun==1.5.1
1211

13-
black==24.4.0 # Also update `.pre-commit-config.yaml` if this changes
14-
ruff==0.3.7 # Also update `.pre-commit-config.yaml` if this changes
12+
ruff==0.9.2 # Also update `.pre-commit-config.yaml` if this changes

ruff.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file was automatically copied from [email protected]
2+
3+
exclude = [
4+
"migrations/versions/",
5+
"venv*",
6+
"__pycache__",
7+
"node_modules",
8+
"cache",
9+
"migrations",
10+
"build",
11+
"sample_cap_xml_documents.py",
12+
]
13+
14+
line-length = 120
15+
16+
target-version = "py311"
17+
18+
[lint]
19+
select = [
20+
"E", # pycodestyle
21+
"W", # pycodestyle
22+
"F", # pyflakes
23+
"I", # isort
24+
"B", # flake8-bugbear
25+
"C90", # mccabe cyclomatic complexity
26+
"G", # flake8-logging-format
27+
"T20", # flake8-print
28+
"UP", # pyupgrade
29+
"C4", # flake8-comprehensions
30+
"ISC", # flake8-implicit-str-concat
31+
"RSE", # flake8-raise
32+
"PIE", # flake8-pie
33+
"N804", # First argument of a class method should be named `cls`
34+
"RUF100", # Checks for noqa directives that are no longer applicable
35+
]
36+
ignore = []

0 commit comments

Comments
 (0)