Skip to content

Commit 0de551e

Browse files
committed
Update Prospector configuration
1 parent 0bb4520 commit 0de551e

5 files changed

Lines changed: 32 additions & 43 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ repos:
9393
- --die-on-tool-error
9494
additional_dependencies:
9595
- prospector-profile-duplicated==1.6.0 # pypi
96+
- prospector-profile-utils==1.9.1 # pypi
9697
- repo: https://github.com/sbrunner/jsonschema-validator
9798
rev: 0.1.0
9899
hooks:

.prospector.yaml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
11
inherits:
2+
- utils:base
3+
- utils:no-design-checks
24
- duplicated
3-
strictness: veryhigh
4-
max-line-length: 110
5-
doc-warnings: true
6-
7-
pylint:
8-
disable:
9-
- too-many-arguments
10-
- missing-module-docstring
11-
12-
pycodestyle:
13-
disable:
14-
- E722 # Do not use bare 'except'
15-
16-
pydocstyle:
17-
disable:
18-
- D104 # Missing docstring in public package
19-
- D212 # Multi-line docstring summary should start at the first line
20-
- D407 # Missing dashed underline after section ('Arguments')
21-
- D412 # No blank lines allowed between a section header and its content ('Arguments')
22-
bandit:
23-
run: true
24-
25-
mypy:
26-
run: true
27-
28-
pyroma:
29-
run: true
30-
31-
mccabe:
32-
run: false

bashcolor/__init__.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
A simple module to colorize text in the terminal.
3+
4+
This module provides a simple way to colorize text in the terminal.
5+
"""
6+
17
# see also: http://misc.flogisoft.com/bash/tip_colors_and_formatting
28

39

@@ -49,14 +55,14 @@ def colorize(
4955
Colorize a text.
5056
5157
Arguments:
52-
53-
text: the text to be colorize
54-
color: the text color code
55-
background: the background color code
56-
effects: the effect code (BOLD, DIM, UNDERLINE, BLINK, INVERSE, HIDDEN)
57-
color_256: The 256 text color code, use print_colors to get the possible values
58-
background_256: The 256 background color code, use print_colors to get the possible values
59-
with_end: Set to False to don't add the end tag
58+
---------
59+
text: the text to be colorize
60+
color: the text color code
61+
background: the background color code
62+
effects: the effect code (BOLD, DIM, UNDERLINE, BLINK, INVERSE, HIDDEN)
63+
color_256: The 256 text color code, use print_colors to get the possible values
64+
background_256: The 256 background color code, use print_colors to get the possible values
65+
with_end: Set to False to don't add the end tag
6066
"""
6167
if effects is None:
6268
effects = []

poetry.lock

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ print_colors = "bashcolor:print_colors"
3636
[tool.poetry.dependencies]
3737
python = ">=3.9,<3.13"
3838

39-
[tool.poetry.dev-dependencies]
40-
prospector = { version = "1.12.1", extras = ["with_bandit", "with_mypy", "with_pyroma"] }
41-
4239
[tool.poetry.group.dev.dependencies]
40+
prospector = { version = "1.12.1", extras = ["with_bandit", "with_mypy", "with_pyroma"] }
4341
prospector-profile-duplicated = "1.6.0"
42+
prospector-profile-utils = "1.9.1"
4443

4544
[build-system]
4645
requires = ["poetry-core>=1.0.0", "poetry-plugin-tweak-dependencies-version", "poetry-dynamic-versioning", "poetry-plugin-drop-python-upper-constraint"]

0 commit comments

Comments
 (0)