Skip to content

Commit

Permalink
add tox.ini, run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed Jan 30, 2022
1 parent 349e572 commit 3be18af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stac_fastapi/mongo/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"stac-fastapi.extensions==2.3.0",
"fastapi-utils",
"pymongo",
"pystac[validation]"
"pystac[validation]",
]

extra_reqs = {
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Linter configs
[flake8]
ignore = D203
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
max-complexity = 12
max-line-length = 90

;[mypy]
;no_strict_optional = true
;ignore_missing_imports = True

[tool:isort]
profile=black
known_first_party = stac_fastapi
known_third_party = rasterio,stac-pydantic,sqlalchemy,geoalchemy2,fastapi
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

0 comments on commit 3be18af

Please sign in to comment.