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

Adding black formatter pre-commit #403

Merged
merged 7 commits into from
Oct 31, 2023
Merged
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
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/[email protected]
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__ = '[email protected]'
__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__ = "[email protected]"
__license__ = "BSD-3"
__copyright__ = "Copyright {} The Alliance for Sustainable Energy".format(dt.date.today().year)
Loading
Loading