Skip to content

Bump black from 22.12.0 to 24.3.0 #57

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
Expand All @@ -9,21 +8,20 @@ insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
max_line_length = 120
max_line_length = 180

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 4

[*.yml]
indent_style = space
indent_size = 2

[LICENSE]
insert_final_newline = false
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
python: ['3.8', '3.9', '3.10']

steps:
- uses: compas-dev/compas-actions.build@v2
- uses: compas-dev/compas-actions.build@v3
with:
test_lint: true
test_compas: true
invoke_lint: true
check_import: true
use_conda: true
python: ${{ matrix.python }}
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
docs:
runs-on: windows-latest
steps:
- uses: compas-dev/compas-actions.docs@v2
- uses: compas-dev/compas-actions.docs@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
use_conda: true
doc_url: https://compas.dev/compas_fea2/
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
python: ['3.8', '3.9', '3.10']

steps:
- uses: compas-dev/compas-actions.build@v2
- uses: compas-dev/compas-actions.build@v3
with:
test_lint: true
test_compas: true
use_conda: true
python: ${{ matrix.python }}
invoke_lint: true
use_conda: true
check_import: true

Publish:
needs: build
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Updated existing workflows to latest.
* Build tests are temporarily disabled.
* Updated `compas-actions.build` and `compas-actions.doc` workflows to v3.

### Removed

* Support for python below 3.8
* Support for python below 3.8
60 changes: 1 addition & 59 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
# Contributing

Contributions are welcome and very much appreciated!


## Code contributions

We accept code contributions through pull requests.
In short, this is how that works.

1. Fork [the repository](https://github.com/compas-dev/compas_fea2) and clone the fork.
2. Create a virtual environment using your tool of choice (e.g. `virtualenv`, `conda`, etc).
3. Install development dependencies:

```bash
$ pip install -r requirements-dev.txt
```

4. Make sure all tests pass:

```bash
$ invoke test
```

5. Start making your changes to the **master** branch (or branch off of it).
6. Make sure all tests still pass:

```bash
$ invoke test
```

7. Add yourself to the *Contributors* section of `AUTHORS.md`.
8. Commit your changes and push your branch to GitHub.
9. Create a [pull request](https://help.github.com/articles/about-pull-requests/) through the GitHub website.


During development, use [pyinvoke](http://docs.pyinvoke.org/) tasks on the
command line to ease recurring operations:

* `invoke clean`: Clean all generated artifacts.
* `invoke check`: Run various code and documentation style checks.
* `invoke docs`: Generate documentation.
* `invoke test`: Run all tests and checks in one swift command.
* `invoke`: Show available tasks.


## Bug reports

When [reporting a bug](https://github.com/compas-dev/compas_fea2/issues) please include:

* Operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.


## Feature requests

When [proposing a new feature](https://github.com/compas-dev/compas_fea2/issues) please include:

* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
Coming soon...
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ exclude pytest.ini .bumpversion.cfg .editorconfig
exclude tasks.py
exclude CONTRIBUTING.md
exclude conftest.py
exclude environment.yml
exclude *.cff

global-exclude *.py[cod] __pycache__ *.dylib *.nb[ic] .DS_Store
Binary file added docs/_images/CollaborationWorkflow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/CollaborationWorkflow_example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed docs/_images/examples/principal_stress_script.png
Binary file not shown.
Binary file added docs/_images/fork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/workflow_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/workflow_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/_static/compas.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
html[data-theme="light"] {
--pst-color-primary: #0092d2;
--pst-color-info: #0092d2;
--pst-color-text-muted: #888;
}

body {
line-height: 1.75;
font-weight: 300;
}

.bd-article-container h1 {
color: #0092d2;
}

.navbar-brand .logo__image {
height: 36px !important;
}

.bd-header {
box-shadow: none;
border-bottom: 1px solid var(--pst-color-shadow);
}

#rtd-footer-container {
height: 0px;
bottom: 0 !important;
margin: 0 !important;
display: none;
}
Binary file added docs/_static/compas.ico
Binary file not shown.
Binary file added docs/_static/compas_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/compas_icon_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/compas_white.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/_static/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"name": "latest",
"version": "unreleased",
"url": "https://compas.dev/compas_libigl/latest/"
}
]
1 change: 0 additions & 1 deletion docs/_templates/PLACEHOLDER

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_templates/autosummary/base.rst

This file was deleted.

60 changes: 0 additions & 60 deletions docs/_templates/autosummary/class.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_templates/autosummary/method.rst

This file was deleted.

39 changes: 0 additions & 39 deletions docs/_templates/autosummary/module.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/_templates/sidebar-nav-bs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<nav class="bd-docs-nav bd-links"
aria-label="{{ _('Section Navigation') }}">
<!-- <p class="bd-links__title" role="heading" aria-level="1">{{ _("Section Navigation") }}</p> -->
<div class="bd-toc-item navbar-nav">{{ sidebar_nav_html }}</div>
</nav>
2 changes: 0 additions & 2 deletions docs/api/compas_fea2.UI.rst

This file was deleted.

11 changes: 10 additions & 1 deletion docs/api/compas_fea2.job.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
********************************************************************************
job
********************************************************************************

.. automodule:: compas_fea2.job
.. currentmodule:: compas_fea2.job

.. autosummary::
:toctree: generated/

InputFile
ParametersFile
Loading