Commit Graph

7 Commits

Author SHA1 Message Date
ed cba90a77fe
Make UUID path parameter conversion more flexible (#2806) 2024-12-25 08:48:06 +00:00
Marcelo Trylesinski b9db010d49
Set `line-length` to 120 on Ruff (#2679)
* Set `line-length` to 120 on Ruff

* Add links to selected rules

* Remove empty strings

* Fix more stuff
2024-09-01 15:11:01 +02:00
Scirlat Danut 78fcd54c07
Create types module inside tests (#2502)
* Create types module inside tests

* Apply suggestions from code review

* Apply suggestions from code review

* Fix check errors

* Change testclientfactory due to autotest

* No cover fix

* Apply suggestions from code review

* Skip code coverage for TestClientFactory protocol

* Apply suggestions from code review

* Small improvements

* Lint

* Fix everything

---------

Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 03:31:16 -06:00
Scirlat Danut 043c800210
Added type annotations to test_convertors.py (#2476)
* added type annotations to test_convertors.py

* Apply suggestions from code review

---------

Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-02-04 18:39:34 +00:00
Viicos 7c8ca17773
Use mypy `strict` (#2180)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-07-23 15:41:50 -06:00
Marcelo Trylesinski 865efebac9
Fix `FloatConvertor` regex (#1973)
* Bugfix of regex at FloatConvertor (version 2)

For passing your checks of https://github.com/encode/starlette/pull/1942
A correct statement is: regex = r"[0-9]+(\.[0-9]+)?"
Reference: https://www.flake8rules.com/rules/W605.html

I have no problem to corrected without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer.
Having submitted last pull-request, I realized to add a 'r' prefix to pass your tests.

* Add test

Co-authored-by: Ching <thus.kindly@gmail.com>
2022-12-03 12:16:16 +01:00
Marcelo Trylesinski 199fc703f3
Add custom URL convertor register (#1437)
* Add register that allows custom URL convertors

* Add tests

* Simplify tests and refresh CONTENT_TYPES

* Add docs

* Simplify datetime import

* Ups

* Fix remove last dt
2022-01-28 17:48:22 +01:00