Commit Graph

1462 Commits

Author SHA1 Message Date
Alessio Bogon 79abaa4d14
Add flake8-bugbear, and fix issues 2024-10-15 20:18:23 +02:00
Alessio Bogon 178b12f038
Fix flake8 issues 2024-10-15 20:17:14 +02:00
Alessio Bogon 140a6ae8f7
Add flake8 to the pre-commit hooks 2024-10-15 20:07:11 +02:00
Alessio Bogon 18de3a8e07
Merge pull request #719 from pytest-dev/py3.13
Drop python 3.8 compatibility
2024-10-15 19:34:41 +02:00
Jason Allen 42f7560853 Response to feedback 2024-10-15 18:27:59 +01:00
Alessio Bogon a41887d9d9
run `pre-commit --all-files` and remove unused imports 2024-10-15 19:24:50 +02:00
Alessio Bogon 590007ab1d
Drop support for python 3.8 (EOL) 2024-10-15 19:19:06 +02:00
Alessio Bogon b22f3c1dbb
Test against python 3.13 stable 2024-10-15 19:05:59 +02:00
Alessio Bogon 9b9c39eda4
Merge pull request #718 from pytest-dev/ab/bump-version
Bump version 8.0.0b2
2024-10-15 19:02:32 +02:00
Alessio Bogon 3ac7bc4d39
Bump version 8.0.0b2 2024-10-15 19:01:29 +02:00
Jason Allen 7e3d6dc819 Remove Multiline strings
Tidy up readme example
2024-10-15 13:38:24 +01:00
Jason Allen 2d5d598214 Fix escaping 2024-10-15 13:33:18 +01:00
Jason Allen 2545c1daa9 Remove references to multiline strings
Add docstring
2024-10-15 13:30:58 +01:00
pre-commit-ci[bot] 4e821f783f
[pre-commit.ci] pre-commit autoupdate (#716)
updates:
- [github.com/asottile/pyupgrade: v3.17.0 → v3.18.0](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.18.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-15 06:37:01 +02:00
Alessio Bogon c3701607c6
Merge pull request #712 from jsa34/datatables
Datatables
2024-10-13 20:03:15 +02:00
jsa34 5388c9b6a6
Update README.rst
Remove duplicate text content
2024-10-13 18:52:56 +01:00
jsa34 fb119a2e6b
Update CHANGES.rst 2024-10-13 18:51:41 +01:00
jsa34 ae93a21f60
Update test_datatable.py
Remove outdated and incorrect type hint in test
2024-10-10 06:54:17 +01:00
jsa34 379aba4fd5
Merge branch 'master' into datatables 2024-10-08 19:01:38 +01:00
Alessio Bogon 655f08b44c
Merge pull request #714 from pytest-dev/pre-commit-ci-update-config 2024-10-08 07:54:04 +02:00
pre-commit-ci[bot] 2f9f71f426
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 24.8.0 → 24.10.0](https://github.com/psf/black/compare/24.8.0...24.10.0)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
2024-10-08 00:36:40 +00:00
Jason Allen 222346a9b6 Feedback response 2024-10-07 07:02:11 +01:00
Jason Allen add60f62cf Fix README.rst example 2024-10-06 22:36:09 +01:00
Jason Allen f1f4f4ef02 Missed a refactoring that is no longer necessary 2024-10-06 22:02:41 +01:00
Jason Allen e4f7801e08 Return missing newlines 2024-10-06 22:01:55 +01:00
Jason Allen 34a5e50c74 Missed a docstring tidy up 2024-10-06 22:00:20 +01:00
Jason Allen 8b75426c2a Feedback response 2024-10-06 21:57:05 +01:00
Jason Allen a33ad3b074 Merge branch 'master' into datatables 2024-10-06 21:12:41 +01:00
Alessio Bogon 626df4c41c
Merge pull request #713 from jsa34/asterisk-steps
Add test to use asterisks to continue step type instead of And or But
2024-10-06 17:18:59 +02:00
Jason Allen 2bfc1ebb6f Remove unused imports 2024-10-05 10:31:44 +01:00
Jason Allen 7bdd1d62c1 Make the test clearer what is being tested 2024-10-05 10:30:27 +01:00
Jason Allen 15b83ee41b Add changelog entry.
Add section to README to exemplify usage.
2024-10-05 10:13:54 +01:00
Jason Allen f189ae4495 Add test to use asterisks to continue step type instead of And or But 2024-10-04 17:00:06 +01:00
Jason Allen 674a0c29b6 Make the id and location attributes private in the gherkin parser so that they are not part of the public API if we share the objects from the parser (as we do now with the DataTable) 2024-10-04 13:29:27 +01:00
Jason Allen c954f43834 Reverting max-parallel limit as it didn't fix the hangs 2024-10-04 07:14:15 +01:00
Jason Allen b1098bc8b6 Try not running in parallel? 2024-10-04 06:55:54 +01:00
Jason Allen d4c3c03b08 Tidy up of to_dict and transpose code 2024-10-04 06:47:57 +01:00
Jason Allen d8b7bf5dff Mini tidy up to try and force actions to run again (hanging strikes again!) 2024-10-03 20:48:35 +01:00
Jason Allen bade62a9de Remove accidental duplication of code
Remove unnecessary safeguards (as the parser already does these!)
Add test to increase coverage
2024-10-03 20:40:53 +01:00
Jason Allen 430501b045 Add provisional documentation for data_table fixture
Fix documentation to no longer allow multiline steps without using triple quotes
2024-10-03 15:54:33 +01:00
Jason Allen ae721f9af0 Fix mypy 2024-10-03 15:13:58 +01:00
Jason Allen 8835e3ae33 Fix parser test 2024-10-03 14:02:13 +01:00
Jason Allen 035e5c58ec Add datatables
Fix casing of attributes of some parser classes (camel -> snake case)
Fix mistake that datatables are parsed the same as example tables.
Make data_table fixture only generated if a data table exists for a given step, otherwise the fixture is not generated.
Added methods to translate data table to a map/dict (using the first row as keys) and the ability to transpose the datatable for the case of vertical vs. horizontal data tables.
2024-10-03 13:41:33 +01:00
Alessio Bogon b3956b36b6
Merge pull request #709 from jsa34/scenario-outline-with-slashes 2024-10-02 21:34:05 +02:00
jsa34 aecff18fa4
Update test_outline.py
Trying to force a rerun: change American spelling to British
2024-10-02 16:19:13 +01:00
Jason Allen 8e09690c36 Merge branch 'master' into scenario-outline-with-slashes
# Conflicts:
#	CHANGES.rst
2024-10-01 20:22:15 +01:00
Alessio Bogon 86f4ee17f6
Merge pull request #706 from jsa34/multiline-tags 2024-10-01 18:11:28 +02:00
jsa34 617fc44a89
Update CHANGES.rst
Remove the American English comma usage now we know the CI is fine!
2024-10-01 17:10:23 +01:00
jsa34 482189874d
Update test_tags.py
Useless commit to retrigger checks
2024-10-01 17:02:40 +01:00
jsa34 9d9a1008e6
Update CHANGES.rst
Useless commit to trigger actions again
2024-10-01 16:57:15 +01:00