Skip to content

Commit

Permalink
Merge pull request #1037 from ocefpaf/update_precommit_and_fix
Browse files Browse the repository at this point in the history
Update precommit and fix
  • Loading branch information
ocefpaf authored Aug 1, 2023
2 parents 1f4532f + 6370ff6 commit e456821
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ repos:
language_version: python3

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
rev: v3.0.0
hooks:
- id: add-trailing-comma


- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.270
rev: v0.0.277
hooks:
- id: ruff

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.11.2
rev: 0.13.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.5
hooks:
- id: codespell
args:
Expand Down
2 changes: 0 additions & 2 deletions compliance_checker/cf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"xlon",
"XLON",
"lonx",
"lonx",
"lon_u",
"LON_U",
"lon_v",
Expand All @@ -97,7 +96,6 @@
"ylat",
"YLAT",
"laty",
"laty",
"lat_u",
"LAT_U",
"lat_v",
Expand Down
1 change: 0 additions & 1 deletion compliance_checker/tests/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def test_skip_check_level(self):
"§3.5 flag_meanings for lat",
"§3.5 flag_meanings for lon",
"§3.5 lat is a valid flags variable",
"§3.5 lat is a valid flags variable",
"§3.5 lon is a valid flags variable",
}

Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ requires = [
"wheel",
]

[tool.pytest.ini_options]
markers = [
"integration: marks integration tests (deselect with '-m \"not integration\"')",
"slowtest: marks slow tests (deselect with '-m \"not slowtest\"')"
]

[tool.ruff]
select = [
"A", # flake8-builtins
Expand Down Expand Up @@ -40,3 +34,10 @@ ignore = [
"A001",
]
"compliance_checker/cfutil.py" = ["B028"]
"compliance_checker/cf/appendix_f.py" = ["B033"] # ignore duplicates items in the set

[tool.pytest.ini_options]
markers = [
"integration: marks integration tests (deselect with '-m \"not integration\"')",
"slowtest: marks slow tests (deselect with '-m \"not slowtest\"')"
]

0 comments on commit e456821

Please sign in to comment.