Skip to content

Commit

Permalink
Resolving config issues and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
laszukdawid committed Mar 16, 2024
1 parent cf7b727 commit ee52ab3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ jobs:
- uses: actions/checkout@v4
- uses: psf/black@stable
- uses: isort/isort-action@v1
with:
sort-paths: PyEMD
7 changes: 6 additions & 1 deletion .github/workflows/ci-pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
python -m black --check PyEMD doc
1 change: 1 addition & 0 deletions PyEMD/checks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Calculate the statistical Significance of IMFs."""

import logging
import math

Expand Down
1 change: 1 addition & 0 deletions PyEMD/tests/test_checks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for checks.py."""

import unittest

import numpy as np
Expand Down
18 changes: 9 additions & 9 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -142,15 +142,15 @@
# (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"),
]


# -- Options for manual page output ---------------------------------------

# 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 -------------------------------------------
Expand All @@ -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"),
]


Expand Down

0 comments on commit ee52ab3

Please sign in to comment.