Skip to content

Commit

Permalink
Move coverage and mypy configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Apr 2, 2023
1 parent b9fe995 commit 950167a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ jobs:
- name: Run tests
run: |
python -m pip install -U pip setuptools wheel
pip install coverage
pip install .
pip install .[dev]
coverage run -m unittest discover -v
coverage xml
shell: bash
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ dev = [
homepage = "https://github.com/aiortc/aioquic"
documentation = "https://aioquic.readthedocs.io/"

[tool.coverage.run]
source = ["aioquic"]

[tool.mypy]
disallow_untyped_calls = true
disallow_untyped_decorators = true
ignore_missing_imports = true
strict_optional = false
warn_redundant_casts = true
warn_unused_ignores = true

[tool.ruff]
select = [
"E", # pycodestyle
Expand Down
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

0 comments on commit 950167a

Please sign in to comment.