Alessio Bogon
18320bbefc
`parsers.re` now does fullmatch.
...
This makes it work the same way other parsers work (they don't ignore non-matching characters at the end of the string)
2022-07-12 18:56:52 +02:00
Alessio Bogon
e10dcb8168
fix typing
2022-07-08 21:37:33 +02:00
Alessio Bogon
52e8c78012
Remove unused imports
2022-07-08 14:54:06 +02:00
Alessio Bogon
e57de7ecd4
No need to keep runtime types
2022-07-08 14:53:29 +02:00
Alessio Bogon
588c22a16c
More specific types
2022-07-08 14:47:49 +02:00
Alessio Bogon
00abab99dd
Remove useless code
2022-03-03 13:25:05 +01:00
Alessio Bogon
c6d13b8b59
Fix typing
2022-03-03 12:33:02 +01:00
Alessio Bogon
b112f56e06
Use simple inheritance check rather than duck typing checks
2022-02-24 16:53:04 +01:00
Alessio Bogon
644df2ee52
Use newer typing syntax
2022-02-24 16:00:36 +01:00
Alessio Bogon
021aa3a2e3
Use "from __future__ import annotations" to be less verbose
2022-02-24 15:32:20 +01:00
Alessio Bogon
78cf86af32
Fix many types
2021-10-20 17:15:03 +02:00
Alessio Bogon
63c528fba3
Remove abomination
2021-10-20 16:22:00 +02:00
Alessio Bogon
081413fabf
Remove useless code
2021-10-20 16:14:45 +02:00
Alessio Bogon
7ab5aeeb2a
Blindly add annotations using pyannotate. A lot to fix.
...
Commands run:
```
pytest tests/
pyannotate --py3 -w pytest_bdd tests
git add pytest_bdd tests
pre-commit run
```
2021-10-01 20:17:43 +02:00
Alessio Bogon
cdb1bdada9
Add `pyupgrade` tool to pre-commit hooks ( #416 )
...
* `pyupgrade --py36-plus tests/**/*.py pytest_bdd/**/*.py setup.py`
* add pyupgrade to pre-commit config
2021-04-16 09:35:49 +02:00
Konstantin Goloveshko
e1dc0cad9a
Update python and pytest
...
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
- Simplify getting step parser strategy; If step could be stringified it could be used
- Respect pytest --strict option in tests
2021-03-02 19:08:00 +02:00
Alessio Bogon
6047a35ef1
Apply `black` formatter to the codebase
2019-08-27 17:54:58 +02:00
Alessio Bogon
dfed37115d
Reorganize imports
2019-02-19 16:50:40 +01:00
Alessio Bogon
c298a3edf5
Do not accept regex as step definitions
2019-02-19 13:59:09 +01:00
Alessio Bogon
51fa93e9e1
Implicitly decode step definitions to unicode with utf-8
2019-02-19 13:59:09 +01:00
Anatoly Bubenkov
cc63412bf1
Pass additional arguments to parsers
2015-07-13 18:26:51 +02:00
Anatoly Bubenkov
a97cefd26c
fix regex step deprecation
2015-01-13 15:33:54 +01:00
Anatoly Bubenkov
d1fa804426
Pluggable parsers for step definitions. closes #91
2015-01-07 16:26:20 +01:00