axe-playwright-python 0.1.7__tar.gz → 0.1.9__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.
- axe_playwright_python-0.1.9/.github/dependabot.yml +14 -0
- axe_playwright_python-0.1.9/.github/scripts/check-axe-updates.sh +19 -0
- axe_playwright_python-0.1.9/.github/scripts/install-axe.sh +19 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/.github/workflows/python.yaml +2 -2
- axe_playwright_python-0.1.9/.github/workflows/update-axe.yaml +23 -0
- axe_playwright_python-0.1.9/AGENTS.md +25 -0
- axe_playwright_python-0.1.9/CHANGELOG.md +26 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/PKG-INFO +6 -3
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/README.md +3 -1
- axe_playwright_python-0.1.9/axe_playwright_python/axe.min.js +12 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/axe_playwright_python/base.py +4 -1
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/pyproject.toml +1 -1
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_axe_async_playwright.py +3 -3
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_axe_sync_playwright.py +3 -3
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_report_save.py +26 -0
- axe_playwright_python-0.1.7/CHANGELOG.md +0 -16
- axe_playwright_python-0.1.7/axe_playwright_python/axe.min.js +0 -12
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/.gitignore +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/.pre-commit-config.yaml +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/.vscode/settings.json +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/CONTRIBUTING.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/LICENSE +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/axe_playwright_python/__init__.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/axe_playwright_python/async_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/axe_playwright_python/sync_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/axe_playwright_python/violations.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/docs/api.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/docs/index.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/docs/usage.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/examples/usage.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/mkdocs.yml +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/__init__.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_page.html +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_report.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_report_color.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.9}/tests/test_result.json +0 -0
|
@@ -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}"
|
|
@@ -15,9 +15,9 @@ jobs:
|
|
|
15
15
|
matrix:
|
|
16
16
|
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v7
|
|
19
19
|
- name: Set up Python 3
|
|
20
|
-
uses: actions/setup-python@
|
|
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,25 @@
|
|
|
1
|
+
# Agent Instructions
|
|
2
|
+
|
|
3
|
+
## Upgrading axe-core
|
|
4
|
+
|
|
5
|
+
To upgrade the bundled `axe-core` JavaScript library (`axe_playwright_python/axe.min.js`), follow these steps:
|
|
6
|
+
|
|
7
|
+
1. Run the installation script:
|
|
8
|
+
```bash
|
|
9
|
+
bash .github/scripts/install-axe.sh
|
|
10
|
+
```
|
|
11
|
+
Optionally, specify a target version (e.g., `4.14.0`):
|
|
12
|
+
```bash
|
|
13
|
+
bash .github/scripts/install-axe.sh 4.14.0
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
2. Run the test suite:
|
|
17
|
+
```bash
|
|
18
|
+
pytest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
3. Check code formatting and linting:
|
|
22
|
+
```bash
|
|
23
|
+
ruff check .
|
|
24
|
+
black --check .
|
|
25
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.1.9] - November 2, 2026
|
|
6
|
+
|
|
7
|
+
- Upgraded axe-core JS version to v4.14.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
|
+
- This axe-core upgrade fixes relative `@import` URLs in stylesheets being resolved against the page URL instead of the stylesheet URL, which caused spurious 404 requests and incomplete `css-orientation-lock` results.
|
|
9
|
+
- Fixed `generate_report()` raising `TypeError` when a violation targets an element inside shadow DOM (nested target selectors). Shadow DOM targets are now shown as `host >>> element`.
|
|
10
|
+
|
|
11
|
+
## [0.1.8] - July 24, 2026
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
|
|
15
|
+
## [0.1.7] - November 30, 2025
|
|
16
|
+
|
|
17
|
+
- Fixed issue with passing custom options to `Axe.run()` method, which caused options to be ignored.
|
|
18
|
+
- Added support for Python 3.14.
|
|
19
|
+
|
|
20
|
+
## [0.1.6] - October 23, 2025
|
|
21
|
+
|
|
22
|
+
- 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.
|
|
23
|
+
|
|
24
|
+
## [0.1.5] - June 21, 2025
|
|
25
|
+
|
|
26
|
+
- 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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: axe-playwright-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
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>
|
|
@@ -19,6 +19,7 @@ Classifier: Topic :: Adaptive Technologies
|
|
|
19
19
|
Classifier: Topic :: Software Development
|
|
20
20
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
21
21
|
Classifier: Topic :: Software Development :: Testing
|
|
22
|
+
License-File: LICENSE
|
|
22
23
|
Requires-Dist: playwright >= 1.36.0
|
|
23
24
|
Requires-Dist: pytest == 7.4.0 ; extra == "dev"
|
|
24
25
|
Requires-Dist: pytest-cov == 4.1.0 ; extra == "dev"
|
|
@@ -46,7 +47,9 @@ and [Playwright](https://playwright.dev/python/docs/intro).
|
|
|
46
47
|
|
|
47
48
|
### Further Reading & More
|
|
48
49
|
- ["Automated accessibility audits" - Pamela Fox (North Bay Python 2023)](https://www.youtube.com/watch?v=J-4Qa6PSomM&pp=ygUUcGFtZWxhIGZveCBub3J0aCBiYXk%3D)
|
|
49
|
-
- [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-accessibility
|
|
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)
|
|
50
53
|
|
|
51
54
|
|
|
52
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
|
|
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
|