Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to legacy_tox_ini, remove tox-ini-fmt. #22

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ jobs:
- uses: actions/checkout@v4
- run: |
sudo apt update
sudo apt install python3-btrfsutil tox
- run: |
sudo tox
sudo apt install python3-btrfsutil python3-virtualenv
python3 -m virtualenv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade tox
sudo -E env PATH=$PATH tox

pre-commit:
runs-on: ubuntu-latest
Expand Down
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ repos:
rev: 2.1.3
hooks:
- id: pyproject-fmt
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.1
hooks:
- id: tox-ini-fmt
- repo: https://github.com/google/yamlfmt
rev: v0.12.1
hooks:
Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,36 @@ lint.isort.force-sort-within-sections = true
lint.isort.order-by-type = false
lint.pydocstyle.convention = "google"

[tool.coverage.run]
plugins = [
"covdefaults",
]
source = [
"btrfs2s3",
"tests",
]

[tool.tox]
legacy_tox_ini = """
[tox]
requires =
tox>=4.2
env_list =
py

[testenv]
system_site_packages = true
deps =
covdefaults
coverage
moto[s3]
pytest
commands =
coverage erase
coverage run -m pytest {posargs}
coverage report
"""

[tool.mypy]
mypy_path = "typeshed"
strict = true
23 changes: 0 additions & 23 deletions tox.ini

This file was deleted.