-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix profile's mechanism and update OSL profile (#189)
- Loading branch information
Showing
18 changed files
with
1,494 additions
and
1,240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,19 @@ name = "scicookie" | |
version = "0.6.2" # semantic-release | ||
description = "Cookiecutter template for a Python package" | ||
authors = ["Ivan Ogasawara <[email protected]>"] | ||
license = "BSD" | ||
license = "BSD-3-Clause" | ||
include = [ | ||
{path = "src/scicookie/cookiecutter.json"}, | ||
{path = "src/scicookie/{{cookiecutter.project_slug}}"}, | ||
{path = "src/scicookie/hooks"}, | ||
{path = "src/scicookie/profiles"}, | ||
] | ||
|
||
[tool.poetry.scripts] | ||
"scicookie" = "scicookie.__main__:app" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<4" | ||
python = ">=3.8.1,<3.12" | ||
cookieninja = "1.0.0" | ||
sh = "^2.0.4" | ||
colorama = "^0.4.6" | ||
|
@@ -23,35 +24,21 @@ pyyaml = ">=6.0.1" | |
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = ">=7" | ||
black = ">=22" | ||
isort = ">=5" | ||
pre-commit = ">=3" | ||
ruff = ">=0.0.278" | ||
mypy = ">=1" | ||
ruff = ">=0.1.5" | ||
mypy = ">=1.5" | ||
pytest-cov = ">=3" | ||
pytest-cookies = ">=0.6.1" | ||
Sphinx = ">=4.4" | ||
jupyterlab = ">=3.5.1" | ||
jupyter-book = ">=0.12.3" | ||
myst-parser = ">=0.15" | ||
makim = "1.8.2" | ||
makim = "1.8.3" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 79 | ||
# note: for support "py39", we need to update black using poetry | ||
# currently, it has conflicts with typing-extensions. | ||
target-version = ["py38"] | ||
force-exclude = '''(?x)( | ||
docs/* | ||
| src/scicookie/{{cookiecutter.project_slug}}/* | ||
| src/scicookie/hooks/* | ||
|.*\\.egg-info | ||
)''' # TOML's single-quoted strings do not require escaping backslashes | ||
|
||
[tool.mypy] | ||
no_strict_optional = false | ||
exclude = '''(?x)( | ||
|
@@ -76,6 +63,8 @@ exclude = [ | |
'src/scicookie/\{\{cookiecutter.project_slug\}\}', | ||
'src/scicookie/hooks', | ||
] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", # pycodestyle | ||
"F", # pyflakes | ||
|
@@ -85,11 +74,17 @@ select = [ | |
"RUF", # Ruff-specific rules | ||
"I001", # isort | ||
] | ||
fixable = ["I001"] | ||
|
||
[tool.ruff.pydocstyle] | ||
convention = "numpy" | ||
|
||
[tool.ruff.isort] | ||
# Use a single line between direct and from import | ||
lines-between-types = 1 | ||
|
||
[tool.ruff.format] | ||
quote-style = "double" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"tests", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"""SciCookie is a wrap around cookiecutter/cookieninja with a better TUI.""" | ||
"""SciCookie is a wrap around cookiecutter/cookieninja with an improved TUI.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"flat" | ||
], | ||
"command_line_interface": [ | ||
"No command-line interface", | ||
"None", | ||
"Click", | ||
"Argparse" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.