Skip to content

Commit 6a6509d

Browse files
authored
Merge pull request #63 from BuildingSync/develop
Release 0.2.1
2 parents e5b2fae + ed3c537 commit 6a6509d

File tree

110 files changed

+24653
-18136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+24653
-18136
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
test_env: [python, generated_sch]
12+
steps:
13+
-
14+
uses: actions/checkout@v2
15+
-
16+
name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.6.7
20+
- name: Install poetry
21+
uses: abatilo/[email protected]
22+
-
23+
name: Print Environment
24+
run: |
25+
poetry install
26+
poetry --version
27+
-
28+
name: Tox ${{ matrix.test_env }}
29+
run: poetry run tox -e ${{ matrix.test_env }}
30+
31+
- name: Install and Run Pre-Commit
32+
run: |
33+
poetry run pre-commit install
34+
poetry run pre-commit run --all-files

.gitignore

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,69 @@
1-
.DS_Store
2-
.idea
1+
# Other
32
.bundle
43
outputs/
54
Gemfile.lock
5+
Gemfile-sch.lock
6+
.DS_Store
7+
.idea
8+
.ruby-version
9+
.python-version
610

711
# store local info used during development, but no longer needed
812
archive/
13+
~$*.xlsx
14+
*_bad.xml
15+
.rubocop-http---s3-amazonaws-com-openstudio-resources-styles-rubocop-yml
16+
17+
# Directories / files generated by translation / simulation tests
18+
spec/simulations/schema2.0.0
19+
20+
# Temporary and binary files
21+
*~
22+
*.py[cod]
23+
*.so
24+
*.cfg
25+
!.isort.cfg
26+
!setup.cfg
27+
*.orig
28+
*.log
29+
*.pot
30+
__pycache__/*
31+
.cache/*
32+
.*.swp
33+
*/.ipynb_checkpoints/*
34+
.DS_Store
35+
36+
# Project files
37+
.ropeproject
38+
.project
39+
.pydevproject
40+
.settings
41+
.idea
42+
tags
43+
44+
# Package files
45+
*.egg
46+
*.eggs/
47+
.installed.cfg
48+
*.egg-info
49+
50+
# Unittest and coverage
51+
htmlcov/*
52+
.coverage
53+
.tox
54+
junit.xml
55+
coverage.xml
56+
.pytest_cache/
57+
58+
# Build and docs folder/files
59+
build/*
60+
dist/*
61+
sdist/*
62+
docs/api/*
63+
docs/_rst/*
64+
docs/_build/*
65+
cover/*
66+
MANIFEST
67+
68+
# Per-project virtualenvs
69+
.venv*/

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
exclude: |
2+
(?x)(
3+
^docs|
4+
^examples|
5+
^.tox|
6+
^.bundle|
7+
^archive|
8+
.csv$
9+
)
10+
repos:
11+
- repo: git://github.com/pre-commit/pre-commit-hooks
12+
rev: v2.2.3
13+
hooks:
14+
- id: trailing-whitespace
15+
- id: check-added-large-files
16+
args: ['--maxkb=50000']
17+
- id: check-ast
18+
- id: check-json
19+
- id: check-merge-conflict
20+
- id: check-xml
21+
- id: check-yaml
22+
- id: debug-statements
23+
- id: end-of-file-fixer
24+
- id: requirements-txt-fixer
25+
- id: mixed-line-ending
26+
args: ['--fix=auto']
27+
- repo: https://github.com/pre-commit/mirrors-autopep8
28+
rev: v1.4.4
29+
hooks:
30+
- id: autopep8
31+
args: ['--in-place', '--aggressive', '--aggressive', '--recursive', '--max-line-length=100', '--ignore=E501,E402,W503,W504,E731']
32+
- repo: https://github.com/humitos/mirrors-autoflake.git
33+
rev: v1.3
34+
hooks:
35+
- id: autoflake
36+
args: ['--in-place', '--recursive', '--remove-all-unused-imports', '--remove-unused-variable', '--ignore-init-module-imports']
37+
- repo: https://gitlab.com/pycqa/flake8
38+
rev: 3.7.9
39+
hooks:
40+
- id: flake8
41+
args: ['--ignore=E501,E402,W503,W504,E731,F401']
42+
- repo: local
43+
hooks:
44+
- id: format-xml
45+
name: format xml and sch files
46+
language: system
47+
entry: poetry run testsuite clean
48+
files: ^.*.(xml|sch)$

AUTHORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributors
2+
3+
* Ted Summer, Devetry <https://github.com/macintoshpie>
4+
* Cory Mosiman, NREL <https://github.com/corymosiman12>
5+
* Nicholas Long, NREL <https://github.com/nllong>

Gemfile

Lines changed: 0 additions & 31 deletions
This file was deleted.

LICENSE.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BuildingSync®, Copyright (c) 2015-2021, Alliance for Sustainable Energy, LLC, and other contributors.
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted
6+
provided that the following conditions are met:
7+
8+
(1) Redistributions of source code must retain the above copyright notice, this list of conditions
9+
and the following disclaimer.
10+
11+
(2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions
12+
and the following disclaimer in the documentation and/or other materials provided with the distribution.
13+
14+
(3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse
15+
or promote products derived from this software without specific prior written permission from the
16+
respective party.
17+
18+
(4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other
19+
derivative works may not use the "BuildingSync" trademark or any other confusingly similar designation
20+
without specific prior written permission from Alliance for Sustainable Energy, LLC.
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
23+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY
25+
CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
26+
THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)