-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump `setup.py` to v1 * Update setup.py * Fix linting
- Loading branch information
Nat Chin
authored
Oct 10, 2022
1 parent
aefa1e0
commit 52ae1ce
Showing
5 changed files
with
45 additions
and
38 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,3 +1,4 @@ | ||
--- | ||
name: Lint Code Base | ||
|
||
defaults: | ||
|
@@ -10,7 +11,7 @@ on: | |
branches: [master, dev] | ||
schedule: | ||
# run CI every day even if no PRs/merges occur | ||
- cron: '0 12 * * *' | ||
- cron: '0 12 * * *' | ||
|
||
jobs: | ||
build: | ||
|
@@ -21,19 +22,18 @@ jobs: | |
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v4 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install . | ||
pip install deepdiff numpy | ||
mkdir -p .github/linters | ||
cp pyproject.toml .github/linters | ||
- name: Black | ||
uses: docker://github/super-linter:v3 | ||
uses: github/super-linter/[email protected] | ||
if: always() | ||
env: | ||
# run linter on everything to catch preexisting problems | ||
|
@@ -43,3 +43,4 @@ jobs: | |
# Run only black | ||
VALIDATE_PYTHON_BLACK: true | ||
PYTHON_BLACK_CONFIG_FILE: pyproject.toml | ||
FILTER_REGEX_EXCLUDE: .*tests/.*.(json|zip|sol) |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
branches: [master, dev] | ||
schedule: | ||
# run CI every day even if no PRs/merges occur | ||
- cron: '0 12 * * *' | ||
- cron: '0 12 * * *' | ||
|
||
jobs: | ||
build: | ||
|
@@ -22,21 +22,18 @@ jobs: | |
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v4 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install . | ||
pip install deepdiff numpy | ||
mkdir -p .github/linters | ||
cp pyproject.toml .github/linters | ||
- name: Pylint | ||
uses: docker://github/super-linter:v3 | ||
uses: github/super-linter/[email protected] | ||
if: always() | ||
env: | ||
# run linter on everything to catch preexisting problems | ||
|
@@ -46,4 +43,5 @@ jobs: | |
# Run only pylint | ||
VALIDATE_PYTHON: true | ||
VALIDATE_PYTHON_PYLINT: true | ||
PYTHON_PYLINT_CONFIG_FILE: pyproject.toml | ||
PYTHON_PYLINT_CONFIG_FILE: pyproject.toml | ||
FILTER_REGEX_EXCLUDE: .*tests/.*.(json|zip|sol) |
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