From: Johnny.H Date: Sun, 3 Sep 2023 02:46:23 +0000 (+0800) Subject: Move coverage configurations to `pyproject.toml` (#3858) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/58f1bf69d2ed2f6e3e5fa6a31e01ae58c9ffcff9?ds=sidebyside;hp=47676bf5939ae5c8e670d947917bc8af4732eab6 Move coverage configurations to `pyproject.toml` (#3858) --- diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 5577e49..0000000 --- a/.coveragerc +++ /dev/null @@ -1,9 +0,0 @@ -[report] -omit = - src/blib2to3/* - tests/data/* - */site-packages/* - .tox/* - -[run] -relative_files = True diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 216b0ba..7daa31e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,7 @@ jobs: if: github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' && !startsWith(matrix.python-version, 'pypy') - uses: AndreMiras/coveralls-python-action@v20201129 + uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99 with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel: true @@ -77,7 +77,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Send finished signal to Coveralls - uses: AndreMiras/coveralls-python-action@v20201129 + uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99 with: parallel-finished: true debug: true diff --git a/pyproject.toml b/pyproject.toml index 6cd3f34..ea5c9f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -210,3 +210,12 @@ filterwarnings = [ # 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''' ] +[tool.coverage.report] +omit = [ + "src/blib2to3/*", + "tests/data/*", + "*/site-packages/*", + ".tox/*" +] +[tool.coverage.run] +relative_files = true