Skip to content

Commit 543f03d

Browse files
committed
remove setup.cfg file
1 parent 80e7141 commit 543f03d

File tree

4 files changed

+48
-64
lines changed

4 files changed

+48
-64
lines changed

noxfile.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,7 @@ def test_python_style(session: Session) -> None:
209209
"""Check that Python style guidelines are being followed"""
210210
install_requirements_file(session, "check-style")
211211
session.run("flake8", "src/idom", "tests", "docs")
212-
black_default_exclude = r"\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist"
213-
session.run(
214-
"black",
215-
".",
216-
"--check",
217-
"--exclude",
218-
rf"/({black_default_exclude}|venv|node_modules)/",
219-
)
212+
session.run("black", ".", "--check")
220213
session.run("isort", ".", "--check-only")
221214

222215

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,48 @@ ensure_newline_before_comments = "True"
1010
include_trailing_comma = "True"
1111
line_length = 88
1212
lines_after_imports = 2
13+
14+
[tool.mypy]
15+
ignore_missing_imports = true
16+
warn_unused_configs = true
17+
warn_redundant_casts = true
18+
warn_unused_ignores = true
19+
20+
[tool.pytest]
21+
testpaths = "tests"
22+
xfail_strict = true
23+
markers = [
24+
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
25+
]
26+
python_files = "*asserts.py test_*.py"
27+
asyncio_mode = "auto"
28+
29+
[tool.coverage.report]
30+
fail_under = 100
31+
show_missing = true
32+
skip_covered = true
33+
sort = "Name"
34+
exclude_lines = [
35+
"pragma: no cover",
36+
'\.\.\.',
37+
"raise NotImplementedError",
38+
]
39+
40+
[tool.pydocstyle]
41+
inherit = false
42+
match = '.*\.py'
43+
convention = "google"
44+
add_ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D107", "D412", "D415"]
45+
46+
[tool.flake8]
47+
ignore = ["E203", "E266", "E501", "W503", "F811", "N802", "N806"]
48+
per-file-ignores = [
49+
# sometimes this is required in order to hide setup for an example
50+
"docs/*/_examples/*.py:E402",
51+
]
52+
max-line-length = 88
53+
max-complexity = 18
54+
select = ["B", "C", "E", "F", "W", "T4", "B9", "N", "ROH"]
55+
exclude = ["**/node_modules/*", ".eggs/*", ".tox/*"]
56+
# -- flake8-tidy-imports --
57+
ban-relative-imports = "parents"

requirements/check-style.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
black
1+
black[jupyter]
22
flake8
3+
flake8-pyproject
34
flake8-idom-hooks >=0.5.0
45
flake8-print
56
flake8-tidy-imports

setup.cfg

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)