-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dea9d6
commit 4dce974
Showing
22 changed files
with
96 additions
and
153 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
default_install_hook_types: [pre-commit, pre-push] | ||
repos: | ||
- repo: https://github.com/psf/black | ||
#this version is synced with the black mentioned in .github/workflows/ci.yml | ||
rev: 22.12.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.2.1 | ||
hooks: | ||
- id: black | ||
entry: bash -c 'black "$@"; git add -u' -- | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.9 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
- name: Ruff formatting | ||
id: ruff-format | ||
- name: Ruff linting | ||
id: ruff | ||
stages: [pre-push] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[project] | ||
name = "aggregator" | ||
requires-python = ">= 3.9" | ||
version = "0.1.3" | ||
requires-python = ">= 3.10" | ||
version = "0.3.0" | ||
# This project is designed to run on the AWS serverless application framework (SAM). | ||
# The project dependencies are handled via AWS layers. These are only required for | ||
# local development. | ||
dependencies= [ | ||
"arrow >=1.2.3", | ||
"awswrangler >=2.19.0, <3", | ||
"awswrangler >=3.5, <4", | ||
"boto3", | ||
"pandas >=1.5.0, <2" | ||
"pandas >=2, <3" | ||
] | ||
authors = [ | ||
{ name="Matt Garber", email="[email protected]" }, | ||
|
@@ -45,23 +45,26 @@ test = [ | |
"pytest-mock" | ||
] | ||
dev = [ | ||
"bandit", | ||
"black==22.12.0", | ||
"isort==5.12.0", | ||
"ruff == 0.2.1", | ||
"pre-commit", | ||
"pylint", | ||
"pycodestyle" | ||
] | ||
[tool.ruff] | ||
target-version = "py310" | ||
|
||
[tool.coverage.run] | ||
command_line="-m pytest" | ||
source=["./src/"] | ||
|
||
[tool.coverage.report] | ||
show_missing=true | ||
|
||
[tool.isort] | ||
profile = "black" | ||
src_paths = ["src", "tests"] | ||
skip_glob = [".aws_sam"] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"A", # prevent using keywords that clobber python builtins | ||
"B", # bugbear: security warnings | ||
"E", # pycodestyle | ||
"F", # pyflakes | ||
"I", # isort | ||
"ISC", # implicit string concatenation | ||
"PLE", # pylint errors | ||
"RUF", # the ruff developer's own rules | ||
"UP", # alert you when better syntax is available in your python version | ||
] | ||
ignore = [ | ||
# Recommended ingore from `ruff format` due to in-project conflicts with check. | ||
# It's expected that this will be fixed in the coming months. | ||
"ISC001" | ||
] |
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
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
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
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
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
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
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
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
Oops, something went wrong.