mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-05 03:41:08 +01:00
Drop <3.7 support and add type hints (#59)
- Drop support for Python <3.7 - Bump the pre-commit version used in CI - Add type hinting and docstrings - Add mypy to pre-commit config - Fix typing issues - Update colors module - Update colors module to use uppercase hex codes - Add `__lt__` to allow sorting colors by name - Fix `build_examples.py` to work with color Enum - Update example badges in `README.md` - Fix typing issues in server - Update travis links in `README.md` - Fix PyPi deployment bug (#60)
This commit is contained in:
48
README.md
48
README.md
@@ -3,7 +3,7 @@
|
||||
Python project for generating badges for your projects
|
||||
|
||||
[](https://pypi.org/project/anybadge)
|
||||
[](https://travis-ci.org/jongracecox/anybadge)
|
||||
[](https://app.travis-ci.com/github/jongracecox/anybadge)
|
||||
[](https://pypistats.org/packages/anybadge)
|
||||
[](https://github.com/jongracecox/anybadge/commits/master)
|
||||
[](https://github.com/jongracecox/anybadge/blob/master/LICENSE)
|
||||
@@ -137,29 +137,29 @@ badge = anybadge.Badge(label='custom color', value='teal', default_color='#00808
|
||||
|
||||
Available named colors are:
|
||||
|
||||
| Color Name | Hex Code | Example |
|
||||
| ---------- | -------- | ------- |
|
||||
| aqua | #00FFFF |  |
|
||||
| black | #000000 |  |
|
||||
| blue | #0000FF |  |
|
||||
| bright_red | #FF0000 |  |
|
||||
| bright_yellow | #FFFF00 |  |
|
||||
| fuchsia | #FF00FF |  |
|
||||
| gray | #808080 |  |
|
||||
| green | #4C1 |  |
|
||||
| light_grey | #9F9F9F |  |
|
||||
| lime | #00FF00 |  |
|
||||
| maroon | #800000 |  |
|
||||
| navy | #000080 |  |
|
||||
| olive | #808000 |  |
|
||||
| orange | #FE7D37 |  |
|
||||
| purple | #800080 |  |
|
||||
| red | #E05D44 |  |
|
||||
| silver | #C0C0C0 |  |
|
||||
| teal | #008080 |  |
|
||||
| white | #FFFFFF |  |
|
||||
| yellow | #DFB317 |  |
|
||||
| yellow_green | #A4A61D |  |
|
||||
| Color Name | Hex | Example |
|
||||
| ------------- | ------- | ------- |
|
||||
| aqua | #00FFFF |  |
|
||||
| black | #000000 |  |
|
||||
| blue | #0000FF |  |
|
||||
| bright_red | #FF0000 |  |
|
||||
| bright_yellow | #FFFF00 | |
|
||||
| fuchsia | #FF00FF |  |
|
||||
| gray | #808080 |  |
|
||||
| green | #4C1 |  |
|
||||
| light_grey | #9F9F9F |  |
|
||||
| lime | #00FF00 |  |
|
||||
| maroon | #800000 |  |
|
||||
| navy | #000080 |  |
|
||||
| olive | #808000 |  |
|
||||
| orange | #FE7D37 |  |
|
||||
| purple | #800080 |  |
|
||||
| red | #E05D44 |  |
|
||||
| silver | #C0C0C0 |  |
|
||||
| teal | #008080 |  |
|
||||
| white | #FFFFFF |  |
|
||||
| yellow | #DFB317 |  |
|
||||
| yellow_green | #A4A61D |  |
|
||||
|
||||
### Semantic version support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user