-
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.
- Loading branch information
Showing
24 changed files
with
1,412 additions
and
336 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,50 @@ | ||
[flake8] | ||
|
||
application-package-names = proper_cli | ||
application-import-names = proper_cli | ||
import-order-style = pycharm | ||
|
||
select = | ||
# bugbear | ||
B, | ||
# mccabe, comprehensions, commas | ||
C, | ||
# pycodestyle errors | ||
E, | ||
# pyflakes | ||
F, | ||
# logging format | ||
G, | ||
# imports | ||
I, | ||
P, | ||
# quotes | ||
Q, | ||
# pycodestyle warnings | ||
W, | ||
|
||
ignore = | ||
# x is too complex | ||
C901, | ||
# whitespace before ':' | ||
E203, | ||
E501, | ||
# x defined from star imports | ||
F405, | ||
# line break before binary operator | ||
W503, | ||
W605, | ||
|
||
max-line-length = 92 | ||
max-complexity = 10 | ||
|
||
inline-quotes = double | ||
multiline-quotes = double | ||
docstring-quotes = double | ||
|
||
exclude = | ||
.git, | ||
.venv, | ||
__pycache__, | ||
conftest.py, | ||
docs, |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Upload to PyPI | ||
|
||
on: | ||
# Triggers the workflow when a release is created | ||
release: | ||
types: [released] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: "Installs poetry" | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
- name: "Builds and uploads to PyPI" | ||
run: | | ||
~/.local/share/pypoetry/venv/bin/poetry build | ||
~/.local/share/pypoetry/venv/bin/poetry publish | ||
env: | ||
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.TOKEN_PYPI }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
.PHONY: test | ||
test: | ||
pytest -x proper_cli tests | ||
poetry run pytest -x src/proper_cli tests | ||
|
||
.PHONY: lint | ||
lint: | ||
flake8 --config=setup.cfg proper_cli tests | ||
poetry run flake8 src/proper_cli tests | ||
|
||
.PHONY: coverage | ||
coverage: | ||
pytest --cov-report html --cov proper_cli proper_cli tests | ||
poetry run pytest --cov-config=pyproject.toml --cov-report html --cov proper_cli src/proper_cli tests | ||
|
||
.PHONY: types | ||
types: | ||
poetry run pyright src/proper_cli | ||
|
||
.PHONY: install | ||
install: | ||
pip install -e .[test,dev] | ||
# pre-commit install --hook-type pre-push | ||
poetry install --with dev,test | ||
poetry run pre-commit install |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.