Skip to content

Commit

Permalink
Merge pull request #4 from factly/fix/black-dep
Browse files Browse the repository at this point in the history
fix: Update black version to resolve conflict with click
  • Loading branch information
deshetti authored Jun 7, 2022
2 parents 05c9f59 + 7fe15b3 commit e8dc9f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.9b0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down
1 change: 1 addition & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Settings(BaseSettings):
# CORS PARAMS
CORS_ORIGINS: list = ["*"]
CORS_METHODS: list = ["*"]
CORS_HEADERS: list = ["*"]

class Config:
env_file = ".env"
8 changes: 3 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@

app.add_middleware(
CORSMiddleware,
# allow_origins=settings.CORS_ORIGINS,
# allow_methods=settings.CORS_METHODS,
allow_origins=["*"],
allow_methods=["*"],
allow_headers=["*"],
allow_origins=settings.CORS_ORIGINS,
allow_methods=settings.CORS_METHODS,
allow_headers=settings.CORS_HEADERS,
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fsspec = "^2021.10.1"
[tool.poetry.dev-dependencies]
flake8 = "^4.0.1"
isort = "^5.9.3"
black = "^21.9b0"
black = "^22.3.0"

[tool.black]
line-length = 79
Expand Down

0 comments on commit e8dc9f3

Please sign in to comment.