diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 10fdfff..e1cac55 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -9,3 +9,5 @@ jobs: - uses: actions/checkout@v4 - uses: psf/black@stable - uses: isort/isort-action@v1 + with: + sort-paths: PyEMD diff --git a/.github/workflows/ci-pr-test.yml b/.github/workflows/ci-pr-test.yml index 3f8d74f..455bf6a 100644 --- a/.github/workflows/ci-pr-test.yml +++ b/.github/workflows/ci-pr-test.yml @@ -15,7 +15,12 @@ jobs: strategy: matrix: - python-version: [3.8, 3.9, 3.10, 3.11, 3.12] + python-version: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 diff --git a/Makefile b/Makefile index 2169760..d41b949 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ doc: cd doc && make html format: - black PyEMD + python -m black PyEMD doc lint-check: python -m isort --check PyEMD - python -m black --check PyEMD \ No newline at end of file + python -m black --check PyEMD doc \ No newline at end of file diff --git a/PyEMD/checks.py b/PyEMD/checks.py index 80d14a1..8818d11 100644 --- a/PyEMD/checks.py +++ b/PyEMD/checks.py @@ -1,4 +1,5 @@ """Calculate the statistical Significance of IMFs.""" + import logging import math diff --git a/PyEMD/tests/test_checks.py b/PyEMD/tests/test_checks.py index 7945e35..874f359 100644 --- a/PyEMD/tests/test_checks.py +++ b/PyEMD/tests/test_checks.py @@ -1,4 +1,5 @@ """Tests for checks.py.""" + import unittest import numpy as np diff --git a/doc/conf.py b/doc/conf.py index 6d91db0..183b63e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -65,25 +65,25 @@ master_doc = "index" # General information about the project. -project = u"PyEMD" -copyright = u"2016-{year}, Dawid Laszuk".format(year=datetime.datetime.now().year) -author = u"Dawid Laszuk" +project = "PyEMD" +copyright = "2016-{year}, Dawid Laszuk".format(year=datetime.datetime.now().year) +author = "Dawid Laszuk" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u"0.4.0" +version = "0.4.0" # The full version, including alpha/beta/rc tags. -release = u"0.4.0" +release = "0.4.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = 'en' +language = "en" # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. @@ -142,7 +142,7 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, "PyEMD.tex", u"PyEMD Documentation", u"Dawid Laszuk", "manual"), + (master_doc, "PyEMD.tex", "PyEMD Documentation", "Dawid Laszuk", "manual"), ] @@ -150,7 +150,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [(master_doc, "PyEMD", u"PyEMD Documentation", [author], 1)] +man_pages = [(master_doc, "PyEMD", "PyEMD Documentation", [author], 1)] # -- Options for Texinfo output ------------------------------------------- @@ -159,7 +159,7 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, "PyEMD", u"PyEMD Documentation", author, "PyEMD", "One line description of project.", "Miscellaneous"), + (master_doc, "PyEMD", "PyEMD Documentation", author, "PyEMD", "One line description of project.", "Miscellaneous"), ]