-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre commit + Cleanup + Python 3.10 (#4)
* switch to pyproject.toml * initial pre-commit * initial formatting * formatting * update configs * remove spyder docstring * add pre-commit to reqs * fix typo * fixing pre-commit * add pylint to reqs * update python 3.9 * fix typo * fix typo * fix typo * remove manifest from gitignore * set number of jobs for pylint * python 3.10 * 3.10 to "3.10" * remove macos-latest, windows-latest * test commit * change * change back * rerun notebooks * formatting * cleanup * fix data path * fix data path
- Loading branch information
1 parent
8146b06
commit 620fe51
Showing
87 changed files
with
1,538 additions
and
2,501 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: debug-statements | ||
- id: pretty-format-json | ||
- id: check-merge-conflict | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
|
||
|
||
- repo: https://github.com/pycqa/docformatter | ||
rev: v1.5.1 | ||
hooks: | ||
- id: docformatter | ||
args: [ | ||
--in-place, | ||
--make-summary-multi-line, | ||
--close-quotes-on-newline , | ||
--pre-summary-newline, | ||
--recursive, | ||
--wrap-summaries=90, | ||
--wrap-descriptions=90, | ||
] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
args: [ | ||
--safe, | ||
--config=pyproject.toml, | ||
] | ||
|
||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: python | ||
types: [python] | ||
always_run: true | ||
args: [ | ||
swolfpy_inputdata, | ||
tests, | ||
--rcfile=pyproject.toml, | ||
-rn, # Only display messages | ||
-sn, # Don't display the score | ||
] | ||
|
||
- id: pytest | ||
name: pytest | ||
entry: pytest | ||
language: python | ||
verbose: true | ||
pass_filenames: false | ||
always_run: true |
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
Oops, something went wrong.