Skip to content

Commit 540cb1a

Browse files
authored
#6 update directory layout (#8)
1 parent 1db3b52 commit 540cb1a

File tree

8 files changed

+102
-9
lines changed

8 files changed

+102
-9
lines changed

.github/workflows/pylint.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,30 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
1920

20-
- name: set up Python ${{ matrix.python-version }}
21+
- name: Set up Python ${{ matrix.python-version }}
2122
uses: actions/setup-python@v5
2223
with:
2324
python-version: ${{ matrix.python-version }}
2425

25-
- name: install dependencies
26+
- name: Install dependencies
2627
run: |
28+
python -m venv ./venv
29+
source ./venv/bin/activate
30+
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
2731
python -m pip install --upgrade pip
28-
pip install pylint
32+
python -m pip install --requirement development-requirements.txt
33+
python -m pip install --requirement requirements.txt
2934
30-
- name: analysing the code with pylint
35+
- name: Analysing the code with pylint
3136
run: |
3237
# shellcheck disable=SC2046
33-
pylint $(git ls-files '*.py')
38+
pylint $(git ls-files '*.py' ':!:docs/source/*')
3439
3540
slack-notification:
3641
needs: [pylint]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
*.code-workspace
77
.history
88

9+
.mypy_cache

.vscode/cspell.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,38 @@
1515
"HUANGPU",
1616
"ICLA",
1717
"Imabari",
18+
"isort",
1819
"Kaiji",
20+
"kwargs",
1921
"MARU",
2022
"mcorpm",
2123
"Mipo",
2224
"mmsi",
2325
"Moller",
24-
"Moller",
2526
"mypy",
2627
"Newbuilding",
2728
"NINGBO",
2829
"nomino",
2930
"pylint",
31+
"pytest",
3032
"SANYO",
3133
"Senzing",
34+
"setuptools",
3235
"shellcheck",
3336
"stackoverflow",
3437
"subrecord",
3538
"Sulzer",
3639
"tpcmi",
40+
"venv",
3741
"WAIGAOQIAO",
3842
"Wartsila",
3943
"WENCHONG",
4044
"XINLE"
4145
],
4246
"ignorePaths": [
4347
".git/**",
44-
".mypy_cache/**"
48+
".mypy_cache/**",
49+
"development-requirements.txt",
50+
"documentation-requirements.txt"
4551
]
4652
}

development-requirements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bandit==1.8.5
2+
black==25.1.0
3+
build==1.2.2.post1
4+
coverage==7.9.2
5+
cryptography==45.0.4
6+
flake8==7.2.0
7+
fpvs==0.3.0
8+
isort==6.0.1
9+
mypy==1.16.1
10+
psutil==7.0.0
11+
pylint-per-file-ignores==1.4.0
12+
pylint==3.3.7
13+
pytest-cov==6.2.1
14+
pytest-schema==0.1.2
15+
pytest==8.4.1
16+
twine==6.1.0
17+
virtualenv==20.31.2
18+
wheel==0.46.1

documentation-requirements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
autodocsumm==0.2.14
2+
myst_parser==4.0.1
3+
sphinx
4+
sphinx-autodoc-typehints==3.1.0
5+
sphinx-gallery==0.19.0
6+
sphinx-jinja2-compat==0.3.0
7+
sphinx-prompt==1.9.0
8+
sphinx-rtd-theme==3.0.2
9+
sphinx-tabs==3.4.7
10+
sphinx-toolbox==4.0.0
11+
sphinxcontrib-applehelp==2.0.0
12+
sphinxcontrib-devhelp==2.0.0
13+
sphinxcontrib-htmlhelp==2.1.0
14+
sphinxcontrib-jquery==4.1
15+
sphinxcontrib-jsmath==1.0.1
16+
sphinxcontrib-qthelp==2.0.0
17+
sphinxcontrib-serializinghtml==2.0.0
18+
sphinxext-remoteliteralinclude==0.6.0

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[dependency-groups]
9+
test = ["pytest", "coverage"]
10+
11+
[tool.bandit]
12+
skips = ["B101"]
13+
14+
[tool.black]
15+
line-length = 120
16+
17+
[tool.flake8]
18+
extend-ignore = ["E203", "E704"]
19+
max-line-length = 120
20+
21+
[tool.isort]
22+
profile = "black"
23+
src_paths = ["examples", "src", "tests"]
24+
25+
[tool.pylint]
26+
ignored-argument-names = "args|kwargs"
27+
disable = [
28+
"consider-using-with",
29+
"invalid-name",
30+
"line-too-long",
31+
"too-many-branches",
32+
"too-many-lines",
33+
"too-many-statements",
34+
"unspecified-encoding",
35+
]
36+
good-names = [
37+
"mapper-equifax"
38+
]
39+
ignore = [
40+
"__init__.py",
41+
"docs/source/conf.py"
42+
]
43+
notes = [
44+
"FIXME"
45+
]

requirements.txt

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)