update
This commit is contained in:
parent
2200c9db97
commit
ab8ec99028
6 changed files with 96 additions and 7 deletions
65
.gitignore
vendored
65
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
### Python
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
@ -20,6 +22,7 @@ parts/
|
||||||
sdist/
|
sdist/
|
||||||
var/
|
var/
|
||||||
wheels/
|
wheels/
|
||||||
|
share/python-wheels/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
.installed.cfg
|
.installed.cfg
|
||||||
*.egg
|
*.egg
|
||||||
|
@ -38,14 +41,17 @@ pip-delete-this-directory.txt
|
||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
htmlcov/
|
htmlcov/
|
||||||
.tox/
|
.tox/
|
||||||
|
.nox/
|
||||||
.coverage
|
.coverage
|
||||||
.coverage.*
|
.coverage.*
|
||||||
.cache
|
.cache
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
coverage.xml
|
coverage.xml
|
||||||
*.cover
|
*.cover
|
||||||
|
*.py,cover
|
||||||
.hypothesis/
|
.hypothesis/
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
|
cover/
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
@ -55,6 +61,7 @@ coverage.xml
|
||||||
*.log
|
*.log
|
||||||
local_settings.py
|
local_settings.py
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
|
db.sqlite3-journal
|
||||||
|
|
||||||
# Flask stuff:
|
# Flask stuff:
|
||||||
instance/
|
instance/
|
||||||
|
@ -67,16 +74,34 @@ instance/
|
||||||
docs/_build/
|
docs/_build/
|
||||||
|
|
||||||
# PyBuilder
|
# PyBuilder
|
||||||
|
.pybuilder/
|
||||||
target/
|
target/
|
||||||
|
|
||||||
# Jupyter Notebook
|
# Jupyter Notebook
|
||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
|
|
||||||
# pyenv
|
# IPython
|
||||||
.python-version
|
profile_default/
|
||||||
|
ipython_config.py
|
||||||
|
|
||||||
# celery beat schedule file
|
# pyenv
|
||||||
|
# For a library or package, you might want to ignore these files since the code is
|
||||||
|
# intended to run in multiple environments; otherwise, check them in:
|
||||||
|
# .python-version
|
||||||
|
|
||||||
|
# pipenv
|
||||||
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||||
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||||
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||||
|
# install all needed dependencies.
|
||||||
|
#Pipfile.lock
|
||||||
|
|
||||||
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
||||||
|
__pypackages__/
|
||||||
|
|
||||||
|
# Celery stuff
|
||||||
celerybeat-schedule
|
celerybeat-schedule
|
||||||
|
celerybeat.pid
|
||||||
|
|
||||||
# SageMath parsed files
|
# SageMath parsed files
|
||||||
*.sage.py
|
*.sage.py
|
||||||
|
@ -102,5 +127,35 @@ venv.bak/
|
||||||
|
|
||||||
# mypy
|
# mypy
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
/tags
|
.dmypy.json
|
||||||
/tags.*
|
dmypy.json
|
||||||
|
|
||||||
|
# Pyre type checker
|
||||||
|
.pyre/
|
||||||
|
|
||||||
|
# pytype static type analyzer
|
||||||
|
.pytype/
|
||||||
|
|
||||||
|
# Cython debug symbols
|
||||||
|
cython_debug/
|
||||||
|
|
||||||
|
### Vim
|
||||||
|
# Swap
|
||||||
|
[._]*.s[a-v][a-z]
|
||||||
|
!*.svg # comment out if you don't need vector files
|
||||||
|
[._]*.sw[a-p]
|
||||||
|
[._]s[a-rt-v][a-z]
|
||||||
|
[._]ss[a-gi-z]
|
||||||
|
[._]sw[a-p]
|
||||||
|
|
||||||
|
# Session
|
||||||
|
Session.vim
|
||||||
|
Sessionx.vim
|
||||||
|
|
||||||
|
# Temporary
|
||||||
|
.netrwhist
|
||||||
|
*~
|
||||||
|
# Auto-generated tag files
|
||||||
|
tags
|
||||||
|
# Persistent undo
|
||||||
|
[._]*.un~
|
||||||
|
|
13
.gitlab-ci.yml
Normal file
13
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
image: python
|
||||||
|
|
||||||
|
test:pylama:
|
||||||
|
stage: test
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
before_script:
|
||||||
|
- apt update && apt install -y python3-apt
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
script:
|
||||||
|
pylama *.py
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
[style]
|
[style]
|
||||||
|
|
||||||
|
# Insert a blank line before a module docstring.
|
||||||
|
blank_line_before_module_docstring=True
|
||||||
|
|
||||||
# The column limit.
|
# The column limit.
|
||||||
column_limit=120
|
column_limit=120
|
||||||
|
|
||||||
|
@ -11,7 +14,7 @@ column_limit=120
|
||||||
#
|
#
|
||||||
# foo = ('This is a really long string: {}, {}, {}, {}'
|
# foo = ('This is a really long string: {}, {}, {}, {}'
|
||||||
# .format(a, b, c, d))
|
# .format(a, b, c, d))
|
||||||
split_before_dot=False
|
split_before_dot=True
|
||||||
|
|
||||||
# Set to True to split list comprehensions and generators that have
|
# Set to True to split list comprehensions and generators that have
|
||||||
# non-trivial expressions and multiple clauses before each of these
|
# non-trivial expressions and multiple clauses before each of these
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
""" Get apt updates for `argos <https://github.com/p-e-w/argos>`"""
|
|
||||||
|
"""Get apt updates for `argos <https://github.com/p-e-w/argos>`."""
|
||||||
# <bitbar.title>apt</bitbar.title>
|
# <bitbar.title>apt</bitbar.title>
|
||||||
# <bitbar.version>v1.0</bitbar.version>
|
# <bitbar.version>v1.0</bitbar.version>
|
||||||
# <bitbar.author>Tobias Schmidl</bitbar.author>
|
# <bitbar.author>Tobias Schmidl</bitbar.author>
|
||||||
|
|
14
pylama.ini
Normal file
14
pylama.ini
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[pylama]
|
||||||
|
format = pylint
|
||||||
|
linters = mccabe,pep257,pydocstyle,pep8,pycodestyle,pyflakes,isort
|
||||||
|
ignore = D203,C0103
|
||||||
|
skip=.env/*
|
||||||
|
|
||||||
|
[pylama:pycodestyle]
|
||||||
|
max_line_length = 120
|
||||||
|
|
||||||
|
[pylama:pep8]
|
||||||
|
max_line_length = 120
|
||||||
|
|
||||||
|
[pylama:pylint]
|
||||||
|
max_line_length = 120
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
pylama>=7.7.0
|
||||||
|
pylint>=2.3.0
|
||||||
|
yapf>=0.27.0
|
Loading…
Reference in a new issue