Skip to content

Commit

Permalink
Further prune hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Feb 6, 2024
1 parent 77ed486 commit 6aae7ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
default-image:
- '' # use the application default
- aiidalab/aiidalab-docker-stack:latest # This is the old stack
- '' # use the application default
- aiidalab/aiidalab-docker-stack:latest # This is the old stack

steps:

Expand Down
27 changes: 6 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,11 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt

- repo: https://github.com/mgedmin/check-manifest
rev: '0.49'
hooks:
- id: check-manifest

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
Expand All @@ -30,6 +20,11 @@ repos:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
Expand All @@ -39,13 +34,3 @@ repos:
- types-requests
- types-tabulate
- types-toml

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-workflows
31 changes: 15 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
# TODO: Move entire setup.cfg to pyproject.toml
#

[build-system]
build-backend = "setuptools.build_meta"
# Version 64.0.0 is needed for editable installs without setup.py file
# https://setuptools.pypa.io/en/latest/references/keywords.html
requires = [
"setuptools>=64.0.0",
"wheel"
"setuptools>=64.0.0",
"wheel"
]
build-backend = "setuptools.build_meta"


[tool.ruff]
line-length = 88
target-version = "py38"
show-fixes = true
target-version = "py38"

[tool.ruff.lint]
# TODO: Fixup all instances of B904 and enable this rule
ignore = ["E501", "B904"]
select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflake
"I", # isort
"PLE", # pylint error rules
"PLW", # pylint warning rules
"PLC", # pylint convention rules
"RUF", # ruff-specific rules
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflake
"I", # isort
"PLE", # pylint error rules
"PLW", # pylint warning rules
"PLC", # pylint convention rules
"RUF", # ruff-specific rules
"UP" # pyupgrade
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 6aae7ad

Please sign in to comment.