Skip to content

Commit

Permalink
Update Prospector config, fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 7, 2025
1 parent 912baa5 commit e3899c3
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 39 deletions.
34 changes: 6 additions & 28 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
inherits:
- utils:base
- utils:no-design-checks
- utils:fix
- utils:unsafe
- duplicated
strictness: veryhigh
max-line-length: 110
doc-warnings: true

pylint:
disable:
- too-many-arguments
- too-many-statements

pycodestyle:
disable:
- E501 # line too long
- E722 # do not use bare 'except'

pydocstyle:
disable:
- D102 # Missing docstring in public method
- D104 # Missing docstring in public package
- D212 # Multi-line docstring summary should start at the first line
- D202 # No blank lines allowed after function docstring

mypy:
run: true

options:
python-version: '3.13'
pyroma:
run: true
python-version: '3.10'

mccabe:
run: false
ruff:
options:
target-version: py313
target-version: py310
125 changes: 121 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[tool.ruff]
target-version = "py310"
line-length = 110

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.pytest.ini_options]
pytest_plugins = ["pytest_profiling"]

Expand All @@ -17,6 +24,9 @@ classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Typing :: Typed',
]
Expand All @@ -26,7 +36,7 @@ packages = [{ include = "deskew" }, { include = "deskew/py.typed" }]
deskew = "deskew.cli:main"

[tool.poetry.dependencies]
python = ">=3.13,<3.14"
python = ">=3.10,<3.14"
numpy = "2.2.1"
scikit-image = "0.25.0"
opencv-python-headless = { version = "4.10.0.84", optional = true }
Expand All @@ -42,12 +52,6 @@ pytest-profiling = "1.8.1"
coverage = "7.6.10"
prospector-profile-duplicated = "1.10.0"


[tool.ruff]
target-version = "py313"

[tool.ruff.lint.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning", "poetry-plugin-tweak-dependencies-version", "poetry-plugin-drop-python-upper-constraint"]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit e3899c3

Please sign in to comment.