Skip to content

Commit

Permalink
Merge pull request #403 from NREL/black
Browse files Browse the repository at this point in the history
Adding black formatter pre-commit
  • Loading branch information
nmerket committed Oct 31, 2023
2 parents 29958ca + ba56460 commit 6618962
Show file tree
Hide file tree
Showing 39 changed files with 3,516 additions and 3,219 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: BuildStockBatch Tests
on:
on:
push:
branches:
- develop
Expand Down Expand Up @@ -34,8 +34,8 @@ jobs:
wget --quiet https://data.nrel.gov/system/files/156/BuildStock_TMY3_FIPS.zip
- name: Download and Install OpenStudio
run: |
wget -q https://github.com/NREL/OpenStudio/releases/download/v3.6.1/OpenStudio-3.6.1+bb9481519e-Ubuntu-20.04-x86_64.deb
sudo apt install -y ./OpenStudio-3.6.1+bb9481519e-Ubuntu-20.04-x86_64.deb
wget -q https://github.com/NREL/OpenStudio/releases/download/v3.7.0-rc1/OpenStudio-3.7.0-rc1+211bb633b0-Ubuntu-22.04-x86_64.deb
sudo apt install -y ./OpenStudio-3.7.0-rc1+211bb633b0-Ubuntu-22.04-x86_64.deb
openstudio openstudio_version
which openstudio
- name: Install buildstockbatch
Expand Down Expand Up @@ -86,3 +86,5 @@ jobs:
with:
name: documentation
path: buildstockbatch/docs/_build/html/
- uses: pre-commit-ci/lite-action@v1.0.1
if: always()
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude_types: ["csv","tsv"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
hooks:
- id: black
language_version: python3.11
18 changes: 9 additions & 9 deletions buildstockbatch/__version__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import datetime as dt


__title__ = 'buildstockbatch'
__description__ = 'Executing BuildStock projects on batch infrastructure.'
__url__ = 'http://github.com/NREL/buildstockbatch'
__version__ = '2023.10.0'
__schema_version__ = '0.3'
__author__ = 'Noel Merket'
__author_email__ = 'noel.merket@nrel.gov'
__license__ = 'BSD-3'
__copyright__ = 'Copyright {} The Alliance for Sustainable Energy'.format(dt.date.today().year)
__title__ = "buildstockbatch"
__description__ = "Executing BuildStock projects on batch infrastructure."
__url__ = "http://github.com/NREL/buildstockbatch"
__version__ = "2023.10.0"
__schema_version__ = "0.3"
__author__ = "Noel Merket"
__author_email__ = "noel.merket@nrel.gov"
__license__ = "BSD-3"
__copyright__ = "Copyright {} The Alliance for Sustainable Energy".format(dt.date.today().year)
Loading

0 comments on commit 6618962

Please sign in to comment.