Skip to content

Commit

Permalink
Add pyroma check
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed May 27, 2022
1 parent 5ff7649 commit 9abf25f
Show file tree
Hide file tree
Showing 8 changed files with 244 additions and 78 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Auto reviews updates

on:
pull_request:
types:
- opened
- reopened
- synchronize
workflow_run:
workflows:
- None
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:

- name: Checks
run: c2cciutils-checks
- name: GitHub event
run: echo ${GITHUB_EVENT} | python3 -m json.tool
env:
GITHUB_EVENT: ${{ toJson(github) }}

- run: poetry install
- run: poetry run prospector
- run: poetry run prospector --output=pylint -X
- run: >
poetry run coverage run --source=deskew --module pytest --durations=0 --verbose --color=yes
--profile --profile-svg --junitxml=results/test-reports/junit.xml tests &&
Expand All @@ -56,18 +60,15 @@ jobs:
if: env.HAS_SECRETS == 'HAS_SECRETS'
- name: Bump version
run: |
python3 -m pip install --user bump-anything
bump patch
git add setup.py
poetry version patch
git add pyproject.toml
git commit --allow-empty -m "[skip ci] Bump Version"
git push
if: |
github.ref == 'refs/heads/master'
&& env.HAS_SECRETS == 'HAS_SECRETS'
- name: deploy
run: |
python3 setup.py egg_info --no-date sdist bdist_wheel
python3 -m twine upload dist/*
run: c2cciutils-publish --type=version_tag --version=unused
if: |
github.ref == 'refs/heads/master'
&& env.HAS_SECRETS == 'HAS_SECRETS'
10 changes: 9 additions & 1 deletion .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
strictness: veryhigh
max-line-length: 110
doc-warnings: True

pycodestyle:
disable:
- E501 # line too long
- E203 # whitespace before ':'
- E722 # do not use bare 'except'

pydocstyle:
disable:
- D100 # Missing docstring in public module
Expand All @@ -16,5 +21,8 @@ bandit:
mypy:
run: true

pyroma:
run: true

mccabe:
run: false
2 changes: 1 addition & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
c2cciutils==1.1.12
c2cciutils==1.2.dev20220527115520
poetry==1.1.13
163 changes: 163 additions & 0 deletions poetry.lock

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

Loading

0 comments on commit 9abf25f

Please sign in to comment.