-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lint dependencies and fix errors (#5)
* Update lint dependencies and fix errors Update dependencies to their latest version and constraints. Fix issues with `make reformat` by ignoring some ruff rules where it makes sense. Apply the reformatted file changes. * Address suggestions * Allow print in _cli.py
- Loading branch information
Showing
6 changed files
with
18 additions
and
12 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
Empty file.
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,6 +1,8 @@ | ||
"""Initial testing module.""" | ||
import {{ cookiecutter.module_slug }} | ||
|
||
def test_version(): | ||
|
||
def test_version() -> None: | ||
version = getattr({{ cookiecutter.module_slug }}, "__version__", None) | ||
assert version is not None | ||
assert isinstance(version, str) |
4 changes: 1 addition & 3 deletions
4
{{cookiecutter.project_slug}}/{{cookiecutter.module_slug}}/__init__.py
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,5 +1,3 @@ | ||
""" | ||
The `{{ cookiecutter.module_slug }}` APIs. | ||
""" | ||
"""The `{{ cookiecutter.module_slug }}` APIs.""" | ||
|
||
__version__ = "{{ cookiecutter.version }}" |
4 changes: 1 addition & 3 deletions
4
{{cookiecutter.project_slug}}/{{cookiecutter.module_slug}}/__main__.py
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
5 changes: 2 additions & 3 deletions
5
{{cookiecutter.project_slug}}/{{cookiecutter.module_slug}}/_cli.py
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,6 +1,5 @@ | ||
""" | ||
The `{{ cookiecutter.project_slug }}` entrypoint. | ||
""" | ||
"""The `{{ cookiecutter.project_slug }}` entrypoint.""" | ||
|
||
|
||
def main() -> None: | ||
print("Hello, world!") |