@@ -18,3 +18,65 @@ markers = [
1818[tool .setuptools_scm ]
1919fallback_version = " 999"
2020version_scheme = ' post-release'
21+
22+ # ######### Tool - Pyright ##########
23+ [tool .pyright ]
24+ # Paths of directories or files that should be included. If no paths
25+ # are specified, pyright defaults to the directory that contains the
26+ # config file. Paths may contain wildcard characters ** (a directory or
27+ # multiple levels of directories), * (a sequence of zero or more
28+ # characters), or ? (a single character). If no include paths are
29+ # specified, the root path for the workspace is assumed.
30+ include = [
31+ " vetiver/"
32+ ]
33+
34+ # Paths of directories or files whose diagnostic output (errors and
35+ # warnings) should be suppressed even if they are an included file or
36+ # within the transitive closure of an included file. Paths may contain
37+ # wildcard characters ** (a directory or multiple levels of
38+ # directories), * (a sequence of zero or more characters), or ? (a
39+ # single character).
40+ ignore = [
41+ # "vetiver/__init__.py",
42+ # "vetiver/attach_pkgs.py",
43+ " vetiver/helpers.py" ,
44+ " vetiver/meta.py" ,
45+ " vetiver/mock.py" ,
46+ " vetiver/model_card.py" ,
47+ " vetiver/monitor.py" ,
48+ " vetiver/pin_read_write.py" ,
49+ " vetiver/prototype.py" ,
50+ " vetiver/rsconnect.py" ,
51+ " vetiver/server.py" ,
52+ " vetiver/types.py" ,
53+ " vetiver/utils.py" ,
54+ " vetiver/vetiver_model.py" ,
55+ " vetiver/write_docker.py" ,
56+ " vetiver/write_fastapi.py" ,
57+ " vetiver/handlers/" ,
58+ " vetiver/data/" ,
59+ " vetiver/tests"
60+ ]
61+
62+ # Set of identifiers that should be assumed to contain a constant
63+ # value wherever used within this program. For example, { "DEBUG": true
64+ # } indicates that pyright should assume that the identifier DEBUG will
65+ # always be equal to True. If this identifier is used within a
66+ # conditional expression (such as if not DEBUG:) pyright will use the
67+ # indicated value to determine whether the guarded block is reachable
68+ # or not. Member expressions that reference one of these constants
69+ # (e.g. my_module.DEBUG) are also supported.
70+ defineConstant = { DEBUG = true }
71+
72+ # typeCheckingMode = "strict"
73+ useLibraryCodeForTypes = true
74+ reportUnnecessaryTypeIgnoreComment = true
75+
76+ # Specifies a list of execution environments (see below). Execution
77+ # environments are searched from start to finish by comparing the path
78+ # of a source file with the root path specified in the execution
79+ # environment.
80+ executionEnvironments = []
81+
82+ stubPath = " "
0 commit comments