Commit graph

8 commits

Author SHA1 Message Date
Shannon Booth
5c69ab992f Tests/LibWeb: Run imported WPT handlers in HTTP test server
Teach the local http-test-server hook to serve non-.py resources through
the vendored wptserve FileHandler instead of SimpleHTTPRequestHandler,
so WPT file features like ?pipe=..., .sub., and WPT .headers processing
work for ordinary resources as well.

Requests ending with .py are also now handled through WPTs python
script handler.
2026-06-06 13:48:43 +02:00
Shannon Booth
d4f8879e8b Meta: Ignore wpt-import folder from python, shell and executable linting
As these are third party.
2026-06-06 13:48:43 +02:00
Zaggy1024
5aa0d13a99 Meta+CI: Add pyright type checking to lint_python.sh 2026-05-13 08:13:51 -05:00
Zaggy1024
e12096bb92 Meta: Add a target-version declaration to ruff
This should hopefully prevent tools from suggesting changes like
converting Optional and Union to use the `|` operator.
2026-04-30 09:32:22 +02:00
Timothy Flynn
1b7b531d61 Meta: Use "extend-select" to enable non-default python linters
This way we don't have to track the defaults.
2025-06-09 17:49:35 -04:00
Timothy Flynn
ba58c7ecf9 Meta: Remove black configuration
I left this here originally thinking that black and ruff are compatible,
so either could be used as a local formatter. But it turns that while
code formatted with ruff will be unchanged by black, the reverse is not
always true. So let's just enforce using ruff.
2025-06-09 17:49:35 -04:00
Timothy Flynn
c204149bbd Meta+CI: Enforce python linting with ruff
We could use flake8 for linting, but ruff is compatible with black
formatting out-of-the-box. It also seems to catch more than flake8,
such as unnecessary f-strings.
2025-06-09 11:25:14 -04:00
Timothy Flynn
9e8336c04f Meta: Lint python files with black
It's the industry standard nowadays. This also lets us add a flag to the
lint-python.sh script to overwrite our python files in place.
2025-05-22 16:21:42 +02:00