2021-06-28 16:16:14 -04:00
|
|
|
[tool.poetry]
|
2021-07-21 16:10:32 -04:00
|
|
|
authors = ["Your Name <you@example.com>"]
|
|
|
|
description = "ETL and Generation of Justice 40 Score"
|
2021-08-05 15:35:54 -04:00
|
|
|
name = "data-pipeline"
|
2021-06-28 16:16:14 -04:00
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2021-07-20 14:55:39 -04:00
|
|
|
CensusData = "^1.13"
|
|
|
|
click = "^8.0.1"
|
|
|
|
dynaconf = "^3.1.4"
|
2021-07-21 16:10:32 -04:00
|
|
|
geopandas = "^0.9.0"
|
2021-06-28 16:16:14 -04:00
|
|
|
ipython = "^7.24.1"
|
|
|
|
jupyter = "^1.0.0"
|
|
|
|
jupyter-contrib-nbextensions = "^0.5.1"
|
|
|
|
numpy = "^1.21.0"
|
|
|
|
pandas = "^1.2.5"
|
2021-07-21 16:10:32 -04:00
|
|
|
python = "^3.7.1"
|
2021-08-09 22:24:14 -05:00
|
|
|
pypandoc = "^1.6.3"
|
2021-06-28 16:16:14 -04:00
|
|
|
requests = "^2.25.1"
|
2021-08-09 22:24:14 -05:00
|
|
|
tqdm = "4.62.0"
|
2021-06-28 16:16:14 -04:00
|
|
|
types-requests = "^2.25.0"
|
2021-08-09 22:24:14 -05:00
|
|
|
us = "^2.0.2"
|
|
|
|
xlsxwriter = "^2.0.0"
|
2021-06-28 16:16:14 -04:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
|
|
black = {version = "^21.6b0", allow-prereleases = true}
|
2021-08-02 12:16:38 -04:00
|
|
|
flake8 = "^3.9.2"
|
|
|
|
liccheck = "^0.6.2"
|
2021-08-05 15:35:54 -04:00
|
|
|
mypy = "^0.910"
|
2021-08-09 10:39:59 -04:00
|
|
|
openpyxl = "^3.0.7"
|
2021-08-05 15:35:54 -04:00
|
|
|
pylint = "^2.9.6"
|
|
|
|
pytest = "^6.2.4"
|
2021-08-02 12:16:38 -04:00
|
|
|
safety = "^1.10.3"
|
2021-08-05 15:35:54 -04:00
|
|
|
tox = "^3.24.0"
|
2021-06-28 16:16:14 -04:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2021-07-21 16:10:32 -04:00
|
|
|
requires = ["poetry-core>=1.0.0"]
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[tool.pylint]
|
|
|
|
|
|
|
|
[tool.pylint."MESSAGE CONTROL"]
|
|
|
|
disable = [
|
2021-08-05 15:35:54 -04:00
|
|
|
"C0114", # Disables module docstrings
|
|
|
|
"R0201", # Disables method could have been a function
|
|
|
|
"R0903", # Disables too few public methods
|
|
|
|
"C0103", # Disables name case styling
|
|
|
|
"W0511", # Disables FIXME warning
|
|
|
|
"W1203", # Disables f-string interpolation for logging warning # Errors temporarily ignored for further discussion
|
|
|
|
"W0107", # Disables unnecessary pass
|
|
|
|
"W0221", # Disables arguments differ
|
|
|
|
"R0902", # Disables too many instance attributes
|
|
|
|
"R0914", # Disables too many local variables
|
|
|
|
"W0621", # Disables redefined outer name
|
|
|
|
"C0302", # Disables too many lines in module
|
|
|
|
"R1732", # Disables consider using "with"
|
|
|
|
"R1720", # Disables unnecessary "else" after "raise"
|
|
|
|
"C0206", # Disables consider iteratig with ".items()"
|
|
|
|
"C0200", # Disables consider using "enumerate" instead of "range" + "len"
|
|
|
|
"W0612", # Disables unused variable
|
|
|
|
"W0613", # Disables unused argument
|
|
|
|
"C0116", # Disables missing function or method docstring
|
|
|
|
"C0115", # Disables missing class docstring
|
2021-08-02 12:16:38 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[tool.pylint.FORMAT]
|
2021-08-05 15:35:54 -04:00
|
|
|
max-line-length = 150
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[tool.pylint.SIMILARITIES]
|
|
|
|
# Configures how pylint detects repetitive code
|
|
|
|
ignore-comments = "yes"
|
|
|
|
ignore-docstrings = "yes"
|
|
|
|
ignore-imports = "yes"
|
2021-08-05 15:35:54 -04:00
|
|
|
min-similarity-lines = 4
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[tool.liccheck]
|
|
|
|
# Authorized and unauthorized licenses in LOWER CASE
|
|
|
|
authorized_licenses = [
|
2021-08-05 15:35:54 -04:00
|
|
|
"bsd",
|
|
|
|
"new bsd",
|
|
|
|
"bsd license",
|
|
|
|
"bsd 3-clause",
|
|
|
|
"new bsd license",
|
|
|
|
"simplified bsd",
|
|
|
|
"apache",
|
|
|
|
"apache 2.0",
|
|
|
|
"apache license 2.0",
|
|
|
|
"apache software license",
|
|
|
|
"apache software",
|
|
|
|
"gnu lgpl",
|
|
|
|
"gnu lesser general public license v2 (lgplv2)",
|
|
|
|
"gnu general public license v2 (gplv2)",
|
|
|
|
"gnu library or lesser general public license (lgpl)",
|
|
|
|
"lgpl with exceptions or zpl",
|
|
|
|
"isc license",
|
|
|
|
"isc license (iscl)",
|
|
|
|
"mit",
|
|
|
|
"mit license",
|
|
|
|
"mozilla public license 2.0 (mpl 2.0)",
|
|
|
|
"public domain",
|
|
|
|
"python software foundation license",
|
|
|
|
"python software foundation",
|
|
|
|
"zpl 2.1",
|
|
|
|
"gpl v3",
|
2021-08-02 12:16:38 -04:00
|
|
|
]
|
2021-08-05 15:35:54 -04:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
2021-08-09 10:39:59 -04:00
|
|
|
cleanup_census = 'data_pipeline.application:census_cleanup'
|
2021-08-05 15:35:54 -04:00
|
|
|
cleanup_data = 'data_pipeline.application:data_cleanup'
|
|
|
|
download_census = 'data_pipeline.application:census_data_download'
|
|
|
|
etl = 'data_pipeline.application:etl_run'
|
|
|
|
generate_tiles = 'data_pipeline.application:generate_map_tiles'
|
|
|
|
score = 'data_pipeline.application:score_run'
|
2021-08-06 16:24:30 -04:00
|
|
|
etl_and_score = 'data_pipeline.application:score_full_run'
|