Skip to content
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

Docs #4

Closed
wants to merge 249 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
0b1da2a
Merge pull request #26 from zsarnoczay/develop
zsarnoczay May 22, 2022
2ea3321
Merge pull request #27 from zsarnoczay/develop
zsarnoczay May 24, 2022
8eafec0
Merge pull request #28 from zsarnoczay/develop
zsarnoczay May 25, 2022
5e2dd3d
azs - release a patch v3.3.3
zsarnoczay May 8, 2024
1fb5ec2
azs - add black badge to Readme
zsarnoczay May 8, 2024
de79d7f
azs - add license and latest release badges to Readme
zsarnoczay May 8, 2024
ec91872
Merge branch 'loss_functions_done'
zsarnoczay Jun 12, 2024
087dd98
Merge remote-tracking branch 'John/2024-05-normal_cov'
zsarnoczay Jun 14, 2024
332547c
Expand docstring.
ioannis-vm Jun 23, 2024
587c540
Introduce additional assessment classes and methods.
ioannis-vm Jun 23, 2024
07f20e8
Remove unreachable code
ioannis-vm Jun 23, 2024
8815e1c
Hide method, formatting, TODO comment.
ioannis-vm Jun 23, 2024
172126f
Improve exception handling, code formatting.
ioannis-vm Jun 24, 2024
75da7a0
Remove pylint options, improve docstring
ioannis-vm Jun 24, 2024
ca3f641
Rename variable
ioannis-vm Jun 24, 2024
9de8ff1
Remove forgotten return statement.
ioannis-vm Jun 24, 2024
05d6d01
Update tests
ioannis-vm Jun 24, 2024
913ec9c
Extract config parsing method.
ioannis-vm Jun 24, 2024
ea0ea61
Add `is_specified` method
ioannis-vm Jun 24, 2024
9af1856
Remove `sample_size` variable
ioannis-vm Jun 24, 2024
fa5b9ac
Move `out_files` outside of `_parse_config_file`
ioannis-vm Jun 24, 2024
72daa69
Remove `config_path` variable.
ioannis-vm Jun 24, 2024
bf281dc
Remove `custom_dl_file_path` variable.
ioannis-vm Jun 24, 2024
b180456
Remove `demand_sample` as function argument
ioannis-vm Jun 24, 2024
4990af1
Improve handling of color codes
ioannis-vm Jun 24, 2024
7d6d33e
Move config updating operations.
ioannis-vm Jun 25, 2024
539b94b
Check if loss estimation is required before calling `_loss`.
ioannis-vm Jun 25, 2024
9dc8b0b
Move `_loss_save` outside of `_loss`.
ioannis-vm Jun 25, 2024
aa4a330
Aggregate losses outside of `_loss`.
ioannis-vm Jun 25, 2024
6c9e410
Remove `damage_sample` variable.
ioannis-vm Jun 25, 2024
79ea96f
Gather file output code
ioannis-vm Jun 25, 2024
dad8fa7
Remove `cmp_marginals` variable.
ioannis-vm Jun 26, 2024
6da98bd
Remove unused arguments.
ioannis-vm Jun 26, 2024
cf6ce4f
Remove unused command line arguments and improve help message.
ioannis-vm Jun 26, 2024
228c34a
Reorder arguments
ioannis-vm Jun 26, 2024
d4c08e5
Add mapping.
ioannis-vm Jun 29, 2024
3ce6cd6
Remove `db.py`.
ioannis-vm Jun 30, 2024
1d82efa
Fix test: Use some other file.
ioannis-vm Jun 30, 2024
b4ed36a
Add submodule.
ioannis-vm Jun 30, 2024
25ac356
Refactor `DL_calculation.py` (in progress)
ioannis-vm Jun 30, 2024
148149d
Add `black` config.
ioannis-vm Jun 30, 2024
81abe7c
Handle case where there is no damage sample.
ioannis-vm Jun 30, 2024
8684126
Reverse if check to remove indentation.
ioannis-vm Jul 2, 2024
2386153
Bug fix.
ioannis-vm Jul 2, 2024
a517024
Code formatting.
ioannis-vm Jul 2, 2024
bda1d20
Spell check.
ioannis-vm Jul 2, 2024
7547f96
Reorganize code.
ioannis-vm Jul 2, 2024
ef0508c
Expand `config` to individual arguments.
ioannis-vm Jul 2, 2024
0bb4203
Update schema
ioannis-vm Jul 3, 2024
922a80a
Refactor `DL_calculation.py`.
ioannis-vm Jul 3, 2024
9a8eae9
Move code over into `assessment.py`.
ioannis-vm Jul 3, 2024
606a18e
Remove subclasses.
ioannis-vm Jul 3, 2024
5c582ce
Minor formatting.
ioannis-vm Jul 3, 2024
4b8d48d
Refactor Assessment classes and enhance type safety
ioannis-vm Jul 5, 2024
9bd5058
Address all linter warnings
ioannis-vm Jul 6, 2024
497d3c4
Correction.
ioannis-vm Jul 6, 2024
b1e79bb
Make it work when an existing component sample is loaded.
ioannis-vm Jul 7, 2024
9af5512
Additional linting.
ioannis-vm Jul 8, 2024
a8b65a8
Add `run_checks` script.
ioannis-vm Jul 8, 2024
07dadd6
Improve handling of `ds_id` in `map_ds`.
ioannis-vm Jul 13, 2024
519c477
Remove files, rename file.
ioannis-vm Jul 13, 2024
392c5d8
Update the `sample` property of the `loss` model.
ioannis-vm Jul 18, 2024
1d3771e
FIX: Fix bug in RepairModel_DS.load_sample.
ioannis-vm Jul 18, 2024
b51cd22
Merge pull request #50 from zsarnoczay/develop
zsarnoczay Jul 19, 2024
1b7db9b
Merge pull request #48 from ioannis-vm/2024-06_loss_library
zsarnoczay Jul 24, 2024
89a13ae
Merge pull request #49 from ioannis-vm/2024-06_damage_loss_lib_submodule
zsarnoczay Jul 24, 2024
ec08d9f
Bug fixes
ioannis-vm Jul 27, 2024
9ee1a50
Extend docstring.
ioannis-vm Jul 27, 2024
30680b0
Bug fix.
ioannis-vm Jul 29, 2024
0f55b6e
Bug fix: Correct `.groupby` levels.
ioannis-vm Jul 30, 2024
d25be2a
Correct RID unit.
ioannis-vm Aug 7, 2024
36bf9db
Update `expand_sample` to support array inputs, add test.
ioannis-vm Aug 7, 2024
7c8090c
Expand comment to clarify.
ioannis-vm Aug 7, 2024
16dbdb4
Merge branch '2024-07_cmp_marginal_params' into 2024-07_several_updates
ioannis-vm Aug 7, 2024
c4bae84
Format code with black.
ioannis-vm Aug 7, 2024
e04f785
Rename file, address mypy warning.
ioannis-vm Aug 9, 2024
544d0c7
Treat error as warning via config.
ioannis-vm Aug 9, 2024
669a917
Decision variable units.
ioannis-vm Aug 9, 2024
4fe2348
jz - fix the bug in auto_pop when GF is not needed for transportation
jinyan1214 Aug 30, 2024
4adfd7e
Auto pop for HAZUS Capactity Spectrum
jinyan1214 Sep 12, 2024
765c066
fix rise is None to prevent component of STR.W2.None.LC
jinyan1214 Sep 25, 2024
630ee87
Remove rise from CSM auto_pop
jinyan1214 Sep 26, 2024
b95f304
Take rise back and use building level fragility for CSM
jinyan1214 Sep 26, 2024
9f7de14
Update: Remove unreachable code
ioannis-vm Sep 29, 2024
5b86895
Add back region separator comments.
ioannis-vm Sep 29, 2024
0ae5abc
Comment on "`Repair`".
ioannis-vm Sep 29, 2024
2d16d8a
Update term.
ioannis-vm Sep 29, 2024
e60e0c4
FIX: Remove redundant indexing operations.
ioannis-vm Sep 29, 2024
38e056f
Add option to accept sample without `uid` level.
ioannis-vm Sep 29, 2024
0fcb654
Fix typo.
ioannis-vm Sep 29, 2024
8954b62
Merge pull request #60 from jinyan1214/releasedVersion
zsarnoczay Sep 30, 2024
5caaaaf
JZ: Brittle/Ductile pipeline auto_pop
jinyan1214 Oct 3, 2024
839d335
Merge pull request #62 from jinyan1214/releasedVersion
zsarnoczay Oct 5, 2024
a03679e
Add `known_output_files` argument in `_remove_existing_files`.
ioannis-vm Oct 7, 2024
8ea4504
"Colocate" was not a typo.
ioannis-vm Oct 7, 2024
21a3f3b
Add argument check in `DL_calculation.py`
ioannis-vm Oct 7, 2024
bd4a6b2
Rename variable.
ioannis-vm Oct 7, 2024
7b17fbd
Merge remote-tracking branch 'simcenter/develop' into 2024-07_several…
ioannis-vm Oct 10, 2024
e13983d
Speed up test suite
ioannis-vm Oct 10, 2024
9b0d94b
Rename variable.
ioannis-vm Oct 17, 2024
380250b
Add docstrings
ioannis-vm Oct 18, 2024
69d5af1
Add docstrings
ioannis-vm Oct 18, 2024
9dbd362
Add contributor name
ioannis-vm Oct 18, 2024
392ee2f
Remove outdated comment.
ioannis-vm Oct 18, 2024
4cd9967
Add docstrings.
ioannis-vm Oct 18, 2024
7c71118
Make `length_unit` optional in `DL_calculation.py` input file.
ioannis-vm Oct 18, 2024
325dea6
Improve error message.
ioannis-vm Oct 18, 2024
63974b8
Revise awkward phrasing in docstrings.
ioannis-vm Oct 18, 2024
0b76ed1
Update badge
ioannis-vm Oct 10, 2024
b459316
Update .gitignore
ioannis-vm Aug 18, 2024
95bcff8
Move files around and add `__init__.py` files.
ioannis-vm Oct 12, 2024
40e7c62
Update configuration files.
ioannis-vm Oct 12, 2024
5038365
Linting updates
ioannis-vm Oct 12, 2024
80cfc9b
Merge pull request #51 from ioannis-vm/2024-07_several_updates
zsarnoczay Oct 18, 2024
47da471
Add option to set assessment options with auto populated configs
ioannis-vm Sep 12, 2024
8be6957
Additional GitHub workflows
ioannis-vm Oct 19, 2024
75e9860
Update ruff version and requirements.
ioannis-vm Oct 19, 2024
541e066
Rename variable
ioannis-vm Oct 23, 2024
07dc45f
Rename variable.
ioannis-vm Oct 23, 2024
69a867a
Reorder lines.
ioannis-vm Oct 23, 2024
04e64a9
Rename attribute.
ioannis-vm Oct 23, 2024
ba9b0c2
Revert changes.
ioannis-vm Oct 24, 2024
662ea81
Manual formatting of DataFrame definitions.
ioannis-vm Oct 24, 2024
b42cb3f
Revert changes to ruleset files.
ioannis-vm Oct 24, 2024
84d773c
Revert changes to `custom_pop.py`.
ioannis-vm Oct 24, 2024
3b3f5da
Remove timestamp.
ioannis-vm Oct 24, 2024
bf3d075
Revert changes to inactive scripts.
ioannis-vm Oct 24, 2024
7a82e55
Ignore `custom_pop.py` spell checking.
ioannis-vm Oct 24, 2024
977d90e
Update argument name to `aim`.
ioannis-vm Oct 24, 2024
cda0c00
Fix typo.
ioannis-vm Oct 24, 2024
7f5e193
Merge remote-tracking branch 'simcenter/develop' into 2024-08_lint
ioannis-vm Oct 24, 2024
b2980f4
Add back comment.
ioannis-vm Oct 24, 2024
4c8dc48
Reverse changes to files in `SimCenterDBDL/`.
ioannis-vm Oct 28, 2024
1f36b10
Bug fix & restore print statements
ioannis-vm Oct 28, 2024
3544f03
Reverse changes in auto population files used in tests.
ioannis-vm Oct 28, 2024
b201aaf
Use a more descriptive variable name.
ioannis-vm Oct 28, 2024
12d0f43
Rename `raw_samples` to `raw_sample`.
ioannis-vm Oct 28, 2024
d36706a
Adjust configuration and code checking workflow.
ioannis-vm Oct 28, 2024
3333110
Merge pull request #67 from ioannis-vm/2024-08_lint
zsarnoczay Oct 28, 2024
f4a76eb
Merge pull request #61 from ioannis-vm/FIX_seed
zsarnoczay Oct 28, 2024
504faeb
Add ScalingSpecification entry in `DL_calculation.py` input file.
ioannis-vm Oct 21, 2024
8084275
Add test.
ioannis-vm Oct 21, 2024
6cdecc1
Linting updates
ioannis-vm Oct 12, 2024
cda71a9
Fix message.
ioannis-vm Oct 12, 2024
1199eb0
Add documentation pages.
ioannis-vm Oct 12, 2024
9e70f80
Add example 1
ioannis-vm Aug 18, 2024
eaf49ca
Add reference file and citing dependencies.
ioannis-vm Aug 19, 2024
d609de2
Custom Sphinx extension to retrieve citation from Zenodo.
ioannis-vm Oct 12, 2024
47350db
GitHub workflows
ioannis-vm Aug 31, 2024
382c776
Reorganize pages and small edits.
ioannis-vm Oct 23, 2024
e11a75c
Add logging of uncaught exceptions to Logger class
ioannis-vm Oct 19, 2024
3217096
Update test.
ioannis-vm Oct 29, 2024
a796075
Merge pull request #69 from ioannis-vm/2024-10_capacity_scaling
zsarnoczay Oct 29, 2024
b51d532
Handle multiple logger case.
ioannis-vm Oct 31, 2024
8921ac4
Remove unused method.
ioannis-vm Oct 31, 2024
67fb8fc
Remove test.
ioannis-vm Oct 31, 2024
aeda399
Update imports.
ioannis-vm Oct 31, 2024
5abfbc3
Add code in a `main` method.
ioannis-vm Oct 31, 2024
06881e2
Remove lingering line.
ioannis-vm Oct 31, 2024
ec00a05
Add entries in `exclude_patterns`.
ioannis-vm Oct 31, 2024
c01f906
Update workflow.
ioannis-vm Oct 31, 2024
6fbe13b
HAZUS Bridges fragility except GS LS1 (demand depandent)
jinyan1214 Oct 31, 2024
11c9d64
Merge pull request #68 from ioannis-vm/2024-10_log_exceptions
zsarnoczay Nov 5, 2024
261a8e8
Merge pull request #70 from ioannis-vm/docs
zsarnoczay Nov 5, 2024
f283deb
Damage process: exclude components not present in the asset model.
ioannis-vm Nov 6, 2024
96979b5
Remove deprecated `DMG-` keyword from loss map.
ioannis-vm Nov 6, 2024
4ea04f5
Update stack level to show the relevant file and line.
ioannis-vm Nov 6, 2024
91a4d71
Add `"deterministic"` and `None`
ioannis-vm Nov 6, 2024
736b573
Change default decision variables.
ioannis-vm Nov 6, 2024
70b1975
Update tests to reflect previous changes.
ioannis-vm Nov 6, 2024
5c5245c
Unreleased change log.
ioannis-vm Nov 5, 2024
ed7b081
Merge pull request #72 from ioannis-vm/2024-11_address_warnings
zsarnoczay Nov 7, 2024
83f1209
Review and edit unreleased.rst
zsarnoczay Nov 7, 2024
5724433
Fix spell check issue
zsarnoczay Nov 7, 2024
c41be74
Merge pull request #73 from ioannis-vm/docs
zsarnoczay Nov 7, 2024
db3732f
Merge remote-tracking branch 'upstream/master' into develop
zsarnoczay Nov 8, 2024
48c760c
Fix a bug with the seed in base.py and some linting issues.
zsarnoczay Nov 9, 2024
e249b69
Fix a few type hinting issues
zsarnoczay Nov 9, 2024
ac89f98
Fix linting and formatting issues introduced with the previous fix
zsarnoczay Nov 9, 2024
ab6d4c0
Avoid a FutureWarning in pandas by preparing for downcasting on .fillna
zsarnoczay Nov 10, 2024
1a6bc14
Add a new function to base that allows checking if a single string can
zsarnoczay Nov 10, 2024
318a333
Make sure raw demands are numeric dtype after removing unit information
zsarnoczay Nov 10, 2024
b90cd32
JZ: capacity scaling algorithms for HAZUS bridges
jinyan1214 Nov 12, 2024
7aae0a0
bugfix
zsarnoczay Nov 14, 2024
70c1ab9
Minor fixes
zsarnoczay Nov 19, 2024
b43c33a
ruff formatting improvements
zsarnoczay Nov 19, 2024
a16f851
Drop Python 3.8 testing (and support) and add 3.11 and 3.12
zsarnoczay Nov 19, 2024
42da159
No testing for Python 3.12 yet; apparently, supporting the new type p…
zsarnoczay Nov 19, 2024
9e239d0
Correct exception handling.
ioannis-vm Nov 19, 2024
8ec6cfd
Address issues with Py3.12
ioannis-vm Nov 19, 2024
ede66f3
Merge pull request #10 from ioannis-vm/2024-11_exceptions
zsarnoczay Nov 20, 2024
824965c
Add back Python 3.12 testing and support
zsarnoczay Nov 20, 2024
ff9ad07
Merge remote-tracking branch 'origin/develop' into develop
zsarnoczay Nov 20, 2024
21a0858
Merge pull request #75 from zsarnoczay/develop
zsarnoczay Nov 20, 2024
1cade20
Merge pull request #76 from zsarnoczay/master
zsarnoczay Nov 20, 2024
feb4a1a
Add support for variable parameter RVs.
ioannis-vm Nov 20, 2024
f115815
Update term.
ioannis-vm Nov 21, 2024
be551e2
Rename method and add docstring.
ioannis-vm Nov 21, 2024
60e8cfe
Correct LogNormal tests.
ioannis-vm Nov 21, 2024
c01c2d9
Extract method.
ioannis-vm Nov 21, 2024
1d75300
Update filter.
ioannis-vm Nov 21, 2024
f025231
Avoid getting an error if `theta` is None.
ioannis-vm Nov 21, 2024
cc74bfd
Update docs workflow.
ioannis-vm Nov 21, 2024
8cde40d
Merge pull request #78 from ioannis-vm/2024-11-21_docs_workflow
zsarnoczay Nov 21, 2024
5072927
Rename SMALL_NUMBER with FIRST_POSITIVE_NUMBER
zsarnoczay Nov 22, 2024
34f4029
Change FIRST_POSITIVE_NUMBER definition
zsarnoczay Nov 22, 2024
7d123e2
Minor docstring and comment edits for clarity
zsarnoczay Nov 22, 2024
0e5ae58
Fix format issues for ruff
zsarnoczay Nov 22, 2024
ae8b35b
Merge pull request #77 from ioannis-vm/2024_11_UQ_rv_params
zsarnoczay Nov 22, 2024
2093e3b
Fix Pelicun logo link
zsarnoczay Nov 22, 2024
dd9e629
Merge remote-tracking branch 'upstream/master' into mergeMaster
jinyan1214 Nov 22, 2024
c263110
jz - enable a list of scaling factors
jinyan1214 Nov 22, 2024
c9d9b12
code spell
jinyan1214 Nov 22, 2024
0efc713
ruff format
jinyan1214 Nov 22, 2024
44641c3
ruff check
jinyan1214 Nov 22, 2024
9df3401
restore gitignore
jinyan1214 Nov 22, 2024
9e2ecbb
ruff format
jinyan1214 Nov 22, 2024
35caba2
restore uq.py
jinyan1214 Nov 23, 2024
bc77c3f
r2d e1 test update ScalingSpecification
jinyan1214 Nov 23, 2024
0fee5e8
remote some ruff noqa
jinyan1214 Nov 23, 2024
1cefb1c
add new unit test for ScalingSpecification
jinyan1214 Nov 23, 2024
48366de
jz - add docstring to _handle_operation_list in damage_model
jinyan1214 Nov 26, 2024
c940896
Modify docstring for scaling_specification dict
jinyan1214 Nov 26, 2024
7fa6c0c
use defaultdict to initialize scaling specification
jinyan1214 Nov 26, 2024
a0e64f6
Modified error messages in parse_scaling_specifrications for clarity
jinyan1214 Nov 26, 2024
ad5c9d0
Use DLassessment calculate_demand to read demand in auto_pop
jinyan1214 Nov 26, 2024
9deb31f
use list comprehension to define scaling operation in auto_pop
jinyan1214 Nov 26, 2024
11720c1
Remove tiling operation to match sample_size
jinyan1214 Nov 26, 2024
af65c64
Add test for _create_dmg_RVs to check success application of scaling …
jinyan1214 Nov 26, 2024
1396624
ruff format
jinyan1214 Nov 26, 2024
a94dd44
Minor updates to damage_model.py
zsarnoczay Nov 27, 2024
4d40b4a
Minor update to test_damage_model.py
zsarnoczay Nov 27, 2024
c5057a0
MInor update to damage_model.py
zsarnoczay Nov 27, 2024
a0506c1
Merge pull request #79 from jinyan1214/mergeMaster
zsarnoczay Nov 27, 2024
99eacdd
Merge remote-tracking branch 'upstream/master'
zsarnoczay Nov 27, 2024
777c08f
remove changelog from readme and replace with link
zsarnoczay Nov 27, 2024
a71ae77
get ready for v3.4 release
zsarnoczay Nov 27, 2024
882aacb
bugfix when demand comes from PBE workflow
zsarnoczay Nov 27, 2024
be75001
bugfix to avoid warnings when lower lim is zero in lognormal RV
zsarnoczay Nov 27, 2024
9b15999
bugfix - capacity scaling from bridges
zsarnoczay Nov 27, 2024
9532686
add doc file with changelog for v3.4.0
zsarnoczay Nov 27, 2024
84f329a
include unreleased in release notes to avoid Sphinx warnings in CI
zsarnoczay Nov 27, 2024
56da5f6
Merge pull request #80 from zsarnoczay/master
zsarnoczay Nov 27, 2024
befdf19
Update `README.md`
ioannis-vm Nov 12, 2024
16df91e
Update documentation.
ioannis-vm Nov 19, 2024
aa7e885
Type annotations and checking.
ioannis-vm Dec 3, 2024
f47c223
Add note on `--recurse-submodules` when cloning the pelicun repo.
ioannis-vm Dec 3, 2024
03e00ce
Add missing example files.
ioannis-vm Dec 3, 2024
fdd94b2
Remove non-standard section identifiers.
ioannis-vm Dec 3, 2024
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
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and deploy documentation
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
python -m pip install -e .[development]
- name: Build docs
run: cd doc && make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build/html
32 changes: 32 additions & 0 deletions .github/workflows/docs_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check for Sphinx Warnings

on:
pull_request:
paths:
- "doc/**"
- "**/*.rst"
- ".github/workflows/docs_check.yaml"
- "setup.py"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
python -m pip install -e .[development]

- name: Check for Sphinx warnings
run: |
sphinx-build -M html ./doc/source ./doc/_build --fail-on-warning
11 changes: 11 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Ruff format
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
version: 0.7.0
10 changes: 10 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Ruff check
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
version: 0.7.0
15 changes: 15 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Spell Check

on: [push, pull_request]

jobs:
spell-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run codespell
uses: codespell-project/actions-codespell@v2

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11','3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ __pycache__
flycheck*.py
/notes/
/.ropeproject/

/doc_src/
/doc/build/
/doc/source/api_reference/_autosummary
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "pelicun/resources/DamageAndLossModelLibrary"]
path = pelicun/resources/DamageAndLossModelLibrary
url = https://github.com/NHERI-SimCenter/DamageAndLossModelLibrary
Loading
Loading