Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[run]
omit =
opentaxii/cli/*.py
[run]
omit =
opentaxii/cli/*.py
122 changes: 61 additions & 61 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
# Git
.git/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Editor files
*.iml
.idea
# Git
.git/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Editor files
*.iml
.idea
8 changes: 4 additions & 4 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
max-line-length=120
exclude = docs/*,.tox/*
ignore = E203, W503, W504, E704
[flake8]
max-line-length=120
exclude = docs/*,.tox/*
ignore = E203, W503, W504, E704
8 changes: 4 additions & 4 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Initial commit to format the codebase with black
e454428fdf5b3d32f8ffbe9bded3878a80e7b169
# Initial commit to sort import on the codebase
2d69e4fb6daf037cb2f4358fde0c6c96e3f7ca16
# Initial commit to format the codebase with black
e454428fdf5b3d32f8ffbe9bded3878a80e7b169
# Initial commit to sort import on the codebase
2d69e4fb6daf037cb2f4358fde0c6c96e3f7ca16

20 changes: 10 additions & 10 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Check flake8

on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: TrueBrain/actions-flake8@v2
name: Check flake8
on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: TrueBrain/actions-flake8@v2
38 changes: 19 additions & 19 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Check format

on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install deps
run: pip install -r requirements-dev.txt
- name: Run black
run: black --check opentaxii/ tests/
- name: Run isort
run: isort --check-only opentaxii/ tests/
name: Check format
on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install deps
run: pip install -r requirements-dev.txt
- name: Run black
run: black --check opentaxii/ tests/
- name: Run isort
run: isort --check-only opentaxii/ tests/
10 changes: 5 additions & 5 deletions .github/workflows/interrogate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

interrogate --fail-under=0 --config "$SCRIPT_DIR/../../pyproject.toml" $1 | grep -o "actual: [0-9]*\.[0-9]*%" | grep -o "[0-9]*\.[0-9]*"
#!/usr/bin/env bash
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
interrogate --fail-under=0 --config "$SCRIPT_DIR/../../pyproject.toml" $1 | grep -o "actual: [0-9]*\.[0-9]*%" | grep -o "[0-9]*\.[0-9]*"
54 changes: 27 additions & 27 deletions .github/workflows/interrogate.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Check docstring coverage

on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout head branch
uses: actions/checkout@v4
with:
path: head
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: base
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install interrogate
run: pip install -r head/requirements-interrogate.txt
- name: Run interrogate on base branch for baseline
run: echo "old_cov=$(echo $(head/.github/workflows/interrogate.sh base/opentaxii) - '0.1' | bc)" >> $GITHUB_ENV
- name: Run interrogate on head branch to check coverage didn't drop
run: interrogate --fail-under=${{ env.old_cov }} head/opentaxii
name: Check docstring coverage
on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout head branch
uses: actions/checkout@v4
with:
path: head
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: base
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install interrogate
run: pip install -r head/requirements-interrogate.txt
- name: Run interrogate on base branch for baseline
run: echo "old_cov=$(echo $(head/.github/workflows/interrogate.sh base/opentaxii) - '0.1' | bc)" >> $GITHUB_ENV
- name: Run interrogate on head branch to check coverage didn't drop
run: interrogate --fail-under=${{ env.old_cov }} head/opentaxii
34 changes: 17 additions & 17 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Check mypy

on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install deps
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run mypy
run: mypy
name: Check mypy
on:
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install deps
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run mypy
run: mypy
Loading