Skip to content

Commit

Permalink
updated ci tools
Browse files Browse the repository at this point in the history
  • Loading branch information
richrobe committed Nov 24, 2023
1 parent 7755453 commit bc80e34
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 1 addition & 2 deletions hpc_helper/_hpc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import subprocess
import sys
import warnings
from collections.abc import Sequence
from pathlib import Path
from typing import Literal, Optional, get_args
from typing import Literal, Optional, Sequence, get_args

from hpc_helper._types import path_t

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ lint = { cmd = "ruff hpc_helper --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff hpc_helper --output-format=github"
_check_format = "ruff format . --check"
ci_check = { sequence = ["_check_format", "_lint_ci"], help = "Check all potential format and linting issues." }
test = {cmd = "pytest --cov=hpc-helper --cov-report=xml", help = "Run Pytest with coverage." }
test = {cmd = "pytest --cov=hpc_helper --cov-report=xml", help = "Run Pytest with coverage." }
update_version = {"script" = "_tasks:task_update_version"}
default = {sequence = ["format", "lint", "test"], help = "Run the default pipeline, consisting of formatting, linting, and testing."}
36 changes: 18 additions & 18 deletions .ruff.toml → ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
line-length = 120
target-version = "py39"
target-version = "py38"

select = [
# pyflakes
Expand Down Expand Up @@ -57,18 +57,12 @@ select = [
"TRY",
# flake8-use-pathlib
"PTH",
"RUF",
# Numpy rules
"NPY",
# Implicit namespace packages
"INP",
# No relative imports
"TID252",
# f-strings over string concatenation
"FLY",
"RUF"
]

ignore = [
# No explicit stacklevel keyword argument found in logging calls
"B028",
# controversial
"B006",
# controversial
Expand All @@ -80,22 +74,25 @@ ignore = [
"EM101",
"EM102",
"EM103",
# Exception strings
"TRY003",
# Multiline docstring summary
"D213",
# Varaibles before return
"RET504",
# Abstract raise into inner function
"TRY301",
# Avoid specifying long messages outside the exception class
"TRY003",
# Use type-checking block
"TCH001",
"TCH002",
"TCH003",
# .pivot_table is preferred to .pivot or .unstack; provides same functionality
"PD010",
# df as varaible name
"PD901",
# melt over stack
"PD013",
# No Any annotations
"ANN401",
# To many arguments
"PLR0913",
# Ignore because of formatting
"ISC001",
"ISC001" # Implicit string concatenation
]


Expand All @@ -105,8 +102,11 @@ exclude = [
"doc/temp/*.py",
".eggs/*.py",
"example_data",
"examples"
]

[pylint]
max-args = 15

[pydocstyle]
convention = "numpy"
Expand Down

0 comments on commit bc80e34

Please sign in to comment.