This file contains hidden or 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
darglint | |
flake8 | |
flake8-bandit | |
flake8-bugbear | |
flake8-builtins | |
flake8-comprehensions | |
flake8-docstrings | |
flake8-eradicate | |
flake8-isort | |
flake8-pytest-style |
This file contains hidden or 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
"""Proof-of-concept asynchronous Wikipedia search tool.""" | |
import asyncio | |
import logging | |
import time | |
import httpx | |
EMAIL = "your_email@provider" # or Github URL or other identifier | |
USER_AGENT = {"user-agent": f"pypedia/0.1.0 ({EMAIL})"} |
This file contains hidden or 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
"""Send greetings.""" | |
import time | |
import arrow | |
def greet(tz, repeat=1, interval=3): | |
"""Parse a timezone and greet a location a number of times.""" | |
for i in range(repeat): | |
if i > 0: # no delay needed on first round |
This file contains hidden or 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
# Makefile for a Hugo project, for build automation | |
# Copyright 2015 Jonathan Bowman. Licensed under the Apache License, | |
# Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 | |
# distributed "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND | |
# target file for bundled Javascript | |
JS_TARGET = static/assets/bundle.js | |
# Javascript file to be passed to bundler as entry point |
NewerOlder