1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
[tool.ruff]
target-version = "py38"
lint.select = [
"A", # flake8-builtins
"AIR", # Airflow
"ASYNC", # flake8-async
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # McCabe cyclomatic complexity
"DJ", # flake8-django
"E", # pycodestyle
"EXE", # flake8-executable
"F", # Pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
# "ANN", # flake8-annotations
# "ARG", # flake8-unused-arguments
# "B", # flake8-bugbear
# "COM", # flake8-commas
# "CPY", # flake8-copyright
# "D", # pydocstyle
# "DTZ", # flake8-datetimez
# "EM", # flake8-errmsg
# "ERA", # eradicate
# "FBT", # flake8-boolean-trap
# "FIX", # flake8-fixme
# "I", # isort
# "INT", # flake8-gettext
# "PTH", # flake8-use-pathlib
# "PYI", # flake8-pyi
# "Q", # flake8-quotes
# "RET", # flake8-return
# "RUF", # Ruff-specific rules
# "SLF", # flake8-self
# "T20", # flake8-print
# "TD", # flake8-todos
# "TRY", # tryceratops
]
lint.ignore = [
"DJ001",
"DJ006",
"DJ008",
"DJ012",
"N801",
"N802",
"N803",
"N806",
"PIE790",
"PT009",
"PT027",
"UP031",
"UP032",
]
lint.per-file-ignores."*/migrations/*" = [
"C405",
"D",
"E501",
"I",
"PGH004",
]
lint.per-file-ignores."django_celery_beat/models.py" = [
"ISC002",
]
lint.per-file-ignores."django_celery_beat/schedulers.py" = [
"PERF203",
"SIM105",
]
lint.per-file-ignores."django_celery_beat/validators.py" = [
"BLE001",
]
lint.per-file-ignores."docker/base/celery.py" = [
"INP001",
]
lint.per-file-ignores."docs/conf.py" = [
"INP001",
]
lint.per-file-ignores."setup.py" = [
"EXE001",
"FURB129",
"SIM115",
]
lint.per-file-ignores."t/*" = [
"S101",
]
lint.per-file-ignores."t/proj/__init__.py" = [
"PGH004",
]
lint.per-file-ignores."t/proj/settings.py" = [
"S105",
]
lint.per-file-ignores."t/unit/conftest.py" = [
"F401",
]
lint.per-file-ignores."t/unit/test_schedulers.py" = [
"C408",
"PERF102",
"PT018",
]
lint.pylint.allow-magic-value-types = [
"float",
"int",
"str",
]
lint.pylint.max-args = 8 # Default: 5
[tool.coverage.run]
branch = true
cover_pylib = false
include = [ "*django_celery_beat/*" ]
omit = [ "django_celery_beat.tests.*" ]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"except ImportError:",
]
omit = [
"*/python?.?/*",
"*/site-packages/*",
"*/pypy/*",
"*/.tox/*",
"*/docker/*",
"*/docs/*",
"*/test_*.py",
]
|