|
1 | 1 | [build-system] |
2 | | -requires = ['maturin>=0.14.16,<2'] |
3 | | -build-backend = 'maturin' |
| 2 | +requires = ["maturin>=0.14.16,<2"] |
| 3 | +build-backend = "maturin" |
4 | 4 |
|
5 | 5 | [project] |
6 | | -name = 'watchfiles' |
7 | | -requires-python = '>=3.9' |
8 | | -description = 'Simple, modern and high performance file watching and code reload in python.' |
| 6 | +name = "watchfiles" |
| 7 | +requires-python = ">=3.9" |
| 8 | +description = "Simple, modern and high performance file watching and code reload in python." |
9 | 9 | authors = [ |
10 | | - { name = 'Samuel Colvin', email = '[email protected]'}, |
| 10 | + { name = "Samuel Colvin", email = "[email protected]"}, |
11 | 11 | ] |
12 | 12 | dependencies = [ |
13 | | - 'anyio>=3.0.0', |
| 13 | + "anyio>=3.0.0", |
14 | 14 | ] |
15 | 15 | classifiers = [ |
16 | | - 'Development Status :: 5 - Production/Stable', |
17 | | - 'Environment :: Console', |
18 | | - 'Programming Language :: Python', |
19 | | - 'Programming Language :: Python :: 3', |
20 | | - 'Programming Language :: Python :: 3 :: Only', |
21 | | - 'Programming Language :: Python :: 3.9', |
22 | | - 'Programming Language :: Python :: 3.10', |
23 | | - 'Programming Language :: Python :: 3.11', |
24 | | - 'Programming Language :: Python :: 3.12', |
25 | | - 'Programming Language :: Python :: 3.13', |
26 | | - 'Intended Audience :: Developers', |
27 | | - 'Intended Audience :: Information Technology', |
28 | | - 'Intended Audience :: System Administrators', |
29 | | - 'License :: OSI Approved :: MIT License', |
30 | | - 'Operating System :: POSIX :: Linux', |
31 | | - 'Operating System :: Microsoft :: Windows', |
32 | | - 'Operating System :: MacOS', |
33 | | - 'Environment :: MacOS X', |
34 | | - 'Topic :: Software Development :: Libraries :: Python Modules', |
35 | | - 'Topic :: System :: Filesystems', |
36 | | - 'Framework :: AnyIO', |
| 16 | + "Development Status :: 5 - Production/Stable", |
| 17 | + "Environment :: Console", |
| 18 | + "Programming Language :: Python", |
| 19 | + "Programming Language :: Python :: 3", |
| 20 | + "Programming Language :: Python :: 3 :: Only", |
| 21 | + "Programming Language :: Python :: 3.9", |
| 22 | + "Programming Language :: Python :: 3.10", |
| 23 | + "Programming Language :: Python :: 3.11", |
| 24 | + "Programming Language :: Python :: 3.12", |
| 25 | + "Programming Language :: Python :: 3.13", |
| 26 | + "Intended Audience :: Developers", |
| 27 | + "Intended Audience :: Information Technology", |
| 28 | + "Intended Audience :: System Administrators", |
| 29 | + "License :: OSI Approved :: MIT License", |
| 30 | + "Operating System :: POSIX :: Linux", |
| 31 | + "Operating System :: Microsoft :: Windows", |
| 32 | + "Operating System :: MacOS", |
| 33 | + "Environment :: MacOS X", |
| 34 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 35 | + "Topic :: System :: Filesystems", |
| 36 | + "Framework :: AnyIO", |
37 | 37 | ] |
38 | 38 | dynamic = [ |
39 | | - 'license', |
40 | | - 'readme', |
41 | | - 'version' |
| 39 | + "license", |
| 40 | + "readme", |
| 41 | + "version" |
42 | 42 | ] |
43 | 43 |
|
44 | 44 | [project.scripts] |
45 | | -watchfiles = 'watchfiles.cli:cli' |
| 45 | +watchfiles = "watchfiles.cli:cli" |
46 | 46 |
|
47 | 47 | [project.urls] |
48 | | -Homepage = 'https://github.com/samuelcolvin/watchfiles' |
49 | | -Documentation = 'https://watchfiles.helpmanual.io' |
50 | | -Funding = 'https://github.com/sponsors/samuelcolvin' |
51 | | -Source = 'https://github.com/samuelcolvin/watchfiles' |
52 | | -Changelog = 'https://github.com/samuelcolvin/watchfiles/releases' |
| 48 | +Homepage = "https://github.com/samuelcolvin/watchfiles" |
| 49 | +Documentation = "https://watchfiles.helpmanual.io" |
| 50 | +Funding = "https://github.com/sponsors/samuelcolvin" |
| 51 | +Source = "https://github.com/samuelcolvin/watchfiles" |
| 52 | +Changelog = "https://github.com/samuelcolvin/watchfiles/releases" |
| 53 | + |
| 54 | +[dependency-groups] |
| 55 | +dev = [ |
| 56 | + "coverage>=7.6.10", |
| 57 | + "dirty-equals>=0.8.0", |
| 58 | + "maturin>=1.8.1", |
| 59 | + "pytest>=7.4.4", |
| 60 | + "pytest-mock>=3.14.0", |
| 61 | + "pytest-pretty>=1.2.0", |
| 62 | + "pytest-timeout>=2.3.1", |
| 63 | +] |
| 64 | +lint = [ |
| 65 | + "mypy>=1.14.1", |
| 66 | + "ruff>=0.9.0", |
| 67 | + "trio>=0.28.0", |
| 68 | +] |
| 69 | +docs = [ |
| 70 | + "mdx-include>=1.4.2", |
| 71 | + "mkdocs>=1.6.1", |
| 72 | + "mkdocs-material>=9.5.49", |
| 73 | + "mkdocstrings[python]>=0.25.1", |
| 74 | +] |
53 | 75 |
|
54 | 76 | [tool.maturin] |
55 | 77 | module-name = "watchfiles._rust_notify" |
56 | | -bindings = 'pyo3' |
| 78 | +bindings = "pyo3" |
57 | 79 |
|
58 | 80 | [tool.pytest.ini_options] |
59 | | -testpaths = 'tests' |
60 | | -log_format = '%(name)s %(levelname)s: %(message)s' |
61 | | -filterwarnings = 'error' |
| 81 | +testpaths = "tests" |
| 82 | +log_format = "%(name)s %(levelname)s: %(message)s" |
| 83 | +filterwarnings = "error" |
62 | 84 | timeout = 10 |
63 | 85 |
|
64 | 86 | [tool.coverage.run] |
65 | | -source = ['watchfiles'] |
| 87 | +source = ["watchfiles"] |
66 | 88 | branch = true |
67 | 89 |
|
68 | 90 | [tool.coverage.report] |
69 | 91 | precision = 2 |
70 | 92 | exclude_lines = [ |
71 | | - 'pragma: no cover', |
72 | | - 'raise NotImplementedError', |
73 | | - 'raise NotImplemented', |
74 | | - 'if TYPE_CHECKING:', |
75 | | - '@overload', |
| 93 | + "pragma: no cover", |
| 94 | + "raise NotImplementedError", |
| 95 | + "raise NotImplemented", |
| 96 | + "if TYPE_CHECKING:", |
| 97 | + "@overload", |
76 | 98 | ] |
77 | | -omit = ['*/__main__.py'] |
| 99 | +omit = ["*/__main__.py"] |
78 | 100 |
|
79 | 101 | [tool.ruff] |
80 | 102 | line-length = 120 |
81 | | -target-version = 'py38' |
| 103 | +target-version = "py38" |
82 | 104 | lint.mccabe = { max-complexity = 14 } |
83 | | -lint.extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I'] |
84 | | -lint.flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'} |
85 | | -lint.pydocstyle = { convention = 'google' } |
86 | | -format.quote-style = 'single' |
| 105 | +lint.extend-select = ["Q", "RUF100", "C90", "UP", "I"] |
| 106 | +lint.flake8-quotes = {inline-quotes = "single", multiline-quotes = "double"} |
| 107 | +lint.pydocstyle = { convention = "google" } |
| 108 | +format.quote-style = "single" |
87 | 109 |
|
88 | 110 | [tool.mypy] |
89 | 111 | strict = true |
90 | 112 | warn_return_any = false |
91 | 113 | show_error_codes = true |
92 | 114 |
|
93 | 115 | [[tool.mypy.overrides]] |
94 | | -module = ['trio.*'] |
| 116 | +module = ["trio.*"] |
95 | 117 | ignore_missing_imports = true |
0 commit comments