-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from WenjieDu/dev
Add `pre-commit` config file and update issue templates
- Loading branch information
Showing
9 changed files
with
70 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
blank_issues_enabled: true | ||
version: 2.1 | ||
contact_links: | ||
- name: PyPOTS Community on Slack | ||
url: pypots-dev.slack.com | ||
about: General usage questions and community discussions | ||
about: General usage questions, community discussions, and the development team are here. |
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,14 @@ | ||
name: "🤔 Other Kinds of Issues" | ||
description: "Didn't find a proper issue template above? Start here!" | ||
labels: ["question"] | ||
|
||
body: | ||
- type: textarea | ||
id: issue-description-requested | ||
validations: | ||
required: true | ||
attributes: | ||
label: Issue description | ||
description: | | ||
A clear and concise description of the issue. Please provide a link to related information and code if they exist. | ||
Besides, please add according labels to the issue on the right side of the page. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
repos: | ||
# hooks for checking files | ||
- 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 | ||
|
||
# hooks for optimizing imports | ||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.1.1 | ||
hooks: | ||
- id: autoflake | ||
args: [ | ||
--check, | ||
--remove-all-unused-imports, | ||
] | ||
|
||
# hooks for linting code | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [ | ||
--max-line-length=120, # refer to setup.cfg | ||
--extend-ignore=E203, # why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373 | ||
] |
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 |
---|---|---|
|
@@ -40,3 +40,4 @@ dependencies: | |
# dev | ||
- conda-forge::black | ||
- conda-forge::flake8 | ||
- conda-forge::pre-commit |
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 |
---|---|---|
|
@@ -60,6 +60,7 @@ doc = | |
dev = | ||
black | ||
flake8 | ||
pre-commit | ||
%(full)s | ||
%(test)s | ||
%(doc)s |