-
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.
Squashing History for OSS Release (#38)
Co-authored-by: Amey Agrawal <[email protected]>
- Loading branch information
1 parent
afd137a
commit a1ed612
Showing
111 changed files
with
2,300,827 additions
and
2,108 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Deploy Sphinx documentation to Pages | ||
|
||
on: | ||
push: | ||
branches: [main] # branch to trigger deployment | ||
|
||
jobs: | ||
pages: | ||
runs-on: ubuntu-20.04 | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
steps: | ||
- id: deployment | ||
uses: sphinx-notes/pages@v3 |
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,28 @@ | ||
name: "Run linter" | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
permissions: | ||
contents: read | ||
packages: write | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
jobs: | ||
sanity_check: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' # caching pip dependencies | ||
- name: "Install dependencies" | ||
run: pip install -r requirements-dev.txt | ||
- name: "Run black lint" | ||
run: make lint/black | ||
- name: "Run isort check" | ||
run: make lint/isort |
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,18 @@ | ||
.PHONY: help lint lint/black lint/isort format format/black format/isort | ||
.DEFAULT_GOAL := help | ||
|
||
lint/black: ## check style with black | ||
black --check metron | ||
|
||
lint/isort: ## check style with isort | ||
isort --check-only --profile black metron | ||
|
||
lint: lint/black lint/isort ## check style | ||
|
||
format/black: ## format code with black | ||
black metron | ||
|
||
format/isort: ## format code with isort | ||
isort --profile black metron | ||
|
||
format: format/isort format/black ## format code |
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.