Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ On using the `mysql` legacy relation interface with either [mysql] or [mysql-k8s
necessary to config the database name with:

```shell
> juju config mysql-k8s mysql-interface-database=continuous_writes_database
> juju config mysql-k8s mysql-interface-database=continuous_writes
```

## Actions
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ options:
database_name:
description: "Name of database to direct continuous writes to"
type: string
default: "continuous_writes_database"
default: "continuous_writes"
sleep_interval:
description: "How many milliseconds to sleep between writes"
default: 0
Expand Down
18 changes: 14 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ target-version = ["py38"]
# Linting tools configuration
[tool.ruff]
line-length = 99
extend-exclude = ["__pycache__", "*.egg_info"]

[tool.ruff.lint]
select = ["E", "W", "F", "C", "N", "D", "I001"]
ignore = ["E501", "D107"]
extend-ignore = [
"D203",
"D204",
Expand All @@ -48,9 +52,15 @@ extend-ignore = [
"D409",
"D413",
]
ignore = ["E501", "D107"]
extend-exclude = ["__pycache__", "*.egg_info"]
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}

[tool.ruff.mccabe]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D100",
"D101",
"D102",
"D103",
"D104"
]

[tool.ruff.lint.mccabe]
max-complexity = 10
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ description = Apply coding style standards to code
deps =
ruff
commands =
ruff {[vars]all_path}
ruff format {[vars]all_path}

[testenv:lint]
description = Check code against coding style standards
Expand Down