prefpicker 1.24.4__tar.gz → 2.0.0__tar.gz

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.

Potentially problematic release.


This version of prefpicker might be problematic. Click here for more details.

Files changed (31) hide show
  1. {prefpicker-1.24.4 → prefpicker-2.0.0}/.pre-commit-config.yaml +2 -1
  2. {prefpicker-1.24.4 → prefpicker-2.0.0}/.taskcluster.yml +1 -5
  3. {prefpicker-1.24.4 → prefpicker-2.0.0}/PKG-INFO +2 -2
  4. {prefpicker-1.24.4 → prefpicker-2.0.0}/pyproject.toml +1 -1
  5. {prefpicker-1.24.4 → prefpicker-2.0.0}/setup.cfg +1 -1
  6. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/prefpicker.py +5 -3
  7. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/templates/browser-fuzzing.yml +8 -0
  8. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/PKG-INFO +2 -2
  9. {prefpicker-1.24.4 → prefpicker-2.0.0}/tox.ini +1 -11
  10. {prefpicker-1.24.4 → prefpicker-2.0.0}/.codecov.yml +0 -0
  11. {prefpicker-1.24.4 → prefpicker-2.0.0}/.github/CODEOWNERS +0 -0
  12. {prefpicker-1.24.4 → prefpicker-2.0.0}/.github/workflows/prefmonitor.yml +0 -0
  13. {prefpicker-1.24.4 → prefpicker-2.0.0}/.gitignore +0 -0
  14. {prefpicker-1.24.4 → prefpicker-2.0.0}/CODE_OF_CONDUCT.md +0 -0
  15. {prefpicker-1.24.4 → prefpicker-2.0.0}/LICENSE +0 -0
  16. {prefpicker-1.24.4 → prefpicker-2.0.0}/MANIFEST.in +0 -0
  17. {prefpicker-1.24.4 → prefpicker-2.0.0}/README.md +0 -0
  18. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/__init__.py +0 -0
  19. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/__main__.py +0 -0
  20. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/main.py +0 -0
  21. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/py.typed +0 -0
  22. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/templates/schema.json +0 -0
  23. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/test_main.py +0 -0
  24. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/test_prefpicker.py +0 -0
  25. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker/test_templates.py +0 -0
  26. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/SOURCES.txt +0 -0
  27. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/dependency_links.txt +0 -0
  28. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/entry_points.txt +0 -0
  29. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/not-zip-safe +0 -0
  30. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/requires.txt +0 -0
  31. {prefpicker-1.24.4 → prefpicker-2.0.0}/src/prefpicker.egg-info/top_level.txt +0 -0
@@ -3,6 +3,7 @@ repos:
3
3
  rev: v0.6.5
4
4
  hooks:
5
5
  - id: ruff
6
+ args: [--fix]
6
7
  - repo: https://github.com/ambv/black
7
8
  rev: 24.8.0
8
9
  hooks:
@@ -56,7 +57,7 @@ repos:
56
57
  hooks:
57
58
  - id: gitlint
58
59
  args: [--contrib=contrib-title-conventional-commits, --ignore=body-is-missing, --msg-filename]
59
- stages: [ commit-msg ]
60
+ stages: [commit-msg]
60
61
  - repo: local
61
62
  hooks:
62
63
  - id: mypy
@@ -48,10 +48,6 @@ tasks:
48
48
  - tox; tox -e codecov
49
49
  jobs:
50
50
  include:
51
- - name: tests python 3.8
52
- version: "3.8"
53
- env:
54
- TOXENV: py38,lint
55
51
  - name: tests python 3.9
56
52
  version: "3.9"
57
53
  env:
@@ -74,7 +70,7 @@ tasks:
74
70
  env:
75
71
  TOXENV: py312,lint
76
72
  - name: semantic-release
77
- version: "3.8"
73
+ version: "3.9"
78
74
  script:
79
75
  - bash
80
76
  - '-xec'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefpicker
3
- Version: 1.24.4
3
+ Version: 2.0.0
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -12,7 +12,7 @@ Keywords: firefox fuzz fuzzing test testing
12
12
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Topic :: Software Development :: Testing
15
- Requires-Python: >=3.8
15
+ Requires-Python: >=3.9
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: PyYAML
@@ -51,7 +51,7 @@ log_level = "DEBUG"
51
51
 
52
52
  [tool.ruff]
53
53
  fix = true
54
- target-version = "py38"
54
+ target-version = "py39"
55
55
 
56
56
  [tool.ruff.lint]
57
57
  select = [
@@ -23,7 +23,7 @@ package_dir =
23
23
  = src
24
24
  packages =
25
25
  prefpicker
26
- python_requires = >=3.8
26
+ python_requires = >=3.9
27
27
  zip_safe = False
28
28
 
29
29
  [options.entry_points]
@@ -9,12 +9,15 @@ from importlib.metadata import PackageNotFoundError, version
9
9
  from json import dumps
10
10
  from pathlib import Path
11
11
  from random import choice
12
- from typing import Any, Dict, Iterator, List, Union
12
+ from typing import TYPE_CHECKING, Any, Union
13
13
 
14
14
  from yaml import safe_load
15
15
  from yaml.parser import ParserError
16
16
  from yaml.scanner import ScannerError
17
17
 
18
+ if TYPE_CHECKING:
19
+ from collections.abc import Iterator
20
+
18
21
  __author__ = "Tyson Smith"
19
22
  __credits__ = ["Tyson Smith"]
20
23
  try:
@@ -30,8 +33,7 @@ class SourceDataError(Exception):
30
33
 
31
34
  # Python <= 3.9 requires the use of Union
32
35
  PrefValue = Union[bool, int, str, None]
33
- # Python 3.8 requires typing.Dict and typing.List even with __future__.annotations here
34
- PrefVariant = Dict[str, List[PrefValue]]
36
+ PrefVariant = dict[str, list[PrefValue]]
35
37
 
36
38
 
37
39
  class PrefPicker: # pylint: disable=missing-docstring
@@ -8,6 +8,14 @@ pref:
8
8
  - true
9
9
  default:
10
10
  - null
11
+ # this should be true when fuzzing a11y to increase coverage
12
+ # see https://bugzilla.mozilla.org/show_bug.cgi?id=1921917 for more details
13
+ accessibility.enable_all_cache_domains:
14
+ variants:
15
+ a11y:
16
+ - true
17
+ default:
18
+ - null
11
19
  accessibility.force_disabled:
12
20
  variants:
13
21
  a11y:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefpicker
3
- Version: 1.24.4
3
+ Version: 2.0.0
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -12,7 +12,7 @@ Keywords: firefox fuzz fuzzing test testing
12
12
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Topic :: Software Development :: Testing
15
- Requires-Python: >=3.8
15
+ Requires-Python: >=3.9
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: PyYAML
@@ -1,5 +1,5 @@
1
1
  [tox]
2
- envlist = py{38,39,310,311,312},lint
2
+ envlist = py{39,310,311,312},lint
3
3
  skip_missing_interpreters = true
4
4
  tox_pip_extensions_ext_venv_update = true
5
5
 
@@ -58,13 +58,3 @@ deps =
58
58
  build
59
59
  python-semantic-release>=8.0.0
60
60
  twine
61
-
62
- [flake8]
63
- # E203, W503, and W504 are all black compat
64
- ignore =
65
- E203
66
- W503
67
- enable =
68
- W504
69
- max-line-length = 88
70
- show-source = true
File without changes
File without changes
File without changes
File without changes
File without changes