pax_global_header 0000666 0000000 0000000 00000000064 14450567445 0014530 g ustar 00root root 0000000 0000000 52 comment=e0937eb9af3f4dbecf3ca35d37af0e7e6cd55c07 html-sanitizer-2.2/ 0000775 0000000 0000000 00000000000 14450567445 0014345 5 ustar 00root root 0000000 0000000 html-sanitizer-2.2/.editorconfig 0000664 0000000 0000000 00000000310 14450567445 0017014 0 ustar 00root root 0000000 0000000 # top-most EditorConfig file root = true [*] end_of_line = lf insert_final_newline = true charset = utf-8 trim_trailing_whitespace = true indent_style = space indent_size = 2 [*.py] indent_size = 4 html-sanitizer-2.2/.github/ 0000775 0000000 0000000 00000000000 14450567445 0015705 5 ustar 00root root 0000000 0000000 html-sanitizer-2.2/.github/workflows/ 0000775 0000000 0000000 00000000000 14450567445 0017742 5 ustar 00root root 0000000 0000000 html-sanitizer-2.2/.github/workflows/test.yml 0000664 0000000 0000000 00000001326 14450567445 0021446 0 ustar 00root root 0000000 0000000 name: Tests on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install beautifulsoup4 lxml if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Run tests run: | python -m unittest discover -v html-sanitizer-2.2/.gitignore 0000664 0000000 0000000 00000000141 14450567445 0016331 0 ustar 00root root 0000000 0000000 *.py? *~ *.sw? .DS_Store ._* /MANIFEST _build build dist .eggs *.egg-info .tox .coverage htmlcov html-sanitizer-2.2/.pre-commit-config.yaml 0000664 0000000 0000000 00000002305 14450567445 0020626 0 ustar 00root root 0000000 0000000 exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$" repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-added-large-files - id: check-builtin-literals - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-toml - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/adamchainz/django-upgrade rev: 1.13.0 hooks: - id: django-upgrade args: [--target-version, "3.2"] - repo: https://github.com/charliermarsh/ruff-pre-commit rev: "v0.0.272" hooks: - id: ruff - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.0-alpha.9-for-vscode hooks: - id: prettier args: [--list-different, --no-semi] exclude: "^conf/|.*\\.html$" - repo: https://github.com/tox-dev/pyproject-fmt rev: 0.11.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject rev: v0.13 hooks: - id: validate-pyproject html-sanitizer-2.2/CHANGELOG.rst 0000664 0000000 0000000 00000013232 14450567445 0016367 0 ustar 00root root 0000000 0000000 ========== Change log ========== Next version ============ 2.2 (2023-07-03) ================ - Changed ``keep_normalized_whitespace`` to preserve whitespace at the tail of tags, not just between tags. - Changed the parameters of ``normalize_whitespace_in_text_or_tail`` to be keyword-only. 2.1 (2023-06-29) ================ - Added a test for a type of misconfiguration. - Changed the sanitizer configuration validation to not allow unexpected data types in ``tags``, ``empty``, ``separate``, ``whitespace`` and ``attributes``. 2.0 (2023-06-28) ================ - Raised the minimum Python version to 3.7. Added Python 3.10, 3.11. - Raised the minimum lxml version to the current 4.9.1. - Switched from Travis CI to GitHub actions. Added Python 3.9 to the CI matrix. - Renamed the main branch to main. - Switched to a declarative setup. - Fixed a whitespace dependency in the testsuite. - Switched to hatchling and ruff. - Made behavior-altering arguments to ``normalize_overall_whitespace`` keyword-only. `1.9`_ (2020-01-20) =================== - Added Python 3.8 to the CI matrix. - Be able to keep the ``bar", "foobar")], sanitizer=Sanitizer( { "tags": {"impossible tag"}, "attributes": {}, "empty": set(), "separate": set(), } ), ) # allow style tag but no style attribute self.run_tests( [ ( "foobar", "foobar", ), ('