axe-playwright-python 0.1.6__tar.gz → 0.1.8__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.
Files changed (36) hide show
  1. axe_playwright_python-0.1.8/.github/dependabot.yml +14 -0
  2. axe_playwright_python-0.1.8/.github/scripts/check-axe-updates.sh +19 -0
  3. axe_playwright_python-0.1.8/.github/scripts/install-axe.sh +19 -0
  4. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/.github/workflows/python.yaml +3 -3
  5. axe_playwright_python-0.1.8/.github/workflows/update-axe.yaml +23 -0
  6. axe_playwright_python-0.1.8/.vscode/settings.json +9 -0
  7. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/CHANGELOG.md +9 -1
  8. axe_playwright_python-0.1.8/CONTRIBUTING.md +47 -0
  9. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/PKG-INFO +7 -3
  10. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/README.md +3 -1
  11. axe_playwright_python-0.1.8/axe_playwright_python/axe.min.js +12 -0
  12. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/axe_playwright_python/base.py +1 -1
  13. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/examples/usage.py +2 -1
  14. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/mkdocs.yml +1 -1
  15. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/pyproject.toml +2 -1
  16. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_axe_sync_playwright.py +21 -4
  17. axe_playwright_python-0.1.6/.vscode/settings.json +0 -4
  18. axe_playwright_python-0.1.6/CONTRIBUTING.md +0 -46
  19. axe_playwright_python-0.1.6/axe_playwright_python/axe.min.js +0 -12
  20. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/.gitignore +0 -0
  21. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/.pre-commit-config.yaml +0 -0
  22. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/LICENSE +0 -0
  23. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/axe_playwright_python/__init__.py +0 -0
  24. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/axe_playwright_python/async_playwright.py +0 -0
  25. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/axe_playwright_python/sync_playwright.py +0 -0
  26. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/axe_playwright_python/violations.txt +0 -0
  27. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/docs/api.md +0 -0
  28. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/docs/index.md +0 -0
  29. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/docs/usage.md +0 -0
  30. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/__init__.py +0 -0
  31. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_axe_async_playwright.py +0 -0
  32. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_page.html +0 -0
  33. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_report.txt +0 -0
  34. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_report_color.txt +0 -0
  35. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_report_save.py +0 -0
  36. {axe_playwright_python-0.1.6 → axe_playwright_python-0.1.8}/tests/test_result.json +0 -0
@@ -0,0 +1,14 @@
1
+ ---
2
+
3
+ version: 2
4
+
5
+ updates:
6
+
7
+ - package-ecosystem: github-actions
8
+ directory: /
9
+ schedule:
10
+ interval: weekly
11
+ commit-message:
12
+ prefix: ':octocat'
13
+
14
+ ...
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+
3
+ RLS=$(
4
+ curl -sf "https://api.github.com/repos/dequelabs/axe-core/releases?per_page=3"
5
+ )
6
+
7
+ COOLDOWN=$(( 5*24*3600 ))
8
+ CANDIDATE=$(
9
+ jq -r '[.[] | select(.published_at | fromdate < now - '"${COOLDOWN}"')] | first' \
10
+ <<< "${RLS}"
11
+ )
12
+
13
+ CUR=$(
14
+ sed -n 's/^\/\*! axe \(v[0-9.]*\)/\1/p;q' \
15
+ axe_playwright_python/axe.min.js
16
+ )
17
+ CAND=$(jq -r '.tag_name' <<< "${CANDIDATE}")
18
+
19
+ [[ "${CUR}" == "${CAND}" ]] || echo "${CAND#v}"
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+
3
+ VERSION=${1:+@${1}}
4
+
5
+ TMP=/tmp
6
+ PKG_DATA=$(
7
+ npm pack --json --pack-destination "${TMP}" --ignore-scripts \
8
+ --registry=https://registry.npmjs.org "axe-core${VERSION}"
9
+ )
10
+
11
+ TARFILE=$(jq -r '.[].filename' <<< "${PKG_DATA}")
12
+ DISTFILE=$(
13
+ jq -r '.[].files[].path | select(test("axe\\.min\\.js$"))' \
14
+ <<< "${PKG_DATA}"
15
+ )
16
+ tar -Oxzf "${TMP}/${TARFILE}" "package/${DISTFILE}" > \
17
+ axe_playwright_python/axe.min.js
18
+
19
+ rm -f "${TMP}/${TARFILE}"
@@ -13,11 +13,11 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16
+ python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
17
17
  steps:
18
- - uses: actions/checkout@v5
18
+ - uses: actions/checkout@v7
19
19
  - name: Set up Python 3
20
- uses: actions/setup-python@v6
20
+ uses: actions/setup-python@v7
21
21
  with:
22
22
  python-version: ${{ matrix.python_version }}
23
23
  - name: Install dependencies
@@ -0,0 +1,23 @@
1
+ ---
2
+
3
+ name: Check for Axe updates
4
+
5
+ on:
6
+ workflow_dispatch:
7
+ schedule:
8
+ - cron: '0 0 * * 1'
9
+
10
+ jobs:
11
+ check-updates:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+ - name: check for axe update && nag about it
16
+ run: |-
17
+ version=$(bash .github/scripts/check-axe-updates.sh)
18
+ [[ -z "${version}" ]] && exit 0
19
+ echo "found new version ${version}" >> /dev/stderr
20
+ bash .github/scripts/install-axe.sh "${version}"
21
+ git diff --stat --exit-code
22
+
23
+ ...
@@ -0,0 +1,9 @@
1
+ {
2
+ "python.linting.flake8Enabled": true,
3
+ "python.linting.enabled": true,
4
+ "python.testing.pytestArgs": [
5
+ "tests"
6
+ ],
7
+ "python.testing.unittestEnabled": false,
8
+ "python.testing.pytestEnabled": true
9
+ }
@@ -2,11 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.8] - July 24, 2026
6
+
7
+ - Upgraded axe-core JS version to v4.12.1. You may see the number of violations change as a result, as new axe-core versions sometimes add new rules and update existing ones.
8
+
9
+ ## [0.1.7] - November 30, 2025
10
+
11
+ - Fixed issue with passing custom options to `Axe.run()` method, which caused options to be ignored.
12
+ - Added support for Python 3.14.
13
+
5
14
  ## [0.1.6] - October 23, 2025
6
15
 
7
16
  - Upgraded axe-core JS version to v4.11.0. You may see the number of violations change as a result, as new axe-core versions sometimes add new rules and update existing ones.
8
17
 
9
-
10
18
  ## [0.1.5] - June 21, 2025
11
19
 
12
20
  - Upgraded axe-core JS version to v4.10.3. You may see the number of violations change as a result, as they added new rules and updated existing ones.
@@ -0,0 +1,47 @@
1
+ # How to contribute
2
+
3
+ ## Development
4
+
5
+ Install the project dependencies:
6
+
7
+ ```sh
8
+ python -m pip install -e '.[dev]'
9
+ playwright install --with-deps
10
+ pre-commit install
11
+ ```
12
+
13
+ Run the tests:
14
+
15
+ ```sh
16
+ python -m pytest
17
+ ```
18
+
19
+ ## Documentation
20
+
21
+ Build locally:
22
+
23
+ ```sh
24
+ mkdocs serve
25
+ ```
26
+
27
+ Deploy to GitHub Pages:
28
+
29
+ ```sh
30
+ mkdocs gh-deploy
31
+ ```
32
+
33
+ ## Publishing
34
+
35
+ 1. Update the CHANGELOG with description of changes
36
+
37
+ 2. Update the version number in pyproject.toml
38
+
39
+ 3. Push the changes to the main branch
40
+
41
+ 4. Publish to PyPi:
42
+
43
+ ```sh
44
+ export FLIT_USERNAME=__token__
45
+ export FLIT_PASSWORD=your-pypi-token
46
+ flit publish
47
+ ```
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: axe-playwright-python
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Automated web accessibility testing using axe-core engine and Playwright.
5
5
  Keywords: accessibility,axe,axe-core,playwright
6
6
  Author-email: Pamela Fox <pamela.fox@gmail.com>
@@ -14,10 +14,12 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: Topic :: Adaptive Technologies
18
19
  Classifier: Topic :: Software Development
19
20
  Classifier: Topic :: Software Development :: Quality Assurance
20
21
  Classifier: Topic :: Software Development :: Testing
22
+ License-File: LICENSE
21
23
  Requires-Dist: playwright >= 1.36.0
22
24
  Requires-Dist: pytest == 7.4.0 ; extra == "dev"
23
25
  Requires-Dist: pytest-cov == 4.1.0 ; extra == "dev"
@@ -45,7 +47,9 @@ and [Playwright](https://playwright.dev/python/docs/intro).
45
47
 
46
48
  ### Further Reading & More
47
49
  - ["Automated accessibility audits" - Pamela Fox (North Bay Python 2023)](https://www.youtube.com/watch?v=J-4Qa6PSomM&pp=ygUUcGFtZWxhIGZveCBub3J0aCBiYXk%3D)
48
- - [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-accessibility-nightmare-of-a-website.html) & [Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/website-accessibility-audit-reports-via-gh-actions.html) by [Jay Miller](https://github.com/kjaymiller)
50
+ - [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-sites-accessibility.html) &
51
+ [Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/gh-action-accessibility.html)
52
+ by [Jay Miller](https://github.com/kjaymiller)
49
53
 
50
54
 
51
55
  ## Dependencies
@@ -9,7 +9,9 @@ and [Playwright](https://playwright.dev/python/docs/intro).
9
9
 
10
10
  ### Further Reading & More
11
11
  - ["Automated accessibility audits" - Pamela Fox (North Bay Python 2023)](https://www.youtube.com/watch?v=J-4Qa6PSomM&pp=ygUUcGFtZWxhIGZveCBub3J0aCBiYXk%3D)
12
- - [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-accessibility-nightmare-of-a-website.html) & [Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/website-accessibility-audit-reports-via-gh-actions.html) by [Jay Miller](https://github.com/kjaymiller)
12
+ - [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-sites-accessibility.html) &
13
+ [Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/gh-action-accessibility.html)
14
+ by [Jay Miller](https://github.com/kjaymiller)
13
15
 
14
16
 
15
17
  ## Dependencies