Skip to content

Commit

Permalink
refactor settings for tools, to include them all in the pyproject.tom…
Browse files Browse the repository at this point in the history
…l instead of having 3 separate files
  • Loading branch information
Totto16 committed Aug 11, 2023
1 parent 5cab6d9 commit a6a4018
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
27 changes: 20 additions & 7 deletions ruff.toml → pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

[tool.pytest.ini_options]
enable_assertion_pass_hook = true
pythonpath = "src"
testpaths = ["tests"]

[tool.ruff]
select = [
"A",
"ANN",
Expand Down Expand Up @@ -65,11 +72,17 @@ line-length = 100
# Target Python version is 3.11.
target-version = "py311"

[per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files
"__init__.py" = ["E402"]
per-file-ignores = { "__init__.py" = [ # Ignore `E402` (import violations) in all `__init__.py` files
"E402",
], "classifier.py" = [ # ignore "INP001" (implicit namespace package) for all files in src/
"INP001",
], "entry.py" = [
"INP001",
], "main.py" = [
"INP001",
] }


# ignore "INP001" (implicit namespace package) for all files in src/
"classifier.py" = ["INP001"]
"entry.py" = ["INP001"]
"main.py" = ["INP001"]
[tool.coverage.run]
relative_files = true
source = ["tests/"]
5 changes: 0 additions & 5 deletions pytest.ini

This file was deleted.

0 comments on commit a6a4018

Please sign in to comment.