-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.5.0: New Filtering and General Version Bumps (#113)
* Bumps dependencies, fixes up code styling, and migrates to the new caracara-filters library. * Changes version to 0.5.0 and bumps dependencies
- Loading branch information
1 parent
038e4a1
commit b3c257d
Showing
45 changed files
with
578 additions
and
1,682 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Caracara Code Quality | ||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
branches: | ||
- main | ||
- 'ver_*' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
codequality: | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Poetry via pipx | ||
run: pipx install poetry | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Lint package source with flake8 | ||
run: poetry run flake8 caracara/ --show-source --statistics | ||
- name: Lint package source with pylint | ||
if: success() || failure() | ||
run: poetry run pylint caracara/ | ||
- name: Lint package docstrings and comments with pydocstyle | ||
if: success() || failure() | ||
run: poetry run pydocstyle caracara/ | ||
- name: Analyse code for security issues with bandit | ||
if: success() || failure() | ||
run: | | ||
poetry run bandit -r caracara --configfile .bandit | ||
poetry run bandit -r examples --configfile examples/.bandit | ||
poetry run bandit -r tests --configfile tests/.bandit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 +1,13 @@ | ||
"""Caracara: Common functions and data imports.""" | ||
from caracara.common.common_filters import FILTER_ATTRIBUTES | ||
from caracara.common.constants import FILTER_OPERATORS, SCROLL_BATCH_SIZE, DATA_BATCH_SIZE | ||
__all__ = [ | ||
"DATA_BATCH_SIZE", | ||
"FalconApiModule", | ||
"Policy", | ||
"SCROLL_BATCH_SIZE", | ||
"user_agent_string", | ||
] | ||
|
||
from caracara.common.constants import SCROLL_BATCH_SIZE, DATA_BATCH_SIZE | ||
from caracara.common.policy_wrapper import Policy | ||
from caracara.filters.utils import IPChecker, RelativeTimestamp, ISOTimestampChecker | ||
from caracara.common.meta import user_agent_string | ||
from caracara.common.module import FalconApiModule | ||
|
||
__all__ = [ | ||
"FILTER_OPERATORS", "SCROLL_BATCH_SIZE", "DATA_BATCH_SIZE", "IPChecker", | ||
"RelativeTimestamp", "ISOTimestampChecker", "FILTER_ATTRIBUTES", | ||
"user_agent_string", "FalconApiModule", "Policy", | ||
] |
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 was deleted.
Oops, something went wrong.
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.