Skip to content

Commit

Permalink
template update
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Nov 10, 2023
1 parent 6ca9e3d commit 7795b0d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
"commit": "5c0d10f0784887bb2ee7c53dcd5a4d80ac36e145",
"commit": "32e75e0e62d551244a2df1ea5db73fe6bad26d03",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ repos:
- id: check-added-large-files
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
hooks:
Expand All @@ -24,6 +20,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ ignore = [
# pydocstyle: Missing Docstrings
"D1"
]
# Black line length is 88, but black does not format comments.
line-length = 110
# Same as Black.
indent-width = 4
line-length = 88
select = [
# pyflakes
"F",
Expand All @@ -63,6 +64,9 @@ select = [
"D"
]

[tool.ruff.lint.pycodestyle]
max-line-length = 110

[tool.ruff.pydocstyle]
convention = "numpy"

Expand Down
3 changes: 2 additions & 1 deletion tests/test_01_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def test_set_poolclass(poolclass: Union[str, sa.pool.Pool]) -> None:
],
)
def test_set_expiration(
expiration: Union[datetime.datetime, str], raises: contextlib.nullcontext # type: ignore[type-arg]
expiration: Union[datetime.datetime, str],
raises: contextlib.nullcontext, # type: ignore[type-arg]
) -> None:
with raises:
config.set(expiration=expiration)
4 changes: 3 additions & 1 deletion tests/test_60_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def test_delete_unknown_files(
],
)
def test_delete_unknown_dirs(
recursive: bool, raises: contextlib.nullcontext, final_size: int # type: ignore[type-arg]
recursive: bool,
raises: contextlib.nullcontext, # type: ignore[type-arg]
final_size: int,
) -> None:
fs, dirname = utils.get_cache_files_fs_dirname()
fs.mkdir(f"{dirname}/unknown")
Expand Down

0 comments on commit 7795b0d

Please sign in to comment.