All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2016 Ritashugisha | |
# GNUv3 License. <http://www.gnu.org/licenses/gpl-3.0.en.html> | |
""" | |
word_discovery | |
.. module:: word_discovery | |
:platform: Linux, MacOSX, Windows |
# EditorConfig http://editorconfig.org | |
root = true | |
# global config | |
[*] | |
charset = utf-8 | |
indent_style = space | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
[isort] | |
atomic = true | |
not_skip = __init__.py | |
line_length = 88 | |
indent = ' ' | |
multi_line_output = 3 | |
length_sort = 1 | |
include_trailing_comma = true |
[flake8] | |
max-line-length = 88 | |
ignore = D203,F401,E123,W503,E203 | |
exclude = | |
.tox, | |
.git, | |
__pycache__, | |
docs/source/*, | |
build, | |
dist, |
from hypothesis import given | |
from hypothesis.strategies import integers | |
@given(integers(), integers()) | |
def test_ints_are_commutative(x, y): | |
print(f"x = {x}, y = {y}") | |
assert x + y == y + x | |
repos: | |
- repo: https://github.com/ambv/black | |
rev: stable | |
hooks: | |
- id: black | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.0.0 | |
hooks: | |
- id: flake8 |
from typing import Dict, List | |
def handle_dictionary(dictionary: Dict[str, List[int]]) -> int: | |
result = 0 | |
for (key, value) in dictionary: | |
result += sum(value) | |
return result | |
# Stubs for main (Python 3) | |
# | |
# NOTE: This dynamically typed stub was automatically generated by stubgen. | |
from typing import Dict, List | |
def handle_dictionary(dictionary: Dict[str, List[int]]) -> int: ... |
{% for section in sections %} | |
{% set underline = "-" %} | |
{% if section %} | |
{{ section }} | |
{{ underline * section|length }}{% set underline = "~" %} | |
{% endif %} | |
{% if sections[section] %} | |
{% for category, value in definitions.items() if category in sections[section] and category != 'trivial' %} |