Skip to content

Commit

Permalink
Reorganize everything
Browse files Browse the repository at this point in the history
  • Loading branch information
sushain97 committed Mar 26, 2018
1 parent 6227e58 commit 96f0115
Show file tree
Hide file tree
Showing 29 changed files with 1,553 additions and 1,411 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_script:
- git clone --depth 1 https://github.com/apertium/apertium-nno /tmp/languages/apertium-nno || echo 'Using cached apertium-nno'
- ( cd /tmp/languages/apertium-nno && ./autogen.sh && make -j2 )
script:
- flake8 **/*.py
- flake8 *.py apertium_apy/ language_names/
- if [[ $TRAVIS_PYTHON_VERSION != 3.4 ]]; then
mypy --config-file mypy.ini **/*.py;
fi
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test-release: langNames.db
python3 setup.py sdist bdist_wheel upload --repository https://test.pypi.org/legacy/ --sign

test:
flake8 **/*.py
flake8 *.py apertium_apy/ language_names/
mypy --config-file mypy.ini **/*.py
python3 -m unittest tests/test*.py
coverage report --fail-under 37
Expand Down
12 changes: 12 additions & 0 deletions apertium_apy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import random
import string

if False:
from typing import Optional # noqa: F401

import apertium_apy.missingdb # noqa: F401

missing_freqs_db = None # type: Optional[missingdb.MissingDb] # has to be global for sig_handler :-/

RECAPTCHA_VERIFICATION_URL = 'https://www.google.com/recaptcha/api/siteverify'
BYPASS_TOKEN = ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(24))

0 comments on commit 96f0115

Please sign in to comment.