Check latest GitHub actions releases.
- Python 3.8 or later
import datetime | |
from django.conf import settings | |
from django.contrib.auth import logout | |
from django.contrib.auth.models import User | |
from django.contrib.sessions.models import Session | |
from django.http import HttpRequest | |
from django.utils.importlib import import_module |
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> | |
) |
.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 |
#!/usr/bin/env python | |
# | |
# Script to check who of your Facebook friends were removed from FB or unfriend | |
# you. | |
# | |
# Requirements | |
# ============ | |
# | |
# * Linux / Mac OS X / other Unix | |
# * `Python <http://www.python.org/>`_ 2.6 or 2.7 |
#!/usr/bin/env python | |
# | |
# Additional wrapper to ``rsync`` command with profiles. | |
# | |
# Requirements | |
# ============ | |
# | |
# * Python_ 2.4 or higher | |
# * rsync_ | |
# |
from wtforms.fields import SelectField as BaseSelectField | |
from wtforms.validators import ValidationError | |
from wtforms.widgets import HTMLString, html_params, escape | |
from wtforms.widgets import Select as BaseSelectWidget | |
__all__ = ('SelectField', 'SelectWidget') | |
class SelectWidget(BaseSelectWidget): |
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/) |