Skip to content

Commit fb5394a

Browse files
authored
docs: Set line length to docs related code to 90 (#352)
### Description Set line length to docs related code to 90 to have each code example fully visible without the need to use slider. Update existing examples to be compliant.
1 parent a323bf0 commit fb5394a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/02_concepts/code/06_logging_formatter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
# Create a custom logging formatter
99
formatter = logging.Formatter(
10-
'%(asctime)s - %(name)s - %(levelname)s - %(message)s - %(attempt)s - %(status_code)s - %(url)s'
10+
'%(asctime)s - %(name)s - %(levelname)s - %(message)s - '
11+
'%(attempt)s - %(status_code)s - %(url)s'
1112
)
1213
handler = logging.StreamHandler()
1314
handler.setFormatter(formatter)

docs/pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Line lenght different from the rest of the code to make sure that the example codes visualised on the generated
2+
# documentation webpages are shown without vertical slider to make them more readable.
3+
4+
[tool.ruff]
5+
# Inherit all from project top configuration file.
6+
extend = "../pyproject.toml"
7+
8+
# Override just line length
9+
line-length = 90 # Maximum possible fit to the doc webpage. Longer lines need slider.

0 commit comments

Comments
 (0)