Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #144

Merged
merged 3 commits into from
Feb 21, 2024
Merged
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand All @@ -19,6 +19,6 @@ repos:
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
1 change: 1 addition & 0 deletions hera_opm/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Init file for data directory."""

DATA_PATH = __path__[0]
1 change: 1 addition & 0 deletions hera_opm/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Init file for tests."""

import os

BAD_CONFIG_PATH = os.path.join(__path__[0], "bad_configs")
1 change: 1 addition & 0 deletions hera_opm/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for utils.py"""

import pytest
import hera_opm.utils as utils

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for installing hera_opm."""

import os
from glob import glob

Expand All @@ -22,7 +23,7 @@ def package_files(package_dir, subdirectory):
"""
paths = []
directory = os.path.join(package_dir, subdirectory)
for (path, directories, filenames) in os.walk(directory):
for path, directories, filenames in os.walk(directory):
for filename in filenames:
path = path.replace(package_dir + "/", "")
paths.append(os.path.join(path, filename))
Expand Down
Loading