Skip to content

Commit

Permalink
Add python3.12 and prepare for more linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mdujava committed Jan 6, 2025
1 parent 5ad7b28 commit 84ef980
Show file tree
Hide file tree
Showing 5 changed files with 1,357 additions and 858 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
Expand Down
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ update: setup_poetry
poetry update

clean:
poetry env remove --all
poetry env remove --all
rm -rf .mk_poetry* dist

check: setup_poetry
check: setup_poetry flake8 pylint

flake8: setup_poetry
poetry run flake8 osia --max-line-length 100 --show-source --statistics
poetry run pylint osia

pylint mypy: setup_poetry
poetry run $@ osia

black-check: setup_poetry
poetry run black --check osia

dist: setup_poetry
poetry build
Expand Down
2,171 changes: 1,327 additions & 844 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ disable=raw-checker-failed,
missing-timeout,
unnecessary-dunder-call,
use-dict-literal,
too-many-positional-arguments,
broad-exception-raised #TODO fix this in next release

# Enable the message, report, category or checker with the given id(s). You can
Expand Down
28 changes: 18 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,42 @@ classifiers = [
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]


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

[tool.poetry.dependencies]
python = "^3.8"
openstacksdk = "*"
beautifulsoup4 = "*"
boto3 = "*"
jinja2 = "*"
coloredlogs = "*"
dynaconf = {extras = ["yaml"], version = "*"}
gitpython = "*"
beautifulsoup4 = "*"
coloredlogs = "*"
urllib3 = "<2" # add temporarily to enable dependency resolution in real time
jinja2 = "*"
openstacksdk = "*"
python = "^3.10"
semantic-version = "^2.10.0"
urllib3 = "*"

[tool.poetry.dev-dependencies]
boto3-stubs = "^1.35.39"
flake8 = "*"
ipython = "*"
mypy = "^1.11.2"
pylint = "*"
sphinx = "*"
recommonmark = "*"
sphinx-rtd-theme = "*"
sphinx = "*"
sphinx-argparse = "*"
sphinx-rtd-theme = "*"
types-PyYAML = "*"
types-beautifulsoup4 = "*"
types-html5lib = "*"
types-requests = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 84ef980

Please sign in to comment.