Skip to content

Commit

Permalink
configure ruff strict
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 24, 2023
1 parent e3e4809 commit cd0da84
Showing 1 changed file with 84 additions and 12 deletions.
96 changes: 84 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: GIS",
Expand All @@ -44,8 +45,16 @@ requires-python = ">=3.7"
text = "LGPL"

[project.optional-dependencies]
testing = [
dev = [
"pre-commit",
]
lint = [
"black",
"ruff",
]
tests = [
"pytest",
"pytest-cov",
]

[project.readme]
Expand All @@ -55,14 +64,6 @@ file = "README.rst"
[project.urls]
Homepage = "https://github.com/cleder/pygeoif/"

[tool.check-manifest]
ignore = [
".*",
"mutmut_config.py",
"test-requirements.txt",
"tox.ini",
]

[tool.flake8]
max_line_length = 88

Expand Down Expand Up @@ -107,10 +108,81 @@ include = [
reportMissingImports = true
reportMissingTypeStubs = true

[tool.ruff.per-file-ignores]
"setup.py" = [
"E501",
[tool.ruff]
fix = true
ignore = [
"ANN101",
"ANN102",
"D203",
"D212",
"FA100",
]
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"COM",
"CPY",
"D",
"DJ",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FIX",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"LOG",
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
target-version = "py37"

[tool.ruff.isort]
force-single-line = true

[tool.ruff.per-file-ignores]
"tests/*.py" = [
"D103",
]
Expand Down

0 comments on commit cd0da84

Please sign in to comment.