-
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(linter): Fix the linter configuration (#131)
Fix the linter configuration for the project and the template. Co-authored-by: Anavelyz <42752529+Anavelyz@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
519 additions
and
713 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
--- | ||
default_stages: | ||
- commit | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
|
||
- repo: local | ||
hooks: | ||
- entry: black | ||
exclude: | | ||
(?x)( | ||
^{{cookiecutter.project_slug}}/ | ||
) | ||
files: "" | ||
id: black | ||
language: system | ||
- id: black | ||
entry: black | ||
name: black | ||
language: system | ||
pass_filenames: true | ||
stages: | ||
- commit | ||
types: | ||
- python | ||
- file | ||
- python | ||
- entry: mypy | ||
exclude: ^$ | ||
files: "{{ cookiecutter.package_slug }}/" | ||
id: mypy | ||
language: python | ||
|
||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
files: "src/scicookie/" | ||
language: system | ||
pass_filenames: true | ||
stages: | ||
- commit | ||
# pre-commit + mypy doesn't honor the exclusion defined in the config | ||
exclude: | | ||
(?x)( | ||
src/scicookie/{{cookiecutter.project_slug}}/ | ||
| src/scicookie/hooks | ||
) | ||
types: | ||
- python | ||
|
||
- id: ruff | ||
name: ruff | ||
entry: ruff | ||
language: python | ||
entry: ruff --no-cache | ||
language: system | ||
pass_filenames: true | ||
files: "src/scicookie/" | ||
# pre-commit + ruff doesn't honor the exclusion defined in the config | ||
exclude: | | ||
(?x)^( | ||
tests/.*| | ||
src/scicookie/.*| | ||
docs/.*| | ||
)$ | ||
stages: | ||
- commit | ||
(?x)( | ||
src/scicookie/{{cookiecutter.project_slug}} | ||
| src/scicookie/hooks | ||
) | ||
types: | ||
- python |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""SciCookie is a wrap around cookiecutter/cookieninja with a better 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"""Interface for the `python -m scicookie`.""" | ||
from scicookie.cli import app | ||
|
||
if __name__ == "__main__": | ||
|
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
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 was deleted.
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
Oops, something went wrong.