Skip to content

Commit

Permalink
Add pyproject.toml
Browse files Browse the repository at this point in the history
This adds a pyproject.toml file to store configuration metadata for
Ruff, mypy and tox.
  • Loading branch information
replaceafill authored Aug 18, 2024
1 parent 2f2b714 commit 68ae5dc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 39 deletions.
6 changes: 1 addition & 5 deletions amuser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
import os
import re
import shutil

try:
from urllib import parse
except ImportError: # above is available in py3+, below is py2.7
import urlparse as parse
from urllib import parse

from . import constants as c
from . import urls
Expand Down
3 changes: 0 additions & 3 deletions mypy.ini

This file was deleted.

39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[tool.ruff.lint]
# Rule reference: https://docs.astral.sh/ruff/rules/
select = [
"B",
"C4",
"E",
"F",
"I",
"UP",
"W",
]
ignore = [
"B904",
"E501",
"F811",
"UP031",
]

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

[[tool.mypy.overrides]]
module = ["features.steps.*"]
disable_error_code = "no-redef"

[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True
envlist = linting
[testenv]
skip_install = True
[testenv:linting]
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
"""
20 changes: 0 additions & 20 deletions ruff.toml

This file was deleted.

11 changes: 0 additions & 11 deletions tox.ini

This file was deleted.

0 comments on commit 68ae5dc

Please sign in to comment.