Skip to content

Commit ad41f42

Browse files
committed
pre-commit
1 parent 41dd10a commit ad41f42

24 files changed

+563
-434
lines changed

Diff for: documentation/reference/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ A full list of `Licensecheck` project modules.
77
- [Licensecheck](licensecheck/index.md#licensecheck)
88
- [Module](licensecheck/module.md#module)
99
- [Cli](licensecheck/cli.md#cli)
10-
- [Formatter](licensecheck/formatter.md#formatter)
10+
- [Fmt](licensecheck/fmt.md#fmt)
1111
- [Get Deps](licensecheck/get_deps.md#get-deps)
12-
- [License Matrix](licensecheck/license_matrix.md#license-matrix)
12+
- [License Matrix](licensecheck/license_matrix/index.md#license-matrix)
13+
- [Spdx](licensecheck/license_matrix/spdx.md#spdx)
1314
- [Packageinfo](licensecheck/packageinfo.md#packageinfo)
1415
- [Resolvers](licensecheck/resolvers/index.md#resolvers)
1516
- [Native](licensecheck/resolvers/native.md#native)

Diff for: documentation/reference/licensecheck/cli.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def cli() -> None: ...
2424

2525
## main
2626

27-
[Show source in cli.py:101](../../../licensecheck/cli.py#L101)
27+
[Show source in cli.py:112](../../../licensecheck/cli.py#L112)
2828

2929
Test entry point.
3030

@@ -35,5 +35,5 @@ Note: FHConfParser (Parses in the following order: `pyproject.toml`,
3535
#### Signature
3636

3737
```python
38-
def main(args: dict) -> int: ...
38+
def main(args: dict | argparse.Namespace) -> int: ...
3939
```

Diff for: documentation/reference/licensecheck/fmt.md

+270
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
# Fmt
2+
3+
[Licensecheck Index](../README.md#licensecheck-index) / [Licensecheck](./index.md#licensecheck) / Fmt
4+
5+
> Auto-generated documentation for [licensecheck.fmt](../../../licensecheck/fmt.py) module.
6+
7+
- [Fmt](#fmt)
8+
- [_printLicense](#_printlicense)
9+
- [ansi](#ansi)
10+
- [fmt](#fmt)
11+
- [html](#html)
12+
- [markdown](#markdown)
13+
- [plainText](#plaintext)
14+
- [raw](#raw)
15+
- [rawCsv](#rawcsv)
16+
- [stripAnsi](#stripansi)
17+
18+
## _printLicense
19+
20+
[Show source in fmt.py:65](../../../licensecheck/fmt.py#L65)
21+
22+
Output a license as plain text.
23+
24+
#### Arguments
25+
26+
- `licenseEnum` *License* - License
27+
28+
#### Returns
29+
30+
Type: *str*
31+
license of plain text
32+
33+
#### Signature
34+
35+
```python
36+
def _printLicense(licenseEnum: License) -> str: ...
37+
```
38+
39+
#### See also
40+
41+
- [License](./types.md#license)
42+
43+
44+
45+
## ansi
46+
47+
[Show source in fmt.py:122](../../../licensecheck/fmt.py#L122)
48+
49+
Format to ansi.
50+
51+
#### Arguments
52+
53+
- `myLice` *License* - project license
54+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
55+
56+
#### Returns
57+
58+
Type: *str*
59+
string to send to specified output in ansi format
60+
61+
#### Signature
62+
63+
```python
64+
def ansi(myLice: License, packages: list[dict[str, Any]]) -> str: ...
65+
```
66+
67+
#### See also
68+
69+
- [License](./types.md#license)
70+
71+
72+
73+
## fmt
74+
75+
[Show source in fmt.py:295](../../../licensecheck/fmt.py#L295)
76+
77+
Format to a given format by `format_`.
78+
79+
#### Arguments
80+
81+
- `myLice` *License* - project license
82+
:param list[PackageInfo] packages: list of PackageCompats to format.
83+
:param list[ucstr] hide_parameters: list of parameters to ignore in the output.
84+
- `show_only_failing` *bool* - output only failing packages, defaults to False.
85+
86+
#### Returns
87+
88+
Type: *str*
89+
string to send to specified output in ansi format
90+
91+
#### Signature
92+
93+
```python
94+
def fmt(
95+
format_: str,
96+
myLice: License,
97+
packages: list[PackageInfo],
98+
hide_parameters: list[ucstr] | None = None,
99+
show_only_failing: bool = False,
100+
) -> str: ...
101+
```
102+
103+
#### See also
104+
105+
- [License](./types.md#license)
106+
- [PackageInfo](./types.md#packageinfo)
107+
108+
109+
110+
## html
111+
112+
[Show source in fmt.py:241](../../../licensecheck/fmt.py#L241)
113+
114+
Format to html.
115+
116+
#### Arguments
117+
118+
- `myLice` *License* - project license
119+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
120+
121+
#### Returns
122+
123+
Type: *str*
124+
string to send to specified output in html format
125+
126+
#### Signature
127+
128+
```python
129+
def html(myLice: License, packages: list[dict[str, Any]]) -> str: ...
130+
```
131+
132+
#### See also
133+
134+
- [License](./types.md#license)
135+
136+
137+
138+
## markdown
139+
140+
[Show source in fmt.py:194](../../../licensecheck/fmt.py#L194)
141+
142+
Format to markdown.
143+
144+
#### Arguments
145+
146+
- `myLice` *License* - project license
147+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
148+
149+
#### Returns
150+
151+
Type: *str*
152+
string to send to specified output in markdown format
153+
154+
#### Signature
155+
156+
```python
157+
def markdown(myLice: License, packages: list[dict[str, Any]]) -> str: ...
158+
```
159+
160+
#### See also
161+
162+
- [License](./types.md#license)
163+
164+
165+
166+
## plainText
167+
168+
[Show source in fmt.py:180](../../../licensecheck/fmt.py#L180)
169+
170+
Format to plain text.
171+
172+
#### Arguments
173+
174+
- `myLice` *License* - project license
175+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
176+
177+
#### Returns
178+
179+
Type: *str*
180+
string to send to specified output in plain text format
181+
182+
#### Signature
183+
184+
```python
185+
def plainText(myLice: License, packages: list[dict[str, Any]]) -> str: ...
186+
```
187+
188+
#### See also
189+
190+
- [License](./types.md#license)
191+
192+
193+
194+
## raw
195+
196+
[Show source in fmt.py:258](../../../licensecheck/fmt.py#L258)
197+
198+
Format to json.
199+
200+
#### Arguments
201+
202+
- `myLice` *License* - project license
203+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
204+
205+
#### Returns
206+
207+
Type: *str*
208+
string to send to specified output in json format
209+
210+
#### Signature
211+
212+
```python
213+
def raw(myLice: License, packages: list[dict[str, Any]]) -> str: ...
214+
```
215+
216+
#### See also
217+
218+
- [License](./types.md#license)
219+
220+
221+
222+
## rawCsv
223+
224+
[Show source in fmt.py:276](../../../licensecheck/fmt.py#L276)
225+
226+
Format to csv.
227+
228+
#### Arguments
229+
230+
- `myLice` *License* - project license
231+
:param list[dict[str, Any]] packages: list of PackageCompats to format.
232+
233+
#### Returns
234+
235+
Type: *str*
236+
string to send to specified output in csv format
237+
238+
#### Signature
239+
240+
```python
241+
def rawCsv(myLice: License, packages: list[dict[str, Any]]) -> str: ...
242+
```
243+
244+
#### See also
245+
246+
- [License](./types.md#license)
247+
248+
249+
250+
## stripAnsi
251+
252+
[Show source in fmt.py:107](../../../licensecheck/fmt.py#L107)
253+
254+
Strip ansi codes from a given string.
255+
256+
#### Arguments
257+
258+
----
259+
- `string` *str* - string to strip codes from
260+
261+
#### Returns
262+
263+
-------
264+
- `str` - plaintext, utf-8 string (safe for writing to files)
265+
266+
#### Signature
267+
268+
```python
269+
def stripAnsi(string: str) -> str: ...
270+
```

0 commit comments

Comments
 (0)