Browse Source

meta(linting): Add flake8-logging (#60850)

Implements #60890 

Adding [flake8-logging](https://github.com/adamchainz/flake8-logging),
principally to catch [_LOG003 `extra` key `'<key>'` clashes with
LogRecord
attribute_](https://github.com/adamchainz/flake8-logging#log003-extra-key-key-clashes-with-logrecord-attribute)

Related to: #60831

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Bartek Ogryczak 1 year ago
parent
commit
d83876e1e6
2 changed files with 2 additions and 0 deletions
  1. 1 0
      requirements-dev-frozen.txt
  2. 1 0
      requirements-dev.txt

+ 1 - 0
requirements-dev-frozen.txt

@@ -57,6 +57,7 @@ fido2==0.9.2
 filelock==3.7.0
 flake8==6.1.0
 flake8-bugbear==22.10.27
+flake8-logging==1.4.0
 google-api-core==2.12.0
 google-auth==2.16.0
 google-cloud-bigtable==2.11.3

+ 1 - 0
requirements-dev.txt

@@ -22,6 +22,7 @@ pre-commit>=3.3
 black>=22.10.0
 flake8>=6.1
 flake8-bugbear>=22.10
+flake8-logging>=1.4
 pyupgrade>=3.2.3
 isort>=5.10.1