Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
radiac committed Sep 24, 2019
1 parent 3425a58 commit 07f3a8b
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ htmlcov/*
build
dist
*.egg-info
.tox
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Serac
=====

.. image:: https://travis-ci.org/radiac/serac.svg?branch=master
:target: https://travis-ci.org/radiac/serac

.. image:: https://coveralls.io/repos/radiac/serac/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/radiac/serac?branch=master


Incremental permanent data archiver with encryption.

Designed for permanently backing up data which does not change frequently,
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pytest-mock
pytest-mypy
typing_extensions
-e git+https://github.com/radiac/pytest-freezegun.git@bugfix/class-based-tests-with-duration-regression#egg=pytest-freezegun
coveralls

# Docs
-e git+https://github.com/radiac/doc8.git@feature/python-api#egg=doc8
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ certifi==2019.6.16 # via requests
cffi==1.12.3 # via cryptography
chardet==3.0.4 # via requests
click==7.0
coverage==4.5.4 # via pytest-cov
coverage==4.5.4 # via coveralls, pytest-cov
coveralls==1.8.2
cryptography==2.7 # via pyaescrypt
decorator==4.4.0 # via ipython, traitlets
docopt==0.6.2 # via coveralls
docutils==0.14 # via botocore, restructuredtext-lint
entrypoints==0.3 # via flake8
flake8==3.7.8 # via pytest-flake8
Expand Down Expand Up @@ -64,7 +66,7 @@ pytest-mock==1.10.4
pytest-mypy==0.3.3
pytest==5.0.1
python-dateutil==2.8.0 # via botocore, freezegun
requests==2.22.0 # via smart-open
requests==2.22.0 # via coveralls, smart-open
restructuredtext-lint==1.3.0
s3transfer==0.2.1 # via boto3
six==1.12.0 # via cryptography, freezegun, packaging, pip-tools, prompt-toolkit, python-dateutil, stevedore, traitlets
Expand Down
1 change: 1 addition & 0 deletions serac/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from .storage import Storage, storage_registry


T = TypeVar("T", bound="SectionConfig")


Expand Down
1 change: 1 addition & 0 deletions serac/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from pyAesCrypt import decryptStream, encryptStream


# Encryption/decryption buffer size - 64K
BUFFER_SIZE = 64 * 1024

Expand Down
1 change: 1 addition & 0 deletions serac/index/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from peewee import Model as BaseModel
from peewee import SqliteDatabase, TextField


_db = SqliteDatabase(None)
models: DefaultDict[Database, List[Model]] = defaultdict(list)

Expand Down
1 change: 1 addition & 0 deletions serac/index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ..reporter import NullReporter, Reporter
from .models import TYPE_CHECKING, Action, File


if TYPE_CHECKING:
from ..config import ArchiveConfig # pragma: no cover

Expand Down
1 change: 1 addition & 0 deletions serac/index/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from .database import EnumField, Model, PathField


if TYPE_CHECKING:
from ..config import ArchiveConfig # pragma: no cover

Expand Down
1 change: 1 addition & 0 deletions serac/storage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ..crypto import decrypt, encrypt
from ..exceptions import FileExists


storage_registry = {}


Expand Down
1 change: 1 addition & 0 deletions serac/storage/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from .base import Storage


if TYPE_CHECKING:
from configparser import ConfigParser # pragma: no cover

Expand Down
1 change: 1 addition & 0 deletions serac/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from ..exceptions import ArchiveUnavailable, FileExists
from .base import Storage


# Number of days to restore a file from Glacier for
RESTORE_DAYS = 1

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ ignore_missing_imports = True

[doc8]
max-line-length = 88
ignore-path = *.txt
ignore-path = *.txt,.tox
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from setuptools import find_packages, setup


VERSION = "0.0.1"


Expand Down
1 change: 1 addition & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
TmpFs,
)


# Timestamp to use in tests - 2001-01-30 00:00:00
JAN_30 = 980812800

Expand Down

0 comments on commit 07f3a8b

Please sign in to comment.