Skip to content

Commit 81bfd42

Browse files
[DPE-7322] Shorten default database name (#51)
1 parent ebbcade commit 81bfd42

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ On using the `mysql` legacy relation interface with either [mysql] or [mysql-k8s
1717
necessary to config the database name with:
1818

1919
```shell
20-
> juju config mysql-k8s mysql-interface-database=continuous_writes_database
20+
> juju config mysql-k8s mysql-interface-database=continuous_writes
2121
```
2222

2323
## Actions

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ options:
99
database_name:
1010
description: "Name of database to direct continuous writes to"
1111
type: string
12-
default: "continuous_writes_database"
12+
default: "continuous_writes"
1313
sleep_interval:
1414
description: "How many milliseconds to sleep between writes"
1515
default: 0

pyproject.toml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ target-version = ["py38"]
3434
# Linting tools configuration
3535
[tool.ruff]
3636
line-length = 99
37+
extend-exclude = ["__pycache__", "*.egg_info"]
38+
39+
[tool.ruff.lint]
3740
select = ["E", "W", "F", "C", "N", "D", "I001"]
41+
ignore = ["E501", "D107"]
3842
extend-ignore = [
3943
"D203",
4044
"D204",
@@ -48,9 +52,15 @@ extend-ignore = [
4852
"D409",
4953
"D413",
5054
]
51-
ignore = ["E501", "D107"]
52-
extend-exclude = ["__pycache__", "*.egg_info"]
53-
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
5455

55-
[tool.ruff.mccabe]
56+
[tool.ruff.lint.per-file-ignores]
57+
"tests/*" = [
58+
"D100",
59+
"D101",
60+
"D102",
61+
"D103",
62+
"D104"
63+
]
64+
65+
[tool.ruff.lint.mccabe]
5666
max-complexity = 10

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description = Apply coding style standards to code
2525
deps =
2626
ruff
2727
commands =
28-
ruff {[vars]all_path}
28+
ruff format {[vars]all_path}
2929

3030
[testenv:lint]
3131
description = Check code against coding style standards

0 commit comments

Comments
 (0)