Skip to content

Commit 2708978

Browse files
style: add linting and type-checking
1 parent 2b8397d commit 2708978

File tree

5 files changed

+64
-4
lines changed

5 files changed

+64
-4
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
# oc4ids-datastore-pipeline
1+
# OC4IDS Datastore Pipeline
2+
3+
## Run linting
4+
5+
```
6+
black oc4ids_datastore_pipeline/
7+
isort oc4ids_datastore_pipeline/
8+
flake8 oc4ids_datastore_pipeline/
9+
mypy oc4ids_datastore_pipeline/
10+
```

oc4ids_datastore_pipeline/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import time
33

4-
54
logging.basicConfig(
65
level=logging.INFO,
76
format="%(asctime)s:%(levelname)s:%(name)s:%(message)s",

oc4ids_datastore_pipeline/pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
22

3-
43
logger = logging.getLogger(__name__)
54

65

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,22 @@ readme = "README.md"
1010
dependencies = []
1111

1212
[project.optional-dependencies]
13-
dev = []
13+
dev = [
14+
"black",
15+
"isort",
16+
"flake8",
17+
"Flake8-pyproject",
18+
"mypy",
19+
]
1420

1521
[project.scripts]
1622
oc4ids-datastore-pipeline = "oc4ids_datastore_pipeline.pipeline:run"
23+
24+
[tool.isort]
25+
profile = "black"
26+
27+
[tool.flake8]
28+
max-line-length = 88
29+
30+
[tool.mypy]
31+
strict = true

requirements_dev.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --extra=dev --output-file=requirements_dev.txt pyproject.toml
6+
#
7+
black==25.1.0
8+
# via oc4ids-datastore-pipeline (pyproject.toml)
9+
click==8.1.8
10+
# via black
11+
flake8==7.1.1
12+
# via
13+
# flake8-pyproject
14+
# oc4ids-datastore-pipeline (pyproject.toml)
15+
flake8-pyproject==1.2.3
16+
# via oc4ids-datastore-pipeline (pyproject.toml)
17+
isort==6.0.0
18+
# via oc4ids-datastore-pipeline (pyproject.toml)
19+
mccabe==0.7.0
20+
# via flake8
21+
mypy==1.14.1
22+
# via oc4ids-datastore-pipeline (pyproject.toml)
23+
mypy-extensions==1.0.0
24+
# via
25+
# black
26+
# mypy
27+
packaging==24.2
28+
# via black
29+
pathspec==0.12.1
30+
# via black
31+
platformdirs==4.3.6
32+
# via black
33+
pycodestyle==2.12.1
34+
# via flake8
35+
pyflakes==3.2.0
36+
# via flake8
37+
typing-extensions==4.12.2
38+
# via mypy

0 commit comments

Comments
 (0)