Skip to content

Commit 878c0e2

Browse files
committed
docs update
1 parent 85ebee0 commit 878c0e2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

docs/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All described objects can be imported from the `xrlint.all` module.
44

5+
## Class `XRLint`
6+
7+
::: xrlint.cli.engine.XRLint
8+
59
## Function `new_linter()`
610

711
::: xrlint.linter.new_linter

xrlint/cli/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_config_for_file(self, file_path: str) -> Config | None:
129129
"""
130130
return self.config_list.compute_config(file_path)
131131

132-
def print_config_for_file(self, file_path) -> None:
132+
def print_config_for_file(self, file_path: str) -> None:
133133
"""Print computed configuration for the given file.
134134
135135
Args:

xrlint/linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def new_linter(
1212
config: Config | dict | None = None,
1313
**config_kwargs: dict[str, Any],
1414
) -> "Linter":
15-
"""Create a new `Linter` with core rules loaded.
15+
"""Create a new `Linter` with just the core plugin configured.
1616
1717
Args:
1818
recommended: `True` if the recommended configurations of the builtin

xrlint/testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class RuleTester:
4646
"""Utility that helps to test rules.
4747
4848
Args:
49-
config: optional xrlint configuration
49+
config: optional XRLint configuration.
5050
"""
5151

52-
def __init__(self, **config):
52+
def __init__(self, **config: dict[str, Any]):
5353
self._config = config
5454

5555
def run(

0 commit comments

Comments
 (0)