forked from blackary/st_pages
-
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.
s, move folder
- Loading branch information
Showing
10 changed files
with
193 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
select = | ||
E # pep8 errors | ||
F # pyflakes errors | ||
W # pep8 warnings | ||
B # flake8-bugbear warnings | ||
ignore = | ||
E501 # "Line lengths are recommended to be no greater than 79 characters" | ||
E203 # "Whitespace before ':'": conflicts with black | ||
W503 # "line break before binary operator": conflicts with black | ||
exclude = | ||
.git | ||
.vscode | ||
.pytest_cache | ||
.mypy_cache | ||
.venv | ||
.env | ||
.direnv | ||
streamlit_patches.py | ||
per-file-ignores = |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: linting | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This workflows will upload a Python Package using Poetry when a release is created | ||
|
||
name: PyPI synchronization | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
with: | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: testing | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: "1.2.1" | ||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
python -m pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox | ||
#- name: Test with pytest | ||
# run: | | ||
# poetry run pytest |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
repos: | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: "4.0.1" | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- repo: https://github.com/psf/black | ||
rev: "22.3.0" | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/isort | ||
rev: "5.10.1" | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v0.942" | ||
hooks: | ||
- id: mypy | ||
args: | ||
- --ignore-missing-imports | ||
- --follow-imports=silent | ||
additional_dependencies: | ||
- types-all | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 # Use the ref you want to point at | ||
hooks: | ||
- id: trailing-whitespace |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 +1,10 @@ | ||
[tool.poetry] | ||
name = "streamlit-pages" | ||
name = "st-pages" | ||
version = "0.1.0" | ||
description = "An experimental version of Streamlit Multi-Page Apps" | ||
authors = ["Zachary Blackwood <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "streamlit_pages", from = "src"}] | ||
packages = [{include = "st_pages", from = "src"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.9.7 || >3.9.7,<4.0" | ||
|
@@ -21,3 +21,35 @@ tox = "^3.27.1" | |
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 88 | ||
skip = ["./.venv", "./direnv", ".env"] | ||
|
||
[tool.black] | ||
exclude = ''' | ||
( | ||
/( | ||
\.vscode | ||
| \.git | ||
| \.pytest_cache | ||
| \.mypy_cache | ||
| \.venv | ||
| \.env | ||
| \.direnv | ||
)/ | ||
) | ||
''' | ||
include = '\.pyi?$' | ||
line-length = 88 | ||
|
||
[tool.mypy] | ||
files = [ | ||
"**/*.py", | ||
] | ||
follow_imports = "silent" | ||
ignore_missing_imports = true | ||
scripts_are_modules = true | ||
python_version = 3.9 |
File renamed without changes.
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