Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#985)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](astral-sh/ruff-pre-commit@v0.1.4...v0.1.5)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](pre-commit/mirrors-prettier@v3.0.3...v3.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 13, 2023
1 parent ad79add commit 6fc930e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ repos:

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
files: ^src/backend/(?:.*/)*.*$
args: [--target-version=py39]

# Lint / autoformat: Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.4"
rev: "v0.1.5"
hooks:
- id: ruff
files: ^src/backend/(?:.*/)*.*$
args: [--fix, --exit-non-zero-on-fix]

# Autoformat: YAML, JSON, Markdown, etc.
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v3.1.0
hooks:
- id: prettier
args:
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/components/OpenLayersMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ const OpenLayersMap = ({
index == 0
? (btnDiv.style.top = `${(btnsPosition = btnsPosition + 2)}%`)
: windowSize.width >= 640
? (btnDiv.style.top = `${(btnsPosition = btnsPosition + 9)}%`)
: (btnDiv.style.top = `${(btnsPosition = btnsPosition + 6)}%`);
? (btnDiv.style.top = `${(btnsPosition = btnsPosition + 9)}%`)
: (btnDiv.style.top = `${(btnsPosition = btnsPosition + 6)}%`);
btnDiv.appendChild(btn);
var control = new Control({
element: btnDiv,
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/src/views/MainView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ const MainView = () => {
height: popupInParams
? '100vh'
: location.pathname.includes('project_details') && windowSize.width <= 640
? '100vh'
: windowSize.width <= 599
? '90vh'
: '92vh',
? '100vh'
: windowSize.width <= 599
? '90vh'
: '92vh',
overflow: 'auto',
// p: '1.3rem',
}}
Expand Down

0 comments on commit 6fc930e

Please sign in to comment.