File: __init__.py

package info (click to toggle)
clazy 1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,248 kB
  • sloc: cpp: 23,552; python: 1,450; xml: 450; sh: 237; makefile: 46
file content (26 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
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
from dataclasses import dataclass
from typing import List, Optional


@dataclass
class Args:
    verbose: bool = False
    no_standalone: bool = False
    no_clang_tidy: bool = False
    no_fixits: bool = False
    only_standalone: bool = False
    dump_ast: bool = False
    qt_versions: List[int] = None
    exclude: Optional[str] = None
    jobs: int = 14
    check_names: List[str] = None
    cxx_args: str = ""
    qt_namespaced: bool = False
    clang_version: int = -1

    def __post_init__(self):
        # avoid mutable default pitfalls
        if self.qt_versions is None:
            self.qt_versions = [5, 6]
        if self.check_names is None:
            self.check_names = []