Skip to content

Commit

Permalink
New: Support for Python 3.12 added.
Browse files Browse the repository at this point in the history
Change: flake8 removed
  • Loading branch information
petersulyok committed Jan 1, 2024
1 parent 59ffc92 commit 5c98817
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 31 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- coverage: true
os: "ubuntu-latest"
Expand All @@ -32,9 +32,8 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Lint with flake8 and pylint
- name: Lint with pylint
run: |
flake8
pylint src/diskinfo/*.py test/*.py
- name: Test with pytest
run: |
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sphinx:
formats: all

python:
version: 3.7
version: 3.10
install:
- requirements: docs/requirements.txt
- requirements: docs/requirements-docs.txt
- method: pip
path: .
4 changes: 4 additions & 0 deletions docs/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alabaster<=0.7.13
Sphinx<=7.2.6
sphinx-rtd-theme<=2.0.0
sphinx-copybutton<=0.5.2
4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

15 changes: 2 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "diskinfo"
description = "Disk information Python library for Linux"
readme = "README.md"
version = "2.0.0"
version = "2.1.0"
authors = [
{ name = "Peter Sulyok", email = "[email protected]" }
]
Expand All @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Hardware",
Expand All @@ -34,18 +35,6 @@ classifiers = [
pythonpath = "src"
filterwarnings = [ "default", "ignore::pytest.PytestCollectionWarning"]

# flake8 options
[tool.flake8]
exclude = [ "docs", "htmlcov", ".git", "__pycache__", ".pytest_cache", ".vscode", ".idea", "venv*", ".venv*", "build" ]
max-line-length = 120
count = true
show-source = true
statistics = true
per-file-ignores = [
"test_diskinfo.py: F821",
"test_disk.py: F821"
]

# coverage options
[tool.coverage.report]
exclude_lines = [
Expand Down
15 changes: 6 additions & 9 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
build==0.8.0
twine==4.0.1
coverage==6.5.0
pytest==7.1.3
pytest-cov==3.0.0
pylint==2.15.3
flake8==5.0.4
flake8-pyproject

build<=1.0.3
twine<=4.0.2
coverage<=7.4.0
pytest<=7.4.4
pytest-cov<=4.1.0
pylint<=3.0.3

0 comments on commit 5c98817

Please sign in to comment.