-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move to ruff only * reformatted code * reformatted code * reformatted code
- Loading branch information
Showing
12 changed files
with
149 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.11 | ||
rev: v0.6.7 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: | ||
- --fix | ||
- repo: https://github.com/psf/black | ||
rev: 23.12.1 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"""INGV Centro Nazionale Terremoti (Earthquakes) library.""" | ||
|
||
from .feed import IngvCentroNazionaleTerremotiFeed # noqa: F401 | ||
from .feed_manager import IngvCentroNazionaleTerremotiFeedManager # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""Define a version constant.""" | ||
|
||
__version__ = "0.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
"""Setup of georss_ingv_centro_nazionale_terremoti_client library.""" | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
|
||
from georss_ingv_centro_nazionale_terremoti_client.__version__ import __version__ | ||
|
||
NAME = "georss_ingv_centro_nazionale_terremoti_client" | ||
AUTHOR = "Malte Franken" | ||
AUTHOR_EMAIL = "[email protected]" | ||
|
@@ -19,14 +20,9 @@ | |
with open("README.md") as fh: | ||
long_description = fh.read() | ||
|
||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
VERSION = {} | ||
with open(os.path.join(HERE, NAME, "__version__.py")) as f: | ||
exec(f.read(), VERSION) # pylint: disable=exec-used | ||
|
||
setup( | ||
name=NAME, | ||
version=VERSION["__version__"], | ||
version=__version__, | ||
author=AUTHOR, | ||
author_email=AUTHOR_EMAIL, | ||
description=DESCRIPTION, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests for georss-ingv-centro-nazionale-terremoti-client library.""" | ||
|
||
import os | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters