Commit Graph

61 Commits

Author SHA1 Message Date
bastimeyer 9fd14e3f9d chore: add "Q" rules to ruff config 2023-02-09 10:26:50 -08:00
bastimeyer faab9200c7 chore: add "I" and "TID" rules to ruff config 2023-02-09 10:26:50 -08:00
bastimeyer 98596e9331 tools: replace flake8 with ruff 2023-02-09 09:54:14 -08:00
bastimeyer 2f7396ba24 tools: check typing in docs dir separately 2023-01-26 09:42:34 -08:00
bastimeyer 2d74c69882 tests: set filterwarnings=always via pytest config
- Add pytest config to pyproject.toml
- Set pytest 6.0.0 as minimum version via dev-requirements.txt
- Remove unneeded filterwarnings("always") calls from tests
2023-01-14 20:14:33 -08:00
bastimeyer fe9be00832 chore: ignore coverage in TYPE_CHECKING blocks 2023-01-14 07:47:08 +01:00
bastimeyer 7039b4b3a1 tools: move list of files to mypy config
- Move list of files from CI config to mypy config in pyproject.toml,
  so that mypy can be run locally without having to specificy the same
  inputs as CLI arguments. Keep --no-incremental exclusive to CI runner.
- Update Python version of mypy CI runner.
- Fix typing ignore comment when importing importlib_metadata fallback
  in the streamlink_cli.compat module.
2022-11-08 13:24:47 +01:00
bastimeyer cfb482cac7 build: upgrade versioningit to >=2.0.0, <3
and update deprecated version format strings:
https://github.com/jwodder/versioningit/blob/v2.0.0/CHANGELOG.md
2022-06-14 15:55:16 -07:00
bastimeyer 334e18e412 tools: add mypy config
- Add mypy and available typing stubs to dev-requirements
- Add mypy config
- Add py.typed to streamlink + streamlink_cli packages (PEP 561):
  This is required, so that mypy can import types from streamlink when
  installed in editable mode. Don't publish this file for now.
  Once various streamlink APIs are properly typed, typing stub files
  can be added instead.
2022-05-24 14:07:47 -07:00
bastimeyer 9dca2cef42 chore: move coverage config to pyproject.toml 2022-04-22 10:45:08 -07:00
bastimeyer 9b0815dbee build: add pyproject.toml, switch to versioningit
- Add basic pyproject.toml with build-system information
- Drop versioneer in favor of versioningit
- Delete versioneer install module and remove its setup.cfg config
- Replace `src/streamlink/_version.py` and load streamlink's version
  string via versioningit. The module's `__version__` export will get
  replaced by a static string on build-time when creating sdists/wheels,
  which results in the old versioneer behavior with support for
  editable installs.
- Make versioningit use the same version format as versioneer
- Update MANIFEST.in and .coveragerc
2022-04-10 07:55:31 +02:00