-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
18 changed files
with
406 additions
and
321 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,33 @@ | ||
[flake8] | ||
ignore = | ||
# whitespace before ':' | ||
E203, | ||
# too many leading ### in a block comment | ||
E266, | ||
# line too long (managed by black) | ||
E501, | ||
# Line break occurred before a binary operator (this is not PEP8 compatible) | ||
W503, | ||
# Missing docstring in public module | ||
D100, | ||
# Missing docstring in public class | ||
D101, | ||
# Missing docstring in public method | ||
D102, | ||
# Missing docstring in public function | ||
D103, | ||
# Missing docstring in public package | ||
D104, | ||
# Missing docstring in magic method | ||
D105, | ||
# Missing docstring in public package | ||
D106, | ||
# Missing docstring in __init__ | ||
D107, | ||
# needed because of https://github.com/ambv/black/issues/144 | ||
D202, | ||
# other string does contain unindexed parameters | ||
P103 | ||
max-line-length = 80 | ||
exclude = migrations snapshots | ||
max-complexity = 10 |
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 @@ | ||
version: 2 | ||
updates: | ||
# Update pip dependencies | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "feat(deps): " | ||
prefix-development: "chore(deps): " | ||
open-pull-requests-limit: 20 | ||
# Update Dockerfile | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "feat: " | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "chore(ci): " | ||
open-pull-requests-limit: 10 |
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,36 @@ | ||
name: Lint and Test | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
- gh-pages | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
|
||
- run: pip install -r requirements-dev.txt | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
|
||
- run: pip install -r requirements-dev.txt | ||
|
||
- 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,7 @@ | ||
[settings] | ||
known_first_party=nowplaying | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
line_length=88 |
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,32 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: black | ||
language: system | ||
entry: black | ||
types: [python] | ||
- id: isort | ||
name: isort | ||
language: system | ||
entry: isort | ||
types: [python] | ||
- id: flake8 | ||
name: flake8 | ||
language: system | ||
entry: flake8 | ||
types: [python] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: ^src/api/client.js$ | ||
- id: end-of-file-fixer | ||
exclude: ^src/api/client.js$ | ||
- id: check-symlinks | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: detect-aws-credentials | ||
args: | ||
- --allow-missing-credentials | ||
- id: detect-private-key |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.formatting.provider": "black" | ||
} |
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 was deleted.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-r requirements.txt | ||
black==22.1.0 | ||
flake8==4.0.1 | ||
flake8-debugger==4.0.0 | ||
flake8-docstrings==1.6.0 | ||
flake8-isort==4.1.1 | ||
flake8-string-format==0.3.0 | ||
flake8-tuple==0.4.1 | ||
isort==5.10.1 | ||
mock==4.0.3 | ||
pytest==6.2.5 | ||
pytest-cov==3.0.0 | ||
pytest-env==0.6.2 | ||
pytest-pylint==0.18.0 | ||
twine==3.7.1 | ||
types-requests==2.27.7 | ||
wheel==0.37.1 |
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,3 +1,3 @@ | ||
ConfigArgParse | ||
pytz | ||
requests | ||
ConfigArgParse==1.5.3 | ||
pytz==2021.3 | ||
requests==2.27.1 |
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,5 @@ | ||
[metadata] | ||
description-file = README.md | ||
|
||
[tool:pytest] | ||
addopts = --doctest-modules --cov=suisa_sendemeldung --pylint |
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,19 +1,24 @@ | ||
from setuptools import setup | ||
"""Set up suisa_sendemeldung.""" | ||
|
||
from setuptools import setup | ||
|
||
with open('requirements.txt') as f: | ||
with open("requirements.txt", encoding="utf-8") as f: | ||
requirements = f.read().splitlines() | ||
|
||
|
||
setup(name='suisa_sendemeldung', | ||
description='ACRCloud client for SUISA reporting', | ||
url='http://github.com/radiorabe/suisa_reporting', | ||
author='RaBe IT-Reaktion', | ||
author_email='[email protected]', | ||
license='MIT', | ||
install_requires=requirements, | ||
packages=['suisa_sendemeldung'], | ||
entry_points = { | ||
'console_scripts': ['suisa_sendemeldung=suisa_sendemeldung.suisa_sendemeldung:main'], | ||
}, | ||
zip_safe=True) | ||
setup( | ||
name="suisa_sendemeldung", | ||
description="ACRCloud client for SUISA reporting", | ||
url="http://github.com/radiorabe/suisa_reporting", | ||
author="RaBe IT-Reaktion", | ||
author_email="[email protected]", | ||
license="MIT", | ||
install_requires=requirements, | ||
packages=["suisa_sendemeldung"], | ||
entry_points={ | ||
"console_scripts": [ | ||
"suisa_sendemeldung=suisa_sendemeldung.suisa_sendemeldung:main" | ||
], | ||
}, | ||
zip_safe=True, | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.