Skip to content

Commit

Permalink
Devops: Update the pre-commit hooks
Browse files Browse the repository at this point in the history
The encoding pragme is now actually removed as it was essentially only
useful for code that needed to support Python 2.
  • Loading branch information
sphuber committed Dec 22, 2023
1 parent 91b7ce8 commit 998355b
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/validate_release_tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Validate that the version in the tag label matches the version of the package."""
import argparse
import ast
Expand Down
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
exclude: >-
(?x)^(
Expand Down
1 change: 0 additions & 1 deletion aiida_wien2k/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
"""The official AiiDA plugin for WIEN2k."""
__version__ = '0.1.2'
1 change: 0 additions & 1 deletion aiida_wien2k/calculations/run123_lapw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import io

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion aiida_wien2k/parsers/scf123.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import io

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion aiida_wien2k/workflows/scf123_workchain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from aiida.engine import ToContext, WorkChain
from aiida.orm import AbstractCode, Dict, StructureData
from aiida.plugins.factories import CalculationFactory
Expand Down
1 change: 0 additions & 1 deletion tests/calculations/test_scf123_lapw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Tests for the :mod:`aiida_wien2k.calculations.run123_lapw` module."""
from __future__ import annotations

Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Module with test fixtures."""
from __future__ import annotations

Expand Down
1 change: 0 additions & 1 deletion tests/parsers/test_scf123.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Tests for the :mod:`aiida_wien2k.parsers.scf123` module."""
from aiida_wien2k.calculations.run123_lapw import Wien2kRun123Lapw

Expand Down

0 comments on commit 998355b

Please sign in to comment.