Skip to content

Commit 052760f

Browse files
committed
Lint
1 parent 222c35f commit 052760f

14 files changed

+704
-413
lines changed

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v3.15.0
4+
hooks:
5+
- id: pyupgrade
6+
args: ["--py39-plus"]
7+
- repo: https://github.com/psf/black
8+
rev: 23.1.0
9+
hooks:
10+
- id: black
11+
- repo: https://github.com/pre-commit/pre-commit-hooks
12+
rev: v4.5.0
13+
hooks:
14+
- id: check-ast
15+
- id: trailing-whitespace
16+
- id: end-of-file-fixer
17+
- id: mixed-line-ending
18+
- repo: https://github.com/pycqa/flake8
19+
rev: 6.1.0
20+
hooks:
21+
- id: flake8
22+
additional_dependencies:
23+
- flake8-bugbear
24+
- flake8-comprehensions
25+
- pep8-naming
26+
- flake8-black

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1212

1313
You should have received a copy of the GNU General Public License
14-
along with this program. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
14+
along with this program. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.

pySNOM/__init__.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
from .spectra import NeaSpectrum
1010
from .interferograms import NeaInterferogram
1111

12-
__version__ = '0.1.0'
13-
__author__ = 'Gergely Németh, Ferenc Borondics'
14-
__credits__ = 'Wigner Research Centre for Physics, Synchrotron SOLEIL'
15-
__all__ = ["defaults","Reader","Image","Transformation","NeaSpectrum","NeaInterferogram"]
12+
__version__ = "0.1.0"
13+
__author__ = "Gergely Németh, Ferenc Borondics"
14+
__credits__ = "Wigner Research Centre for Physics, Synchrotron SOLEIL"
15+
__all__ = [
16+
"defaults",
17+
"Reader",
18+
"Image",
19+
"Transformation",
20+
"NeaSpectrum",
21+
"NeaInterferogram",
22+
]

pySNOM/defaults.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
""" This file contains a dictionary of definitions to create connection
1+
""" This file contains a dictionary of definitions to create connection
22
between the manufacturer nomeclature and the naming used in the package """
33

4+
45
class Defaults:
5-
# Neaspec names are taken from the Scan field of the info txt file
6+
# Neaspec names are taken from the Scan field of the info txt file
67
def __init__(self) -> None:
78
self.image_mode_defs = {
89
"AFM": "AFM",
@@ -18,4 +19,5 @@ def __init__(self) -> None:
1819
"Pointspectroscopy PTE+": "PTE",
1920
}
2021

21-
defaults = Defaults()
22+
23+
defaults = Defaults()

0 commit comments

Comments
 (0)