Skip to content

Commit 3c87bdf

Browse files
committed
remove telemetry
1 parent ef5c6e5 commit 3c87bdf

File tree

10 files changed

+7
-542
lines changed

10 files changed

+7
-542
lines changed

.basedpyright/baseline.json

Lines changed: 0 additions & 314 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,320 +1322,6 @@
13221322
"endColumn": 29,
13231323
"lineCount": 1
13241324
}
1325-
},
1326-
{
1327-
"code": "reportUnannotatedClassAttribute",
1328-
"range": {
1329-
"startColumn": 13,
1330-
"endColumn": 16,
1331-
"lineCount": 1
1332-
}
1333-
},
1334-
{
1335-
"code": "reportUnannotatedClassAttribute",
1336-
"range": {
1337-
"startColumn": 13,
1338-
"endColumn": 22,
1339-
"lineCount": 1
1340-
}
1341-
},
1342-
{
1343-
"code": "reportImplicitOverride",
1344-
"range": {
1345-
"startColumn": 8,
1346-
"endColumn": 12,
1347-
"lineCount": 1
1348-
}
1349-
},
1350-
{
1351-
"code": "reportAny",
1352-
"range": {
1353-
"startColumn": 40,
1354-
"endColumn": 63,
1355-
"lineCount": 1
1356-
}
1357-
},
1358-
{
1359-
"code": "reportUnusedCallResult",
1360-
"range": {
1361-
"startColumn": 12,
1362-
"endColumn": 25,
1363-
"lineCount": 1
1364-
}
1365-
}
1366-
],
1367-
"./python/tach/logging/worker.py": [
1368-
{
1369-
"code": "reportAny",
1370-
"range": {
1371-
"startColumn": 48,
1372-
"endColumn": 56,
1373-
"lineCount": 1
1374-
}
1375-
},
1376-
{
1377-
"code": "reportAny",
1378-
"range": {
1379-
"startColumn": 15,
1380-
"endColumn": 30,
1381-
"lineCount": 1
1382-
}
1383-
},
1384-
{
1385-
"code": "reportAny",
1386-
"range": {
1387-
"startColumn": 16,
1388-
"endColumn": 20,
1389-
"lineCount": 1
1390-
}
1391-
},
1392-
{
1393-
"code": "reportAny",
1394-
"range": {
1395-
"startColumn": 23,
1396-
"endColumn": 36,
1397-
"lineCount": 1
1398-
}
1399-
},
1400-
{
1401-
"code": "reportAny",
1402-
"range": {
1403-
"startColumn": 23,
1404-
"endColumn": 45,
1405-
"lineCount": 1
1406-
}
1407-
},
1408-
{
1409-
"code": "reportAny",
1410-
"range": {
1411-
"startColumn": 16,
1412-
"endColumn": 25,
1413-
"lineCount": 1
1414-
}
1415-
},
1416-
{
1417-
"code": "reportAny",
1418-
"range": {
1419-
"startColumn": 39,
1420-
"endColumn": 43,
1421-
"lineCount": 1
1422-
}
1423-
},
1424-
{
1425-
"code": "reportAny",
1426-
"range": {
1427-
"startColumn": 16,
1428-
"endColumn": 30,
1429-
"lineCount": 1
1430-
}
1431-
},
1432-
{
1433-
"code": "reportUnusedCallResult",
1434-
"range": {
1435-
"startColumn": 4,
1436-
"endColumn": 75,
1437-
"lineCount": 1
1438-
}
1439-
},
1440-
{
1441-
"code": "reportAny",
1442-
"range": {
1443-
"startColumn": 60,
1444-
"endColumn": 74,
1445-
"lineCount": 1
1446-
}
1447-
},
1448-
{
1449-
"code": "reportExplicitAny",
1450-
"range": {
1451-
"startColumn": 42,
1452-
"endColumn": 45,
1453-
"lineCount": 1
1454-
}
1455-
},
1456-
{
1457-
"code": "reportUnusedCallResult",
1458-
"range": {
1459-
"startColumn": 8,
1460-
"endColumn": 26,
1461-
"lineCount": 1
1462-
}
1463-
},
1464-
{
1465-
"code": "reportExplicitAny",
1466-
"range": {
1467-
"startColumn": 38,
1468-
"endColumn": 41,
1469-
"lineCount": 1
1470-
}
1471-
},
1472-
{
1473-
"code": "reportExplicitAny",
1474-
"range": {
1475-
"startColumn": 26,
1476-
"endColumn": 29,
1477-
"lineCount": 1
1478-
}
1479-
},
1480-
{
1481-
"code": "reportExplicitAny",
1482-
"range": {
1483-
"startColumn": 24,
1484-
"endColumn": 27,
1485-
"lineCount": 1
1486-
}
1487-
},
1488-
{
1489-
"code": "reportExplicitAny",
1490-
"range": {
1491-
"startColumn": 39,
1492-
"endColumn": 42,
1493-
"lineCount": 1
1494-
}
1495-
},
1496-
{
1497-
"code": "reportAny",
1498-
"range": {
1499-
"startColumn": 4,
1500-
"endColumn": 11,
1501-
"lineCount": 1
1502-
}
1503-
},
1504-
{
1505-
"code": "reportAny",
1506-
"range": {
1507-
"startColumn": 4,
1508-
"endColumn": 7,
1509-
"lineCount": 1
1510-
}
1511-
},
1512-
{
1513-
"code": "reportAny",
1514-
"range": {
1515-
"startColumn": 4,
1516-
"endColumn": 12,
1517-
"lineCount": 1
1518-
}
1519-
},
1520-
{
1521-
"code": "reportAny",
1522-
"range": {
1523-
"startColumn": 4,
1524-
"endColumn": 14,
1525-
"lineCount": 1
1526-
}
1527-
},
1528-
{
1529-
"code": "reportAny",
1530-
"range": {
1531-
"startColumn": 4,
1532-
"endColumn": 9,
1533-
"lineCount": 1
1534-
}
1535-
},
1536-
{
1537-
"code": "reportAny",
1538-
"range": {
1539-
"startColumn": 4,
1540-
"endColumn": 13,
1541-
"lineCount": 1
1542-
}
1543-
},
1544-
{
1545-
"code": "reportAny",
1546-
"range": {
1547-
"startColumn": 4,
1548-
"endColumn": 9,
1549-
"lineCount": 1
1550-
}
1551-
},
1552-
{
1553-
"code": "reportAny",
1554-
"range": {
1555-
"startColumn": 19,
1556-
"endColumn": 26,
1557-
"lineCount": 1
1558-
}
1559-
},
1560-
{
1561-
"code": "reportAny",
1562-
"range": {
1563-
"startColumn": 28,
1564-
"endColumn": 31,
1565-
"lineCount": 1
1566-
}
1567-
},
1568-
{
1569-
"code": "reportAny",
1570-
"range": {
1571-
"startColumn": 33,
1572-
"endColumn": 41,
1573-
"lineCount": 1
1574-
}
1575-
},
1576-
{
1577-
"code": "reportAny",
1578-
"range": {
1579-
"startColumn": 43,
1580-
"endColumn": 53,
1581-
"lineCount": 1
1582-
}
1583-
},
1584-
{
1585-
"code": "reportAny",
1586-
"range": {
1587-
"startColumn": 55,
1588-
"endColumn": 60,
1589-
"lineCount": 1
1590-
}
1591-
},
1592-
{
1593-
"code": "reportAny",
1594-
"range": {
1595-
"startColumn": 62,
1596-
"endColumn": 71,
1597-
"lineCount": 1
1598-
}
1599-
},
1600-
{
1601-
"code": "reportAny",
1602-
"range": {
1603-
"startColumn": 73,
1604-
"endColumn": 78,
1605-
"lineCount": 1
1606-
}
1607-
},
1608-
{
1609-
"code": "reportUnusedCallResult",
1610-
"range": {
1611-
"startColumn": 20,
1612-
"endColumn": 41,
1613-
"lineCount": 1
1614-
}
1615-
},
1616-
{
1617-
"code": "reportAny",
1618-
"range": {
1619-
"startColumn": 32,
1620-
"endColumn": 39,
1621-
"lineCount": 1
1622-
}
1623-
},
1624-
{
1625-
"code": "reportAny",
1626-
"range": {
1627-
"startColumn": 48,
1628-
"endColumn": 55,
1629-
"lineCount": 1
1630-
}
1631-
},
1632-
{
1633-
"code": "reportUnusedCallResult",
1634-
"range": {
1635-
"startColumn": 4,
1636-
"endColumn": 5,
1637-
"lineCount": 6
1638-
}
16391325
}
16401326
],
16411327
"./python/tach/mod.py": [

docs/usage/faq.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ feature request as a new Issue.
7878

7979
Do not report security vulnerabilities through public GitHub issues. Instead, please email us at caelean@gauge.sh or evan@gauge.sh.
8080

81-
### What information does Tach track?
81+
### What information does DTach track?
8282

83-
Tach tracks anonymized usage and error report statistics; we ascribe to Posthog's approach as detailed [here](https://posthog.com/blog/open-source-telemetry-ethical).
84-
If you would like to opt out of sending anonymized info, you can set `disable_logging` to `true` in your `tach.toml`.
83+
None

public/tach-toml-schema.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,6 @@
386386
"type": "string",
387387
"description": "How to treat code outside of explicitly listed modules"
388388
},
389-
"disable_logging": {
390-
"type": "boolean",
391-
"default": false,
392-
"description": "Disable anonymized usage logging"
393-
},
394389
"ignore_type_checking_imports": {
395390
"type": "boolean",
396391
"default": true,

python/tach/cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from tach.extension import Direction, ProjectConfig
2424
from tach.filesystem import install_pre_commit
2525
from tach.init import init_project
26-
from tach.logging import CallInfo, init_logging, logger
26+
from tach.logging import CallInfo, logger
2727
from tach.modularity import export_report, upload_report_to_gauge
2828
from tach.parsing import combine_exclude_paths, parse_project_config
2929
from tach.report import external_dependency_report, report
@@ -1170,9 +1170,6 @@ def main(argv: list[str] = sys.argv[1:]) -> None:
11701170
else:
11711171
project_config = try_parse_project_config(project_root)
11721172

1173-
if project_config is None or not project_config.disable_logging:
1174-
init_logging(project_root)
1175-
11761173
latest_version = cache.get_latest_version(project_root)
11771174
if latest_version and current_version_is_behind(latest_version):
11781175
console_err.print(

python/tach/extension.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ class ProjectConfig:
144144
exclude: list[str]
145145
source_roots: list[Path]
146146
exact: bool
147-
disable_logging: bool
148147
ignore_type_checking_imports: bool
149148
include_string_imports: bool
150149
forbid_circular_dependencies: bool

python/tach/logging/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import annotations
22

3-
from tach.logging.logger import CallInfo, init_logging, logger
3+
from tach.logging.logger import CallInfo, logger
44

5-
__all__ = ["logger", "CallInfo", "init_logging"]
5+
__all__ = ["logger", "CallInfo"]

0 commit comments

Comments
 (0)