Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all minor versions (minor) #363

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ repos:
- --die-on-tool-error
additional_dependencies:
- prospector-profile-duplicated==1.6.0 # pypi
- prospector-profile-utils==1.9.1 # pypi
- repo: https://github.com/sbrunner/jsonschema-validator
rev: 0.1.0
hooks:
Expand Down
32 changes: 2 additions & 30 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,4 @@
inherits:
- utils:base
- utils:no-design-checks
- duplicated
strictness: veryhigh
max-line-length: 110
doc-warnings: true

pylint:
disable:
- too-many-arguments
- missing-module-docstring

pycodestyle:
disable:
- E722 # Do not use bare 'except'

pydocstyle:
disable:
- D104 # Missing docstring in public package
- D212 # Multi-line docstring summary should start at the first line
- D407 # Missing dashed underline after section ('Arguments')
- D412 # No blank lines allowed between a section header and its content ('Arguments')
bandit:
run: true

mypy:
run: true

pyroma:
run: true

mccabe:
run: false
22 changes: 14 additions & 8 deletions bashcolor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
A simple module to colorize text in the terminal.

This module provides a simple way to colorize text in the terminal.
"""

# see also: http://misc.flogisoft.com/bash/tip_colors_and_formatting


Expand Down Expand Up @@ -49,14 +55,14 @@ def colorize(
Colorize a text.

Arguments:

text: the text to be colorize
color: the text color code
background: the background color code
effects: the effect code (BOLD, DIM, UNDERLINE, BLINK, INVERSE, HIDDEN)
color_256: The 256 text color code, use print_colors to get the possible values
background_256: The 256 background color code, use print_colors to get the possible values
with_end: Set to False to don't add the end tag
---------
text: the text to be colorize
color: the text color code
background: the background color code
effects: the effect code (BOLD, DIM, UNDERLINE, BLINK, INVERSE, HIDDEN)
color_256: The 256 text color code, use print_colors to get the possible values
background_256: The 256 background color code, use print_colors to get the possible values
with_end: Set to False to don't add the end tag
"""
if effects is None:
effects = []
Expand Down
Loading
Loading