Skip to content

Commit

Permalink
Merge branch 'release/0.3.46' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Feb 14, 2024
2 parents 5888161 + 77e27d1 commit 7d0e920
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -36,9 +36,9 @@ jobs:
sudo apt-get -y update
sudo apt-get install libcups2-dev wamerican
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -48,7 +48,7 @@ jobs:
echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Expand Up @@ -3,32 +3,32 @@ exclude: tests/etc/user-*

repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.7
hooks:
- id: bandit
args:
- "-x *test*.py"

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.2.0
hooks:
- id: black
language_version: python3.11

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
args:
- "--config=setup.cfg"

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: requirements-txt-fixer
files: requirements/.*\.txt$
Expand All @@ -42,7 +42,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
rev: v1.34.0
hooks:
- id: yamllint
args:
Expand Down
1 change: 0 additions & 1 deletion edc_export/archive_exporter.py
Expand Up @@ -25,7 +25,6 @@ class ArchiveExporterEmailError(Exception):


class ArchiveExporter:

"""Exports a list of models to individual CSV files and
adds each to a single zip archive OR emails each.
Expand Down
Expand Up @@ -7,7 +7,6 @@


class ExportTrackingFieldsModelMixin(models.Model):

"""Adds these fields to the Concrete model."""

exported = models.BooleanField(
Expand Down
1 change: 0 additions & 1 deletion edc_export/model_options.py
Expand Up @@ -3,7 +3,6 @@


class ModelOptions(dict):

"""A serializable object of a selection of model attrs."""

def __init__(self, model: str = None):
Expand Down
16 changes: 11 additions & 5 deletions edc_export/system_checks.py
Expand Up @@ -5,21 +5,27 @@
from edc_export.utils import get_export_folder, get_upload_folder


def export_dir_checks(app_configs, **kwargs) -> list[CheckMessage]:
def edc_export_checks(app_configs, **kwargs) -> list[CheckMessage]:
errors = []
if not os.path.exists(get_export_folder()):
errors.append(
Warning(
f"Folder does not exist. Tried {get_export_folder()}. See edc_export.",
id="settings.EDC_EXPORT_EXPORT_FOLDER",
(
f"Folder does not exist. Tried {get_export_folder()}. "
"See settings.EDC_EXPORT_EXPORT_FOLDER."
),
id="edc_export.W001",
)
)

if not os.path.exists(get_upload_folder()):
errors.append(
Warning(
f"Folder does not exist. Tried {get_upload_folder()}. See edc_export.",
id="settings.EDC_EXPORT_UPLOAD_FOLDER",
(
f"Folder does not exist. Tried {get_upload_folder()}. "
"See settings.EDC_EXPORT_UPLOAD_FOLDER."
),
id="edc_export.W002",
)
)

Expand Down

0 comments on commit 7d0e920

Please sign in to comment.