ServeStatic
ServeStatic copied to clipboard
Production-grade static file server for Python web apps.
### Description The [range response test in `test_django_servestatic`](https://github.com/Archmonger/ServeStatic/blob/67075d51556a32583f13dd8570e85d6c7266b15a/tests/test_django_servestatic.py#L340-L353) was disabled due to bugs related to the test suite. It is assumed that the pytest fixture `AppServer` was conflicting with how...
### Description Checking coverage locally is currently a bit awkward. We should create a `hatch` command to automate this.
### Description Documentation link checking via `linkcheckmd` [was disabled](https://github.com/Archmonger/ServeStatic/pull/35#issuecomment-2369600334) due to ReadTheDocs (RTD) blacklisting GitHub Workflows IP addresses. At the time, there wasn't any viable workaround besides either disabling link...
### Description VSCode has a relatively new feature called [profiles](https://code.visualstudio.com/docs/editor/profiles), which allows for creating reusable workspace configurations. We should look into whether this is worth supporting within the repo.
### Description Seems like this project and https://github.com/matthiask/blacknoise are the 2 ASGI-compliant/-native static file serving middleware implementations for folks doing e.g. Django ASGI w/ uvicorn as the webserver. I'm sure...
### Description We currently use a handful of testing functions for sending/receiving data to our ASGI/WSGI apps. Would be easier to [use HTTPX](https://www.python-httpx.org/advanced/transports/#asgi-transport) to do the same task.
### Description Right now we only hit ~96% coverage when running `hatch test --cover --all`. A few more tests will need to be added to reach 100% coverage.
### Description Currently unit tests are run using dummy servers (based on legacy whitenoise tests), but I personally am not a fan of dummy tests. Long term it would be...
### Description The `_nostatic` denotator in `runserver_nostatic` is a bit confusing without background knowledge. There are several options available for better names - `servestatic.override_runserver` - `servestatic.override_runserver_cmd` - `servestatic.override_runserver_with_servestatic` - `servestatic.runserver`...
> Note from Archmonger: > This ticket [was discovered](https://github.com/Archmonger/ServeStatic/issues/64#issuecomment-2490072512) to be a middleware misconfiguration issue. [Automated checks](https://github.com/Archmonger/ServeStatic/issues/64#issuecomment-2490363320) should be created that tell the user if something is set up wrong....