Skip to content

Commit

Permalink
Merge pull request NHERI-SimCenter#9 from ioannis-vm/2024-06_add_files
Browse files Browse the repository at this point in the history
Add files.
  • Loading branch information
zsarnoczay authored Jul 25, 2024
2 parents 87de968 + 5b39a5d commit f07d978
Show file tree
Hide file tree
Showing 30 changed files with 1,852,310 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 85
ignore = E203, E241, E701, W503
exclude = flycheck*
36 changes: 36 additions & 0 deletions .github/format_and_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Format and Lint Code
on:
push:
permissions:
contents: write
jobs:
format_and_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Run Black
uses: psf/black@stable
with:
options: "-S"
- name: Commit changes
run: |
git config --global user.name 'GitHubBot'
git config --global user.email '[email protected]'
git add .
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
else
git commit -m "Format code with Black."
git push
fi
- name: Install Flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run Flake8
run: flake8 .
Loading

0 comments on commit f07d978

Please sign in to comment.