-
Notifications
You must be signed in to change notification settings - Fork 8
add breadcrumb and pre-commit #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1b4a90a
push always
akaszynski 2360363
initial pre-commit add
akaszynski 2ac3dcb
add pre-commit fully
akaszynski 7d2d620
Merge with main and fix conflicts.
MaxJPRey ce8e64d
Commit the actual fix.
MaxJPRey 16b7e4b
Fix typo in the test_practices to validate pre-commit.
MaxJPRey 646d3d6
Update .pre-commit-config.yaml
akaszynski f36783d
add dependabot
akaszynski 100a29d
add breadcrumbs
akaszynski 4ade0fb
move wsl guide out
akaszynski af3f79b
merge with upstream
akaszynski 2e8325b
fully implement pre-commit
akaszynski 6593627
use 3.10 properly
akaszynski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
[flake8] | ||
exclude = build, doc/source/conf.py | ||
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, E501, F401, F403 | ||
count = True | ||
max-complexity = 10 | ||
max-line-length = 100 | ||
statistics = True |
This file contains hidden or 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 |
---|---|---|
|
@@ -9,6 +9,24 @@ on: | |
- main | ||
|
||
jobs: | ||
pre-commit: | ||
name: Pre-commit checks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install pre-commit requirements | ||
run: | | ||
pip install pre-commit~=2.16.0 | ||
|
||
- name: Run pre-commit | ||
run: | | ||
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | ||
|
||
docs_build: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -26,6 +44,16 @@ jobs: | |
make -C doc html SPHINXOPTS="-W" | ||
touch doc/build/html/.nojekyll | ||
echo "dev.docs.pyansys.com" > doc/build/html/CNAME | ||
|
||
- name: Deploy to gh-pages on main | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.github_token }} | ||
branch: gh-pages | ||
folder: docs/build/html | ||
clean: true | ||
single-commit: true | ||
|
||
- name: Build PDF Documentation | ||
run: | | ||
|
@@ -64,17 +92,9 @@ jobs: | |
- name: Display structure of downloaded files | ||
run: ls -R | ||
|
||
- name: Deploy to gh-pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.github_token }} | ||
branch: gh-pages | ||
folder: HTML-Documentation | ||
clean: true | ||
single-commit: true | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: | | ||
./*PDF*/*.pdf |
This file contains hidden or 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 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.12b0 | ||
hooks: | ||
- id: black | ||
exclude: "^({{cookiecutter.project_slug}}/)" | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v2.6.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: ["--py37-plus"] | ||
exclude: "^({{cookiecutter.project_slug}}/)" | ||
- repo: https://gitlab.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
exclude: "^({{cookiecutter.project_slug}}/)" | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.1.0 | ||
hooks: | ||
- id: codespell | ||
args: [--ignore-words=ignore_words.txt, -S \*.pyc\,\*.xml\,\*.txt\,\*.gif\,\*.png\,\*.jpg\,\*.js\,\*.html\,\*.doctree\,\*.ttf\,\*.woff\,\*.woff2\,\*.eot\,\*.mp4\,\*.inv\,\*.pickle\,\*.ipynb\,flycheck\*\,./.git/\*\,./.hypothesis/\*\,\*.yml\,./doc/build/\*\,./doc/images/\*\,./dist/\*\,\*~\,.hypothesis\*\,./doc/source/examples/\*\,\*cover\,\*.dat\,\*.mac] | ||
# - repo: https://github.com/pycqa/pydocstyle | ||
# rev: 6.1.1 | ||
# hooks: | ||
# - id: pydocstyle | ||
# additional_dependencies: [toml] | ||
# exclude: "^({{cookiecutter.project_slug}}/)" | ||
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.