Our great sponsors
-
tutorials
Some code that I presented in my blog can be found here. Check it out 🔍 (by willianantunes)
-
RegExr
RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Let's jump into the concrete implementation! By the way, as you may have noticed, I'm using pytest, but you can see how it would be with unittest if you check the repository.
To have a valid regular expression, I used the site RegExr to create it. If you don't know how it works, I recommend the book Piazinho. The regex pattern can be defined in our Python code like the following:
I've found many bugs with the help of mypy since I started using it two years ago, so let's make our project a bit better. Let's apply black and isort also. Here's the script to evaluate our project:
I've found many bugs with the help of mypy since I started using it two years ago, so let's make our project a bit better. Let's apply black and isort also. Here's the script to evaluate our project:
Related posts
- Let's meet Black: Python Code Formatting
- Auto-formater for Android (Kotlin)
- Lute v3 - installed software for learning foreign languages through reading
- Python rewrites values in all nested dictionaries, rather than iterating through them uniquely?
- Forcing double quotes would make this great project unusable for many users who picked the rule of using single quotes.