-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from BuildingSync/task/dependency-update
Added ruff, updated python compatibility
- Loading branch information
Showing
27 changed files
with
2,660 additions
and
1,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Project files | ||
.idea/ | ||
.vscode/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
args: ['--maxkb=2000'] | ||
args: [ '--maxkb=2000' ] | ||
- id: check-ast | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
# - id: requirements-txt-fixer | ||
- id: flake8 | ||
args: | ||
- '--max-line-length=140' # default of Black | ||
- '--per-file-ignores=buildingsync_asset_extractor/lighting_processing/building_space_type_to_lpd.py:E501 buildingsync_asset_extractor/lighting_processing/building_type_to_lpd.py:E501' | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: ['--autofix', '--no-sort-keys'] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
args: ['-m=VERTICAL_HANGING_INDENT'] # vertical hanging | ||
args: [ '--autofix', '--no-sort-keys' ] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.1.1 | ||
rev: v1.11.2 | ||
hooks: | ||
- id: mypy | ||
args: [ "--install-types", "--non-interactive", "--ignore-missing-imports" ] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.7 | ||
hooks: | ||
- id: mypy | ||
args: ["--install-types", "--non-interactive", "--ignore-missing-imports"] | ||
# Run the linter | ||
- id: ruff | ||
args: [ --fix, --exit-non-zero-on-fix, --output-format=full ] | ||
# Run the formatter | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from buildingsync_asset_extractor.cts.cts import building_sync_to_cts # NOQA | ||
from buildingsync_asset_extractor.cts.cts import building_sync_to_cts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.