Skip to content

Commit

Permalink
remove mdformat because of (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea authored Nov 20, 2024
1 parent 3054af8 commit a6d309e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 3 additions & 0 deletions docs/src/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def get_message(*, recipient: Recipient = required) -> str:
```

!!! warning

Don't forget to add the `required` default value. Without it, PyBooster will not
know that the argument is a dependency that needs to be injected.

Expand Down Expand Up @@ -424,6 +425,7 @@ with solution(sqlite_connection.bind(":memory:")):
```

!!! note

Bindable parameters are not allowed to be dependencies.

### Generic Providers
Expand Down Expand Up @@ -533,6 +535,7 @@ with solution(config_file_provider.bind(Config, json_file)):
```

!!! tip

This approach also works great for a provider that has `overload` implementations.

### Singleton Providers
Expand Down
7 changes: 0 additions & 7 deletions project.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ def cov(no_test: bool, no_report: bool):

@main.command("lint")
@click.option("--check", is_flag=True, help="Check for linting issues without fixing.")
@click.option("--no-md-style", is_flag=True, help="Style check Markdown files.")
@click.option("--no-py-style", is_flag=True, help="Style check Python files.")
@click.option("--no-py-types", is_flag=True, help="Type check Python files.")
@click.option("--no-uv-locked", is_flag=True, help="Check that the UV lock file is synced")
@click.option("--no-yml-style", is_flag=True, help="Style check YAML files.")
def lint(
check: bool,
no_md_style: bool,
no_py_style: bool,
no_py_types: bool,
no_uv_locked: bool,
Expand All @@ -72,11 +70,6 @@ def lint(
else:
run(["ruff", "format"])
run(["ruff", "check", "--fix"])
if not no_md_style:
if check:
run(["mdformat", "--ignore-missing-references", "--check", "."])
else:
run(["mdformat", "--ignore-missing-references", "."])
if not no_yml_style:
if check:
run(["yamlfix", "--check", "."])
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ docs = [
]
lint = [
{ include-group = "test" },
"mdformat-mkdocs==3.1.1",
"mdformat-pyproject==0.0.1",
"mdformat-ruff==0.1.3",
"mdformat-tables==1.0.0",
"mdformat==0.7.19",
"pyright==1.1.389",
"ruff==0.7.3",
"yamlfix==1.17.0",
Expand Down

0 comments on commit a6d309e

Please sign in to comment.