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

Pre commit autoformat #846

Merged
merged 23 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
89f5de8
Removed unused imports using autoflake.
lmarini Dec 1, 2023
c4467c1
Ordered imports using isort.
lmarini Dec 1, 2023
96fa88a
Reformatted using black.
lmarini Dec 1, 2023
dfea47f
Setting up pre-commits.
lmarini Dec 4, 2023
81885c1
Ran pre-commit an all files.
lmarini Dec 4, 2023
30ae3c0
Merging main in.
lmarini Dec 12, 2023
e4b9817
Merging main in.
lmarini Dec 20, 2023
d6d7c8e
Working on creating openapi.json without running backend to be used w…
lmarini Dec 20, 2023
6f79212
Fixed `MUI: The Tabs component doesn't accept a Fragment as a child.`
lmarini Dec 20, 2023
6f925cd
Merge branch 'main' into pre-commit-autoformat
lmarini Dec 20, 2023
c41ec91
Fixed runtime error due to replacing `== None` with 'is None'.
lmarini Dec 20, 2023
dc64aef
Fixed runtime error due to replacing `== None` with 'is None'.
lmarini Dec 20, 2023
ca55602
Automatically generate openapi json file using pre-commit hook.
lmarini Jan 5, 2024
80d05a6
Added codegen precommit hook.
lmarini Jan 5, 2024
9c5c5ab
Setting up prettier and eslint.
lmarini Jan 8, 2024
aa77754
First run of prettier.
lmarini Jan 8, 2024
0f095d3
Runnin eslint and prettier as hooks.
lmarini Jan 8, 2024
aa73c1a
Skip codegen directories when running eslint and prettier.
lmarini Jan 8, 2024
5643a7c
Fixing merge.
lmarini Feb 12, 2024
94cf050
Flake8 E711 exception. Required for Beanie query to work.
lmarini Feb 12, 2024
2b65b8f
Fixed search_users_prefix codegen stub.
lmarini Feb 12, 2024
043761f
Fixed beanie query for get_dataset_folders.
lmarini Feb 12, 2024
85d641f
Ignore Flake8 E711 since beanie query do not support `is None`.
lmarini Feb 12, 2024
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
Prev Previous commit
Next Next commit
Setting up pre-commits.
lmarini committed Dec 4, 2023
commit dfea47f35bcb4e1e46bbc854ca704dbbeaa8be22
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
2 changes: 2 additions & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@ flake8 = "*"
pyflakes = "*"
autoflake = "*"
isort = "*"
shellcheck-py = "*"
pre-commit = "*"

[dev-packages]
requests = "2.28.2"
106 changes: 48 additions & 58 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.