Skip to content

Commit 442a6c1

Browse files
authored
Merge pull request #86 from mdujava/linters
Add python3.12 and prepare for more linters
2 parents 5ad7b28 + 84ef980 commit 442a6c1

File tree

5 files changed

+1357
-858
lines changed

5 files changed

+1357
-858
lines changed

Diff for: .github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.8', '3.9', '3.10', '3.11']
14+
python-version: ['3.10', '3.11', '3.12', '3.13']
1515

1616
steps:
1717
- uses: actions/checkout@v2

Diff for: Makefile

+10-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ update: setup_poetry
1414
poetry update
1515

1616
clean:
17-
poetry env remove --all
17+
poetry env remove --all
1818
rm -rf .mk_poetry* dist
1919

20-
check: setup_poetry
20+
check: setup_poetry flake8 pylint
21+
22+
flake8: setup_poetry
2123
poetry run flake8 osia --max-line-length 100 --show-source --statistics
22-
poetry run pylint osia
24+
25+
pylint mypy: setup_poetry
26+
poetry run $@ osia
27+
28+
black-check: setup_poetry
29+
poetry run black --check osia
2330

2431
dist: setup_poetry
2532
poetry build

Diff for: poetry.lock

+1,327-844
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ disable=raw-checker-failed,
7474
missing-timeout,
7575
unnecessary-dunder-call,
7676
use-dict-literal,
77+
too-many-positional-arguments,
7778
broad-exception-raised #TODO fix this in next release
7879

7980
# Enable the message, report, category or checker with the given id(s). You can

Diff for: pyproject.toml

+18-10
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,42 @@ classifiers = [
1212
"Topic :: Software Development :: Build Tools",
1313
"License :: OSI Approved :: Apache Software License",
1414
"Programming Language :: Python :: 3",
15-
"Programming Language :: Python :: 3.8",
16-
"Programming Language :: Python :: 3.9"
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13"
1719
]
1820

1921

2022
[tool.poetry.scripts]
2123
osia = 'osia.cli:main_cli'
2224

2325
[tool.poetry.dependencies]
24-
python = "^3.8"
25-
openstacksdk = "*"
26+
beautifulsoup4 = "*"
2627
boto3 = "*"
27-
jinja2 = "*"
28+
coloredlogs = "*"
2829
dynaconf = {extras = ["yaml"], version = "*"}
2930
gitpython = "*"
30-
beautifulsoup4 = "*"
31-
coloredlogs = "*"
32-
urllib3 = "<2" # add temporarily to enable dependency resolution in real time
31+
jinja2 = "*"
32+
openstacksdk = "*"
33+
python = "^3.10"
3334
semantic-version = "^2.10.0"
35+
urllib3 = "*"
3436

3537
[tool.poetry.dev-dependencies]
38+
boto3-stubs = "^1.35.39"
3639
flake8 = "*"
3740
ipython = "*"
41+
mypy = "^1.11.2"
3842
pylint = "*"
39-
sphinx = "*"
4043
recommonmark = "*"
41-
sphinx-rtd-theme = "*"
44+
sphinx = "*"
4245
sphinx-argparse = "*"
46+
sphinx-rtd-theme = "*"
47+
types-PyYAML = "*"
48+
types-beautifulsoup4 = "*"
49+
types-html5lib = "*"
50+
types-requests = "*"
4351

4452
[build-system]
4553
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)