This file contains 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
# General | |
xcode-select --install | |
# 2to3 error; python_version < "3.8" | |
pip install setuptools <=57.5.0 | |
# Pillow | |
brew install libjpeg | |
brew install zlib | |
export LDFLAGS="-L/usr/local/opt/zlib/lib" |
This file contains 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
repos: | |
- repo: meta | |
hooks: | |
- id: check-useless-excludes | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.2.0 | |
hooks: | |
- id: check-added-large-files | |
- id: check-ast |
This file contains 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
[build-system] | |
requires = [ | |
"setuptools", | |
"wheel", | |
] | |
build-backend = "setuptools.build_meta" | |
[tool.black] | |
line-length = 120 | |
skip-string-normalization = true |
This file contains 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
SELECT con.* | |
FROM pg_catalog.pg_constraint con | |
INNER JOIN pg_catalog.pg_class rel | |
ON rel.oid = con.conrelid | |
INNER JOIN pg_catalog.pg_namespace nsp | |
ON nsp.oid = connamespace | |
WHERE nsp.nspname = '<schema name>' | |
AND rel.relname = '<table name>'; |
This file contains 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
#!/usr/bin/env bash | |
pkgutil --expand $1 /tmp/pkg; cat /tmp/pkg/PackageInfo | grep "version=" ; rm -rf /tmp/pkg |