Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Schou Oxvig <5367057+Chroxvi@users.noreply.github.com>
  • Loading branch information
akx and Chroxvi committed Sep 6, 2024
1 parent 1ece8a8 commit 769eed3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.x"
- uses: pre-commit/action@v3.0.1
run-full-test-suite:
name: Run full test suite
Expand Down
3 changes: 2 additions & 1 deletion cotainr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
class CotainrSubcommand(ABC):
"""Abstract base class for `CotainrCLI` subcommands."""

@classmethod # noqa: B027
@classmethod
@abstractmethod
def add_arguments(cls, *, parser):
"""
Add command line arguments to arguments `parser`.
Expand Down
15 changes: 8 additions & 7 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ target-version = "py38"
line-length = 88

[lint]
extend-select = [
"B",
"E",
"F",
"W",
select = [
"B", # flake8-bugbear
"E", # pycodestyle errors
"F", # Pyflakes
"W", # pycodestyle warnings
]
ignore = [
"E501", # ignore line length; auto-formatting will take care of what it can.
Expand All @@ -20,15 +20,16 @@ exclude = [
# The non-standard way to import py.test fixtures in
# tests means we will need to ignore "imported but not used"
# as well as argument shadowing tests in test modules.
# It would be better to use standard `conftest` style fixture
# discovery.
"F401",
"F811",
]
"cotainr/tests/**.py" = [
"S101", # assertions are OK in tests
]

[lint.pydocstyle]
convention = "numpy"

[format]
exclude = [
"examples/**/*.ipynb",
Expand Down

0 comments on commit 769eed3

Please sign in to comment.