Skip to content

Commit ff501df

Browse files
committed
update docs
1 parent e11dda9 commit ff501df

49 files changed

Lines changed: 17381 additions & 16176 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/images/octocat.svg

Lines changed: 42 additions & 42 deletions
Loading

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
fail_fast: true
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 22.6.0
4+
rev: 23.3.0
55
hooks:
66
- id: black
7-
language_version: python3.8
7+
language_version: python3.10
88
- repo: local
99
hooks:
1010
- id: pytest-check

devpack/batch_tools/aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pathlib import Path
1515
from typing import Iterable, Callable, Optional, Sequence, Mapping, List
1616

17-
from warg.os_utilities.filtering import negate, is_python_module, is_python_package
17+
from warg.os_utilities.filtering import negate, is_python_package
1818

1919

2020
def has_import_aliases(path: Path, *, verbose: bool = False) -> bool:

devpack/batch_tools/alls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ def recursive_check_alls(
270270
if exclusion_filter is None or not any(
271271
flt(child) for flt in exclusion_filter
272272
):
273-
274273
recursive_check_alls(
275274
child,
276275
exclusion_filter,

devpack/batch_tools/privates.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import Optional, Callable, Iterable
1616

1717
from draugr.os_utilities.linux_utilities.user_utilities import get_username
18+
1819
from warg.os_utilities.filtering import is_python_module, negate
1920

2021

devpack/batch_tools/readmes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from typing import Callable, Iterable, Optional
1515

1616
from sorcery import assigned_names
17+
1718
from warg.os_utilities.filtering import negate, is_python_package
1819

1920

devpack/entry_points/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import argparse
1313
from pathlib import Path
1414

15-
from devpack.batch_tools.readmes import TouchModeEnum, recursive_add_readmes
1615
from devpack.batch_tools.inits import recursive_remove_inits
16+
from devpack.batch_tools.readmes import TouchModeEnum, recursive_add_readmes
1717

1818

1919
def recursively_add_readmes_from_here():

devpack/entry_points/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import argparse
99

10-
from devpack.development import pip_uninstall_package
1110
from devpack.development import pip_install_development_package
11+
from devpack.development import pip_uninstall_package
1212

1313

1414
def install_develop():

devpack/entry_points/versioning.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import argparse
2+
from pathlib import Path
3+
from devpack.batch_tools.readmes import recursive_add_readmes
4+
5+
6+
def bump():
7+
def recursively_add_readmes_from_here():
8+
"""
9+
Add readmes to all python modules in the current directory
10+
"""
11+
parser = argparse.ArgumentParser(description="DevPack add readmes from here")
12+
parser.add_argument(
13+
"--path", "-p", type=Path, default=Path.cwd(), help="Path to add readmes to"
14+
)
15+
parser.add_argument(
16+
"--verbose", action="store_true", help="Verbose output of touched files"
17+
)
18+
args = parser.parse_args()
19+
20+
recursive_add_readmes(
21+
args.path,
22+
touch_mode=args.touch_mode,
23+
readme_name=args.readme_name,
24+
verbose=args.verbose,
25+
)

devpack/versioning_tools/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)