Check latest GitHub actions releases.
- Python 3.8 or later
import * as Sentry from '@sentry/react' | |
import React, { FC, ReactElement } from 'react' | |
export const App: FC = () => <p>Hello, world!</p> | |
export const createApp = (): ReactElement => ( | |
<Sentry.ErrorBoundary> | |
<App /> | |
</Sentry.ErrorBoundary> | |
) |
Check latest GitHub actions releases.
FROM playpauseandstop/docker-python:3.2.0-py38 | |
RUN pip install pip==19.2.3 | |
RUN pip install pyheif==0.4 | |
CMD ["python"] |
[tool.black] | |
exclude = "^.*/migrations/.*$" | |
line_length = 79 | |
target_version = ["py37"] | |
[tool.poetry] | |
name = "project" | |
version = "1.0.0" | |
description = "Project" | |
authors = ["Team <team@googlegroups.com>"] |
#!/bin/bash | |
# | |
# Script to show list of dependencies for pre-commit hook. | |
# | |
# Requirements | |
# ============ | |
# | |
# - [curl](https://curl.haxx.se/) | |
# - [jq](https://stedolan.github.io/jq/) | |
# - [npm](https://www.npmjs.com/) |
Script to update Python version for projects with pyenv & poetry
This script intended to be run for projects which,
.pyenv-version
file (Python version managed by pyenv)make install
(or make install-api
)#!/bin/bash | |
# | |
# Tiny shell script to run ``pip-check`` cmd inside of venv or fallback to | |
# global ``pip-check`` after. | |
# | |
# `pip-check <https://github.com/bartTC/pip-check/>`_ is a tool for checking | |
# outdated versions installed in your Python virtual environment or global | |
# site packages. | |
# | |
# Usage |
.PHONY: clean distclean install run | |
ENV ?= env | |
VENV = $(shell python -c "import sys; print(int(hasattr(sys, 'real_prefix')));") | |
ifeq ($(VENV),1) | |
GUNICORN = gunicorn | |
else | |
GUNICORN = $(ENV)/bin/gunicorn | |
endif |
#!/bin/bash | |
# | |
# Check out available updates for virtual environment or system libraries with | |
# `pip <http://pip.pypa.org/>`_. | |
# | |
# Requirements | |
# ============ | |
# | |
# * GNU/Linux, Mac OS X | |
# * `pip`_ 1.4 or higher |
import operator | |
def arange(start, stop=None, step=None): | |
""" | |
Implement range function not only for integers as Python's builtin | |
function, but for Decimals and floats as well. | |
Returns generator with arithmetic progession, not list. |