-
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.
https://github.com/andgineer/ambientweather_livedata/issues/1
coverage in CI pre-commit
- Loading branch information
1 parent
6db15dd
commit 1d262d2
Showing
9 changed files
with
154 additions
and
27 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,18 @@ | ||
[run] | ||
relative_files = true | ||
omit = | ||
*/tests/* | ||
*/*_check.py | ||
*/__init__.py | ||
*/conftest.py | ||
*/.tox/* | ||
*/.venv/* | ||
*/.eggs/* | ||
*/docs/* | ||
*/build/* | ||
*/dist/* | ||
*/.git/* | ||
*/.github/* | ||
*/.vscode/* | ||
*/.pytest_cache/* | ||
*/migrations/* |
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,26 @@ | ||
# build docs from docstrings and markdown-file in folder docs | ||
# publish them as github pages | ||
# | ||
#note for myself | ||
# | ||
# Do not forget to set git branch `gh-pages` as source for github pages. | ||
# This branch auto-updated by `mkdocs gh-deploy` | ||
# | ||
name: static source code checks | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- run: pre-commit run --verbose --all-files |
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,45 @@ | ||
exclude: | | ||
(?x)( | ||
tests/| | ||
docs/| | ||
core/| | ||
venv/| | ||
__about__.py | ||
) | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.11 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: MyPy | ||
entry: | | ||
mypy | ||
--ignore-missing-imports | ||
--install-types | ||
--non-interactive | ||
--strict | ||
--implicit-reexport | ||
--warn-unused-ignores | ||
--cache-fine-grained | ||
--no-namespace-packages | ||
files: \.py$ | ||
language: python | ||
|
||
- id: pylint | ||
name: Pylint | ||
entry: | | ||
bash -c 'PYTHONPATH=. pylint \ | ||
--max-line-length=99 \ | ||
--ignore-imports=yes \ | ||
"$@"' -- | ||
files: \.py$ | ||
language: python |
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 @@ | ||
line-length = 99 |
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
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,4 +1,12 @@ | ||
lxml | ||
requests | ||
# dev | ||
|
||
# test | ||
pytest | ||
pytest-cov | ||
coveralls | ||
|
||
# lint | ||
pre-commit | ||
pylint | ||
mypy |
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