ruff/crates/ruff_linter/resources/test/fixtures/flake8_pytest_style
Harutaka Kawamura 3d9ac535e9
Fix pytest-parametrize-names-wrong-type (PT006) to edit both argnames and argvalues if both of them are single-element tuples/lists (#14699)
## Summary

Close #11243. Fix `pytest-parametrize-names-wrong-type (PT006)` to edit
both `argnames` and `argvalues` if both of them are single-element
tuples/lists.

```python
# Before fix
@pytest.mark.parametrize(("x",), [(1,), (2,)])
def test_foo(x):
    ...

# After fix:
@pytest.mark.parametrize("x", [1, 2])
def test_foo(x):
    ...
```

## Test Plan

New test cases
2024-12-09 09:58:52 +01:00
..
PT001.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT002.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT003.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT006.py Fix pytest-parametrize-names-wrong-type (PT006) to edit both argnames and argvalues if both of them are single-element tuples/lists (#14699) 2024-12-09 09:58:52 +01:00
PT006_and_PT007.py Fix pytest-parametrize-names-wrong-type (PT006) to edit both argnames and argvalues if both of them are single-element tuples/lists (#14699) 2024-12-09 09:58:52 +01:00
PT007.py [flake8-pytest-style] Fix single-tuple conversion in pytest-parametrize-values-wrong-type (#10862) 2024-04-10 14:20:09 -04:00
PT008.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT009.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT010.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT011.py Fix pytest-raises-too-broad (PT011) to flag pytest.raises call with keyword expected_exception (#14298) 2024-11-12 14:28:42 -05:00
PT012.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT013.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT014.py Fix PT014 autofix for last item in list (#10532) 2024-03-23 09:26:42 -04:00
PT015.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT016.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT017.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT018.py Rename Autofix to Fix (#7657) 2023-09-28 10:53:05 +00:00
PT019.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT020.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT021.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT022.py Update return type for PT022 autofix (#7613) 2023-09-24 06:39:47 +00:00
PT023.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT024.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT025.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT026.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT027_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PT027_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00