Just add a file (any filename would work but I personally just named it with the username) with the line
yourusername ALL=(ALL) NOPASSWD: ALL
to /etc/sudoers.d/
This works because in /etc/sudoers there is a line
#includedir /etc/sudoers.d
That will include whatever you throw in the directory.
Tested in Ubuntu 20.04.
Reference: https://timonweb.com/devops/how-to-enable-passwordless-sudo-for-a-specific-user-in-linux/