Move coverage configurations to pyproject.toml (#3858)

This commit is contained in:
Johnny.H 2023-09-03 10:46:23 +08:00 committed by GitHub
parent 47676bf593
commit 58f1bf69d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View File

@ -1,9 +0,0 @@
[report]
omit =
src/blib2to3/*
tests/data/*
*/site-packages/*
.tox/*
[run]
relative_files = True

View File

@ -62,7 +62,7 @@ jobs:
if: if:
github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' && github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' &&
!startsWith(matrix.python-version, 'pypy') !startsWith(matrix.python-version, 'pypy')
uses: AndreMiras/coveralls-python-action@v20201129 uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true parallel: true
@ -77,7 +77,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Send finished signal to Coveralls - name: Send finished signal to Coveralls
uses: AndreMiras/coveralls-python-action@v20201129 uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99
with: with:
parallel-finished: true parallel-finished: true
debug: true debug: true

View File

@ -210,3 +210,12 @@ filterwarnings = [
# Work around https://github.com/pytest-dev/pytest/issues/10977 for Python 3.12 # Work around https://github.com/pytest-dev/pytest/issues/10977 for Python 3.12
'''ignore:(Attribute s|Attribute n|ast.Str|ast.Bytes|ast.NameConstant|ast.Num) is deprecated and will be removed in Python 3.14:DeprecationWarning''' '''ignore:(Attribute s|Attribute n|ast.Str|ast.Bytes|ast.NameConstant|ast.Num) is deprecated and will be removed in Python 3.14:DeprecationWarning'''
] ]
[tool.coverage.report]
omit = [
"src/blib2to3/*",
"tests/data/*",
"*/site-packages/*",
".tox/*"
]
[tool.coverage.run]
relative_files = true